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

Applies logical AND to the specified conditions. More...

#include <And.h>

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

Public Member Functions

 And (const System::SharedPtr< ICondition< T >> &cond1, const System::SharedPtr< ICondition< T >> &cond2)
 Initializes a new instance of the And<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::And< T >

Applies logical AND to the specified conditions.

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

Constructor & Destructor Documentation

◆ And()

template<typename T >
Aspose::Tasks::Util::And< T >::And ( const System::SharedPtr< ICondition< T >> &  cond1,
const System::SharedPtr< ICondition< T >> &  cond2 
)
inline

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

Parameters
cond1First condition.
cond2Second condition.

Member Function Documentation

◆ Check()

template<typename T >
bool Aspose::Tasks::Util::And< 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 >.