LiteralImpl Class Reference

LiteralImpls are the basic elements for defining conditional expressions. More...

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

+ Inheritance diagram for LiteralImpl:

Classes

struct  Impl
 

Public Member Functions

CheckConfiguration getCheckConfiguration (const Ice::Current &c=Ice::emptyCurrent) override
 Retrieve check configuration. More...
 
Ice::ObjectPtr ice_clone () const override
 Reimplementation of the ice_clone method. More...
 
void output (std::ostream &out) const override
 output to stream. More...
 
void setValue (bool value, const Ice::Current &c=Ice::emptyCurrent) override
 Set value of LiteralImpl. More...
 
void setValueAndData (bool value, const ::armarx::DataFieldIdentifierBasePtr &id, const ::armarx::VariantBasePtr &data, 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...
 

Protected Member Functions

void createInstance ()
 
void init (const std::string &dataFieldIdentifierStr, const std::string &checkName, const ParameterList &checkParameters)
 
 LiteralImpl ()
 Creates an empty LiteralImpl. More...
 
 LiteralImpl (const DataFieldIdentifier &dataFieldIdentifier, const std::string &checkName, const ParameterList &checkParameters)
 Creates a LiteralImpl using the DataFieldIdentifier type with multiple parameter. More...
 
 LiteralImpl (const DataFieldIdentifierPtr &dataFieldIdentifier, const std::string &checkName, const ParameterList &checkParameters)
 Creates a LiteralImpl using the DataFieldIdentifier type with multiple parameter. More...
 
 LiteralImpl (const DatafieldRefBasePtr &dataFieldIdentifier, const std::string &checkName, const ParameterList &checkParameters)
 
 LiteralImpl (const std::string &dataFieldIdentifierStr, const std::string &checkName, const ParameterList &checkParameters)
 Creates a LiteralImpl using string as dataFieldIdentifier with multiple parameter. More...
 
 ~LiteralImpl ()
 
- 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
 
class Literal
 
std::ostream & operator<< (std::ostream &stream, const LiteralImpl &rhs)
 stream operator for LiteralImpl More...
 
std::ostream & operator<< (std::ostream &stream, const LiteralImplPtr &rhs)
 stream operator for LiteralImplPtr 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

LiteralImpls are the basic elements for defining conditional expressions.

LiteralImpl are leaves in the expression tree. Each LiteralImpl is associated to a ConditionCheck. The state of the LiteralImpl corresponds to the state of the ConditionCheck.

Definition at line 59 of file LiteralImpl.h.

Constructor & Destructor Documentation

◆ LiteralImpl() [1/5]

LiteralImpl ( )
protected

Creates an empty LiteralImpl.

Required for Ice ObjectFactory

Definition at line 46 of file LiteralImpl.cpp.

+ Here is the caller graph for this function:

◆ ~LiteralImpl()

~LiteralImpl ( )
protected

Definition at line 53 of file LiteralImpl.cpp.

◆ LiteralImpl() [2/5]

LiteralImpl ( const std::string &  dataFieldIdentifierStr,
const std::string &  checkName,
const ParameterList &  checkParameters 
)
protected

Creates a LiteralImpl using string as dataFieldIdentifier with multiple parameter.

See also createParameterList().

Parameters
dataFieldIdentifierStridentifier of the datafield used by the condition in the form "observerName.channelName.datafieldName"
checkNamename of the condition check
checkParameterparameter for the condition check

Definition at line 58 of file LiteralImpl.cpp.

+ Here is the call graph for this function:

◆ LiteralImpl() [3/5]

LiteralImpl ( const DataFieldIdentifier dataFieldIdentifier,
const std::string &  checkName,
const ParameterList &  checkParameters 
)
protected

Creates a LiteralImpl using the DataFieldIdentifier type with multiple parameter.

See also createParameterList()

Parameters
dataFieldIdentifieridentifier of the datafield used by the condition
checkNamename of the condition check
checkParameterslist of check parameters

Definition at line 64 of file LiteralImpl.cpp.

+ Here is the call graph for this function:

◆ LiteralImpl() [4/5]

LiteralImpl ( const DataFieldIdentifierPtr dataFieldIdentifier,
const std::string &  checkName,
const ParameterList &  checkParameters 
)
protected

Creates a LiteralImpl using the DataFieldIdentifier type with multiple parameter.

See also createParameterList()

Parameters
dataFieldIdentifierpointer to identifier of the datafield used by the condition
checkNamename of the condition check
checkParameterslist of check parameters

Definition at line 70 of file LiteralImpl.cpp.

+ Here is the call graph for this function:

◆ LiteralImpl() [5/5]

LiteralImpl ( const DatafieldRefBasePtr &  dataFieldIdentifier,
const std::string &  checkName,
const ParameterList &  checkParameters 
)
protected

Definition at line 76 of file LiteralImpl.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ createInstance()

void createInstance ( )
protected

Definition at line 83 of file LiteralImpl.cpp.

◆ getCheckConfiguration()

CheckConfiguration getCheckConfiguration ( const Ice::Current &  c = Ice::emptyCurrent)
override

Retrieve check configuration.

Inherited from LiteralImplBase

Returns
configuration of check

Definition at line 88 of file LiteralImpl.cpp.

◆ ice_clone()

Ice::ObjectPtr ice_clone ( ) const
override

Reimplementation of the ice_clone method.

Returns
clone of the object

Definition at line 107 of file LiteralImpl.cpp.

+ Here is the call graph for this function:

◆ init()

void init ( const std::string &  dataFieldIdentifierStr,
const std::string &  checkName,
const ParameterList &  checkParameters 
)
protected

Definition at line 166 of file LiteralImpl.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 119 of file LiteralImpl.cpp.

◆ setValue()

void setValue ( bool  value,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Set value of LiteralImpl.

Parameters
valueof LiteralImpl

Definition at line 93 of file LiteralImpl.cpp.

+ Here is the call graph for this function:

◆ setValueAndData()

void setValueAndData ( bool  value,
const ::armarx::DataFieldIdentifierBasePtr id,
const ::armarx::VariantBasePtr data,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 99 of file LiteralImpl.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ ConditionHandler

friend class ConditionHandler
friend

Definition at line 63 of file LiteralImpl.h.

◆ GenericFactory

friend class GenericFactory
friend

Definition at line 66 of file LiteralImpl.h.

◆ Literal

friend class Literal
friend

Definition at line 64 of file LiteralImpl.h.

◆ operator<< [1/2]

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

stream operator for LiteralImpl

Definition at line 140 of file LiteralImpl.h.

◆ operator<< [2/2]

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

stream operator for LiteralImplPtr

Definition at line 150 of file LiteralImpl.h.


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