You.i Engine
CYICondition Class Reference

Detailed Description

Represents a boolean condition.

Used with CYIConditionEvaluator to notify users when one or more conditions are met.

#include <utility/YiCondition.h>

Inheritance diagram for CYICondition:

Public Member Functions

 CYICondition ()
 
virtual ~CYICondition ()
 
void Set ()
 
void Unset ()
 
 operator bool () const
 
- Public Member Functions inherited from CYISignalHandler
 CYISignalHandler ()
 
 CYISignalHandler (const CYISignalHandler &rSignalHandler)
 
virtual ~CYISignalHandler ()
 
CYISignalHandleroperator= (const CYISignalHandler &rSignalHandler)
 
void MoveToThread (CYIThread *pThread)
 This function allows the user to override the default thread affinity to any CYIThread that may or may not be running. More...
 
CYIThreadHandle GetThreadAffinity () const
 
void SetThreadAffinity (const CYIThreadHandle &rThreadAffinity)
 
virtual bool IsConnected () const
 
virtual bool IsConnected (const CYISignalBase &rSignal) const
 
void Disconnect (CYISignalBase &rSignal)
 
void DisconnectFromAllSignals ()
 
- Public Member Functions inherited from CYIThread::Listener
 Listener ()
 
virtual ~Listener ()
 
virtual void OnThreadStarted (CYIThread *)
 
virtual void OnThreadTerminated (CYIThread *)
 
virtual void OnThreadFinished (CYIThread *)
 

Friends

class CYIConditionEvaluator
 

Constructor & Destructor Documentation

◆ CYICondition()

CYICondition::CYICondition ( )

◆ ~CYICondition()

virtual CYICondition::~CYICondition ( )
virtual

Member Function Documentation

◆ operator bool()

CYICondition::operator bool ( ) const
inline

Returns true when the condition has been set.

◆ Set()

void CYICondition::Set ( )

Sets the condition to true. To unset each condition objects, use CYIConditionEvaluator::Reset

◆ Unset()

void CYICondition::Unset ( )

Sets the condition to false.

Friends And Related Function Documentation

◆ CYIConditionEvaluator

friend class CYIConditionEvaluator
friend

The documentation for this class was generated from the following file: