10 #ifndef _OCRABASE_OBJECTIVE_H_ 11 #define _OCRABASE_OBJECTIVE_H_ 22 #include <boost/static_assert.hpp> 23 #include <boost/type_traits/is_base_of.hpp> 45 :
public Objective<typename T::functionType_t>
69 typedef boost::is_base_of<Function, T> T_must_derived_from_Function;
70 BOOST_STATIC_ASSERT(T_must_derived_from_Function ::value);
101 double getWeight()
const;
102 void setWeight(
double weight);
115 :
Objective<typename T::functionType_t>(function, weight)
119 : _function(*function), _weight(weight)
154 #endif //_OCRABASE_OBJECTIVE_H_
Objective< SquaredLinearFunction > SquaredLinearObjective
Declaration file of the SquaredLinearFunction class.
Objective< LinearFunction > LinearObjective
Declaration file of the FunctionInterfaceMapping struct.
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
virtual const T & getFunction(void) const
Declaration file of the LinearFunction class.
virtual T & getFunction(void)
Objective< QuadraticFunction > QuadraticObjective
Objective< Function > GenericObjective
Declaration file of the Function class.
virtual Function & getFunction()
Declaration file of the Variable class.
virtual const Function & getFunction() const
Declaration file of the QuadraticFunction class.