ConditionRoot Class Reference

ConditionRoot Condition roots are top-level nodes of the expression tree. More...

#include <ArmarXCore/observers/condition/ConditionRoot.h>

+ Inheritance diagram for ConditionRoot:

Public Member Functions

void output (std::ostream &out) const override
 output to stream. More...
 
void update (const Ice::Current &c=Ice::emptyCurrent) override
 Update state f the ConditionRoot object based on the child. More...
 
void updateWithData (const Ice::Current &c=Ice::emptyCurrent) override
 
- Public Member Functions inherited from TermImpl
void addChild (const TermImplBasePtr &child, const Ice::Current &c=Ice::emptyCurrent) override
 Add child to term. More...
 
TermImplSequence getChilds (const Ice::Current &c=Ice::emptyCurrent) override
 retrieve childs of this term in the expression tree. More...
 
StringVariantBaseMap getDatafields (const Ice::Current &) const override
 
TermImplBasePtr getParent (const Ice::Current &c=Ice::emptyCurrent) override
 retrieve parent of this term in the expression tree. More...
 
TermType getType (const Ice::Current &c=Ice::emptyCurrent) const override
 Retrieve type of term. More...
 
bool getValue (const Ice::Current &c=Ice::emptyCurrent) const override
 retrieve current value of term. More...
 
void removeChildren ()
 
void update (const Ice::Current &c=Ice::emptyCurrent) override
 Updates the parent in the expression tree. More...
 
void updateWithData (const Ice::Current &c=Ice::emptyCurrent) override
 
 ~TermImpl () override
 Destructor of TermImpl. More...
 

Static Public Member Functions

static std::vector< LiteralImplPtrExtractLiterals (const TermImplBasePtr &expression)
 

Protected Member Functions

 ConditionRoot ()
 Creates an empty ConditionRoot. More...
 
 ConditionRoot (const EventListenerInterfacePrx &listener, const EventBasePtr &event, const std::string &description, bool onlyFireOnce, const DatafieldRefList &refs)
 Creates and initializes a ConditionRoot. More...
 
- Protected Member Functions inherited from TermImpl
void __decRef () override
 Overwritten version of reference counting from GCShared. More...
 
void __incRef () override
 Overwritten version of reference counting from GCShared. More...
 
void resetParent (const Ice::Current &c=Ice::emptyCurrent) override
 Reset the parent of this term. More...
 
void setParent (const TermImplBasePtr &parent, const Ice::Current &c=Ice::emptyCurrent) override
 Sets the parent for this term in the expression tree. More...
 

Friends

class ConditionHandler
 
template<class BaseClass , class VariantClass >
class GenericFactory
 
std::ostream & operator<< (std::ostream &stream, const ConditionRoot &rhs)
 stream operator for Condition More...
 
std::ostream & operator<< (std::ostream &stream, const ConditionRootPtr &rhs)
 stream operator for ConditionPtr More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from TermImpl
static int atomicDecAndTestValue (volatile int *counter, int value)
 atomicDecAndTestValue - decrement and test @v: pointer of type AtomicCounter @value: value to test for More...
 

Detailed Description

ConditionRoot Condition roots are top-level nodes of the expression tree.

Condition roots are the root node of expression tree. They have an event as member, which is fires once the expression described by the tree is fulfilled.

Definition at line 60 of file ConditionRoot.h.

Constructor & Destructor Documentation

◆ ConditionRoot() [1/2]

ConditionRoot ( )
protected

Creates an empty ConditionRoot.

Used by Ice factory.

Definition at line 131 of file ConditionRoot.cpp.

◆ ConditionRoot() [2/2]

ConditionRoot ( const EventListenerInterfacePrx &  listener,
const EventBasePtr &  event,
const std::string &  description,
bool  onlyFireOnce,
const DatafieldRefList &  refs 
)
protected

Creates and initializes a ConditionRoot.

Used by ConditionHandler.

Definition at line 136 of file ConditionRoot.cpp.

Member Function Documentation

◆ ExtractLiterals()

std::vector< LiteralImplPtr > ExtractLiterals ( const TermImplBasePtr &  expression)
static

Definition at line 146 of file ConditionRoot.cpp.

+ Here is the caller graph for this function:

◆ output()

void output ( std::ostream &  out) const
overridevirtual

output to stream.

pure virtual.

Parameters
stream

Implements TermImpl.

Definition at line 121 of file ConditionRoot.cpp.

◆ update()

void update ( const Ice::Current &  c = Ice::emptyCurrent)
override

Update state f the ConditionRoot object based on the child.

Fire ConditionRoot::event if value is true. The event is only fired, if no previous event has been fired.

Definition at line 36 of file ConditionRoot.cpp.

+ Here is the call graph for this function:

◆ updateWithData()

void updateWithData ( const Ice::Current &  c = Ice::emptyCurrent)
override

Definition at line 71 of file ConditionRoot.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ ConditionHandler

friend class ConditionHandler
friend

Definition at line 64 of file ConditionRoot.h.

◆ GenericFactory

friend class GenericFactory
friend

Definition at line 66 of file ConditionRoot.h.

◆ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  stream,
const ConditionRoot rhs 
)
friend

stream operator for Condition

Definition at line 99 of file ConditionRoot.h.

◆ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  stream,
const ConditionRootPtr rhs 
)
friend

stream operator for ConditionPtr

Definition at line 109 of file ConditionRoot.h.


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