ocra-recipes
Doxygen documentation for the ocra-recipes repository
Public Member Functions | Protected Attributes | List of all members
ocra::Objective< Function > Class Template Reference

#include <Objective.h>

Inheritance diagram for ocra::Objective< Function >:
[legend]
Collaboration diagram for ocra::Objective< Function >:
[legend]

Public Member Functions

double getWeight () const
 
void setWeight (double weight)
 
 Objective (Function *function, double weight=1.)
 
virtual FunctiongetFunction ()
 
virtual const FunctiongetFunction () const
 

Protected Attributes

Function_function
 

Detailed Description

template<>
class ocra::Objective< Function >

Definition at line 76 of file Objective.h.

Constructor & Destructor Documentation

ocra::Objective< Function >::Objective ( Function function,
double  weight = 1. 
)
inline

Specializations of the generic Constraint<T> constructors

Definition at line 118 of file Objective.h.

Member Function Documentation

virtual Function& ocra::Objective< Function >::getFunction ( void  )
inlinevirtual

Returns the function associated with the constraint

Definition at line 97 of file Objective.h.

virtual const Function& ocra::Objective< Function >::getFunction ( void  ) const
inlinevirtual

Definition at line 98 of file Objective.h.

double ocra::Objective< Function >::getWeight ( ) const
inline

Definition at line 123 of file Objective.h.

void ocra::Objective< Function >::setWeight ( double  weight)
inline

Definition at line 128 of file Objective.h.

Member Data Documentation

Function& ocra::Objective< Function >::_function
protected

Definition at line 106 of file Objective.h.


The documentation for this class was generated from the following file: