Term Class Reference

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

+ Inheritance diagram for Term:

Public Member Functions

TermImplPtr getImpl () const
 Retrieve term implementation object as used in the ArmarX Framework in order to build distributed expression trees. More...
 
Term operator! (void) const
 The logical NOT operator. More...
 
Term operator&& (const Term &right) const
 The logical AND operator. More...
 
Termoperator= (const Term &right)
 The assignment operator. More...
 
Term operator|| (const Term &right) const
 The logical OR operator. More...
 
 Term ()
 Construct an empty term. More...
 
 Term (const Term &other)
 Copy constructor. More...
 
 Term (TermImplPtr impl)
 Construct term by term implementation. More...
 

Protected Attributes

TermImplPtr termImpl
 

Friends

std::ostream & operator<< (std::ostream &stream, const Term &rhs)
 Streaming operator. More...
 

Detailed Description

Terms are part of the user front end of the ArmarX condition mechanism. Terms describe boolean expressions of condition checks. The logical operations AND, OR and NOT are implemented for terms. Terms are composed of several Literals which correspond to condition checks.

See also
Conditions
Literal

Definition at line 111 of file Term.h.

Constructor & Destructor Documentation

◆ Term() [1/3]

Term ( )

Construct an empty term.

For empty terms, the first operations is interpreted as assignment. An empty term is always evaluated to 'true'.

Definition at line 30 of file Term.cpp.

◆ Term() [2/3]

Term ( const Term other)

Copy constructor.

Parameters
otherto copy

Definition at line 35 of file Term.cpp.

◆ Term() [3/3]

Construct term by term implementation.

Parameters
implementation(will not be copied)

Definition at line 47 of file Term.cpp.

Member Function Documentation

◆ getImpl()

TermImplPtr getImpl ( ) const

Retrieve term implementation object as used in the ArmarX Framework in order to build distributed expression trees.

Returns
the term implementation

Definition at line 103 of file Term.cpp.

+ Here is the caller graph for this function:

◆ operator!()

Term operator! ( void  ) const

The logical NOT operator.

Returns
the resulting expression

Definition at line 77 of file Term.cpp.

+ Here is the call graph for this function:

◆ operator&&()

Term operator&& ( const Term right) const

The logical AND operator.

Parameters
anotherterm or literal
Returns
the resulting expression

Definition at line 52 of file Term.cpp.

+ Here is the call graph for this function:

◆ operator=()

Term & operator= ( const Term right)

The assignment operator.

Parameters
anotherterm or literal
Returns
the term

Definition at line 89 of file Term.cpp.

+ Here is the call graph for this function:

◆ operator||()

Term operator|| ( const Term right) const

The logical OR operator.

Parameters
anotherterm or literal
Returns
the resulting expression

Definition at line 65 of file Term.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

Streaming operator.

Calls the streaming operator of the implementation

Parameters
streamstream
rhsright hand side
Returns
stream

Definition at line 181 of file Term.h.

Member Data Documentation

◆ termImpl

TermImplPtr termImpl
protected

Definition at line 194 of file Term.h.


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