45 if (expr.
name() ==
"==") {
ConstraintFactoryImpl()
Private Constructor for singleton class.
IConstraint * createInitialized(IFunction *fun, const std::string &input, bool isDefault=false) const
Creates an instance of a Constraint.
This class represents an expression made up of names, binary operators and brackets.
std::string name() const
Returns the name of the expression which is a function or variable name.
void parse(const std::string &str)
Parse a string and create an expression.
An interface to a constraint.
virtual void initialize(IFunction *fun, const Expression &expr, bool isDefault=false)=0
Initialize the constraint from an expression.
This is an interface to a fitting function - a semi-abstarct class.
The dynamic factory is a base dynamic factory for serving up objects in response to requests from oth...
virtual IConstraint * createUnwrapped(const std::string &className) const
Creates a new instance of the class with the given name, which is not wrapped in a boost shared_ptr.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...