32 #ifndef ACADO_TOOLKIT_OPTIONS_LIST_HPP 33 #define ACADO_TOOLKIT_OPTIONS_LIST_HPP 108 template<
typename T >
121 template<
typename T >
136 template<
typename T >
192 virtual void print( std::ostream& stream ) = 0;
196 template<
typename T >
203 virtual void print( std::ostream& stream )
212 typedef std::map<std::pair<OptionsName, OptionsItemType>, std::shared_ptr< OptionValueBase > >
OptionItems;
216 template<
typename T >
220 template<
typename T >
236 template<
typename T >
244 items[ std::make_pair(name, getType< T >()) ] =
250 template<
typename T >
258 OptionItems::const_iterator it =
items.find(std::make_pair(name, getType< T >()));
259 if (it !=
items.end())
261 std::shared_ptr< OptionValue< T > > ptr;
270 template<
typename T >
278 OptionItems::const_iterator it =
items.find(std::make_pair(name, getType< T >()));
279 if (it !=
items.end())
281 items[ std::make_pair(name, getType< T >()) ] =
294 #include <acado/user_interaction/options_list.ipp> 296 #endif // ACADO_TOOLKIT_OPTIONS_LIST_HPP
BooleanType hasOption(OptionsName name, OptionsItemType type) const
USING_NAMESPACE_ACADO typedef TaylorVariable< Interval > T
OptionsItemType getType() const
Allows to pass back messages to the calling function.
OptionsList & operator=(const OptionsList &rhs)
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
#define CLOSE_NAMESPACE_ACADO
returnValue set(OptionsName name, const T &value)
BooleanType haveOptionsChanged() const
returnValue printOptionsList() const
BooleanType optionsHaveChanged
virtual void print(std::ostream &stream)
returnValue get(OptionsName name, T &value) const
Provides a generic list of options (for internal use).
void rhs(const real_t *x, real_t *f)
returnValue declareOptionsUnchanged()
std::map< std::pair< OptionsName, OptionsItemType >, std::shared_ptr< OptionValueBase > > OptionItems
OptionsItemType OptionsList::getType< std::string >() const
returnValue add(OptionsName name, const T &value)
#define BEGIN_NAMESPACE_ACADO
virtual void print(std::ostream &stream)=0
OptionValue(const T &_value)
#define ACADOERROR(retval)