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());
An abstract interface for operators.
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.
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.
void add(AbstractOp *o)
It adds the operand to the operand list.
An abstract interface for operators.
An static class with global definitions.
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.
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...