27 #include "../common/STLUtils.h"
55 assert(i < m_argumentList.size());
56 return m_argumentList[i];
62 m_argumentList.push_back(argument);
67 assert(i < m_argumentList.size());
68 delete m_argumentList[i];
69 m_argumentList[i] = argument;
74 assert(i < m_argumentList.size());
75 delete m_argumentList[i];
76 m_argumentList.erase(m_argumentList.begin() + i);
82 for(std::size_t i = 0; i < m_argumentList.size(); ++i)
void removeArgument(size_t i)
It removes the n-th argument.
virtual Expression * clone() const =0
It returns a clone of this object.
A function is a named procedure that performs a distinct computation.
void setName(const std::string &n)
It sets the function name.
This is an abstract class that models a Filter Encoding expression.
Function(const std::string &name)
It initializes a new Function.
virtual Expression * clone() const
It returns a clone of this object.
const std::string & getName() const
It returns the function name.
void add(Expression *argument)
It adds a new argument to the function.
void setArgument(size_t i, Expression *argument)
It sets the argument in the specified position.
A function is a named procedure that performs a distinct computation.
Expression * getArgument(size_t i) const
It returns the argument in the specified position.
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...