Aspose.Tasks for C++
Aspose::Tasks::Util::AndAllCondition< T > Class Template Reference

Applies logical AND to all conditions. For example: cond1 AND cond2 AND cond3... More...

#include <AndAllCondition.h>

Inherits Aspose::Tasks::Util::ICondition< T >.

Public Member Functions

 AndAllCondition (const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< ICondition< T >>>> &conditions)
 Initializes a new instance of the AndAllCondition<T> class. More...
 
bool Check (const T &el) override
 Returns true if the specified object satisfy the conditions. More...
 

Detailed Description

template<typename T>
class Aspose::Tasks::Util::AndAllCondition< T >

Applies logical AND to all conditions. For example: cond1 AND cond2 AND cond3...

Template Parameters
TThe type of object to apply method interface to.

Constructor & Destructor Documentation

◆ AndAllCondition()

template<typename T >
Aspose::Tasks::Util::AndAllCondition< T >::AndAllCondition ( const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< ICondition< T >>>> &  conditions)
inline

Initializes a new instance of the AndAllCondition<T> class.

Parameters
conditionsThe list of conditions.

Member Function Documentation

◆ Check()

template<typename T >
bool Aspose::Tasks::Util::AndAllCondition< T >::Check ( const T &  el)
inlineoverridevirtual

Returns true if the specified object satisfy the conditions.

Parameters
elThe object to check.
Returns
True if the object satisfy the conditions.

Implements Aspose::Tasks::Util::ICondition< T >.