8 #include <system/object.h>
9 #include <system/details/pointer_collection_helpers.h>
12 #include "aspose.tasks.cpp/Util/ICondition.h"
30 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
31 RTTI_INFO_TEMPLATE_CLASS(
ThisType, ThisTypeBaseTypesInfo);
53 bool Check(
const T& el)
override
55 return this->cond1->Check(el) && this->cond2->Check(el);
58 void SetTemplateWeakPtr(uint32_t argument)
override
63 System::Details::CollectionHelpers::SetWeakPointer(0, cond1);
64 System::Details::CollectionHelpers::SetWeakPointer(0, cond2);
72 #ifdef ASPOSE_GET_SHARED_MEMBERS
73 void GetSharedMembers(System::Object::shared_members_type& result)
const override
75 System::Object::GetSharedMembers(result);
77 result.Add(
"Aspose::Tasks::Util::And::cond1", this->cond1);
78 result.Add(
"Aspose::Tasks::Util::And::cond2", this->cond2);
86 System::SharedPtr<ICondition<T>> cond1;
87 System::SharedPtr<ICondition<T>> cond2;
Applies logical AND to the specified conditions.
Definition: And.h:26
bool Check(const T &el) override
Returns true if the specified object satisfy the conditions.
Definition: And.h:53
And(const System::SharedPtr< ICondition< T >> &cond1, const System::SharedPtr< ICondition< T >> &cond2)
Initializes a new instance of the And<T> class.
Definition: And.h:42
Represents a condition which can be used by filters or search methods.
Definition: ICondition.h:22