A logical operator can be used to combine two or more conditional expressions. More...
#include <BinaryLogicOp.h>
  
 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.  | |
| BinaryLogicOp (const char *opName=0) | |
| It initializes a new BinaryLogicOp.  More... | |
| BinaryLogicOp (const char *opName, AbstractOp *first, AbstractOp *second) | |
| It initializes a new BinaryLogicOp.  More... | |
| virtual | ~BinaryLogicOp () | 
| Virtual destructor.  More... | |
Accessor methods  | |
Methods used to get or set properties.  | |
| std::size_t | size () const | 
| It returns the number of operands.  More... | |
| void | add (AbstractOp *o) | 
| It adds the operand to the operand list.  More... | |
| AbstractOp * | operator[] (std::size_t i) const | 
| It returns a specified operand.  More... | |
| AbstractOp * | getOp (std::size_t i) const | 
| It returns a specified 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... | |
| std::vector< AbstractOp * > | m_ops | 
| Mandatory at least two.  More... | |
A logical operator can be used to combine two or more conditional expressions.
The following operators are defined in the Filter Encoding specification:
Definition at line 58 of file BinaryLogicOp.h.
      
  | 
  inherited | 
Definition at line 58 of file BaseVisitable.h.
      
  | 
  inherited | 
Definition at line 57 of file BaseVisitable.h.
| te::fe::BinaryLogicOp::BinaryLogicOp | ( | const char * | opName = 0 | ) | 
It initializes a new BinaryLogicOp.
| opName | The BinaryLogicOp operator name. | 
Definition at line 36 of file BinaryLogicOp.cpp.
| te::fe::BinaryLogicOp::BinaryLogicOp | ( | const char * | opName, | 
| AbstractOp * | first, | ||
| AbstractOp * | second | ||
| ) | 
It initializes a new BinaryLogicOp.
| opName | The BinaryLogicOp operator name. | 
| first | The first operand. | 
| second | The second operand. | 
Definition at line 41 of file BinaryLogicOp.cpp.
References m_ops.
      
  | 
  virtual | 
Virtual destructor.
Definition at line 50 of file BinaryLogicOp.cpp.
References te::common::FreeContents().
      
  | 
  pure virtualinherited | 
It call the visit method from the guest object.
| guest | The guest or visitor. | 
| void te::fe::BinaryLogicOp::add | ( | AbstractOp * | o | ) | 
It adds the operand to the operand list.
| o | The operand to be added. | 
Definition at line 60 of file BinaryLogicOp.cpp.
      
  | 
  inlineinherited | 
It 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::BinaryLogicOp::getOp | ( | std::size_t | i | ) | const | 
It returns a specified operand.
| i | The index of desired operand. | 
Definition at line 72 of file BinaryLogicOp.cpp.
Referenced by BinaryLogicOpWriter(), and te::map::QueryEncoder::visit().
| te::fe::AbstractOp * te::fe::BinaryLogicOp::operator[] | ( | std::size_t | i | ) | const | 
It returns a specified operand.
| i | The index of desired operand. | 
Definition at line 66 of file BinaryLogicOp.cpp.
      
  | 
  inlineinherited | 
It sets the operator name.
| opName | The operator name. | 
Definition at line 89 of file AbstractOp.h.
| size_t te::fe::BinaryLogicOp::size | ( | ) | const | 
It returns the number of operands.
Definition at line 55 of file BinaryLogicOp.cpp.
Referenced by BinaryLogicOpWriter(), and te::map::QueryEncoder::visit().
      
  | 
  protectedinherited | 
Operator name.
Definition at line 120 of file AbstractOp.h.
      
  | 
  protected | 
Mandatory at least two.
Definition at line 145 of file BinaryLogicOp.h.
Referenced by BinaryLogicOp().