27 #include "../common/STLUtils.h" 46 m_ops.push_back(first);
47 m_ops.push_back(second);
68 assert(i <
m_ops.size());
74 assert(i <
m_ops.size());
85 for(std::size_t i = 0; i <
m_ops.size(); ++i)
An abstract interface for operators.
void setName(const char *opName)
It sets the operator name.
A logical operator can be used to combine two or more conditional expressions.
virtual ~BinaryLogicOp()
Virtual destructor.
std::size_t size() const
It returns the number of operands.
An static class with global definitions.
BinaryLogicOp(const char *opName=0)
It initializes a new BinaryLogicOp.
std::vector< AbstractOp * > m_ops
Mandatory at least two.
AbstractOp * getOp(std::size_t i) const
It returns a specified operand.
BinaryLogicOp * clone() const
It creates a new copy of this object.
void add(AbstractOp *o)
It adds the operand to the operand list.
An abstract interface for operators.
A logical operator can be used to combine one or more conditional expressions.
AbstractOp * operator[](std::size_t i) const
It returns a specified operand.
A logical operator can be used to combine two or more conditional expressions.
const char * m_name
Operator name.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...