All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::fe::UnaryLogicOp Class Referenceabstract

A logical operator that can be used to combine one conditional expressions. More...

#include <UnaryLogicOp.h>

Inheritance diagram for te::fe::UnaryLogicOp:
te::fe::LogicOp te::fe::AbstractOp te::common::BaseVisitable< Visitor > te::fe::Not

Public Types

typedef R ReturnType
 
typedef Visitor VisitorType
 

Public Member Functions

virtual ReturnType accept (VisitorType &guest) const =0
 It call the visit method from the guest object. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 UnaryLogicOp (const char *opName=0)
 It initializes a new UnaryLogicOp. More...
 
 UnaryLogicOp (const char *opName, AbstractOp *o)
 It initializes a new UnaryLogicOp. More...
 
virtual ~UnaryLogicOp ()
 Virtual destructor. More...
 
Accessor methods

Methods used to get or set properties.

void setOp (AbstractOp *o)
 It sets the operand. More...
 
AbstractOpgetOp () const
 It returns the operand. More...
 
Accessor methods

Methods used to get or set properties.

const char * getName () const
 It returns the operator name. More...
 
void setName (const char *opName)
 It sets the operator name. More...
 

Protected Attributes

const char * m_name
 Operator name. More...
 
AbstractOpm_op
 Mandatory. More...
 

Detailed Description

A logical operator that can be used to combine one conditional expressions.

See also
LogicOp, AbstractOp, BinaryLogicOp

Definition at line 46 of file UnaryLogicOp.h.

Member Typedef Documentation

typedef R te::common::BaseVisitable< Visitor , R >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

te::fe::UnaryLogicOp::UnaryLogicOp ( const char *  opName = 0)

It initializes a new UnaryLogicOp.

Parameters
opNameThe unary logic operator name.
Note
The LogicOp will not take the ownership of the given name.

Definition at line 33 of file UnaryLogicOp.cpp.

te::fe::UnaryLogicOp::UnaryLogicOp ( const char *  opName,
AbstractOp o 
)

It initializes a new UnaryLogicOp.

Parameters
opNameThe unary logic operator name.
oThe operand.
Note
The LogicOp will not take the ownership of the given name.

Definition at line 39 of file UnaryLogicOp.cpp.

te::fe::UnaryLogicOp::~UnaryLogicOp ( )
virtual

Virtual destructor.

Definition at line 45 of file UnaryLogicOp.cpp.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< Visitor , R >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
const char* te::fe::AbstractOp::getName ( ) const
inlineinherited

It returns the operator name.

Returns
The operator name.

Definition at line 82 of file AbstractOp.h.

Referenced by GetQualifiedName(), te::map::QueryEncoder::visit(), and te::fe::serialize::AbstractOp::write().

te::fe::AbstractOp * te::fe::UnaryLogicOp::getOp ( ) const

It returns the operand.

Returns
The operand.

Definition at line 56 of file UnaryLogicOp.cpp.

Referenced by UnaryLogicOpWriter(), and te::map::QueryEncoder::visit().

void te::fe::AbstractOp::setName ( const char *  opName)
inlineinherited

It sets the operator name.

Parameters
opNameThe operator name.

Definition at line 89 of file AbstractOp.h.

void te::fe::UnaryLogicOp::setOp ( AbstractOp o)

It sets the operand.

Parameters
oThe operand.
Note
It will take the ownership of the operand.

Definition at line 50 of file UnaryLogicOp.cpp.

Member Data Documentation

const char* te::fe::AbstractOp::m_name
protectedinherited

Operator name.

Definition at line 120 of file AbstractOp.h.

AbstractOp* te::fe::UnaryLogicOp::m_op
protected

Mandatory.

Definition at line 106 of file UnaryLogicOp.h.


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