All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
ompl::base::SpecificParam< T > Class Template Reference

This is a helper class that instantiates parameters with different data types. More...

#include <GenericParam.h>

Inheritance diagram for ompl::base::SpecificParam< T >:

List of all members.

Public Types

typedef boost::function< void(T)> SetterFn
 The type for the 'setter' function for this parameter.
typedef boost::function< T()> GetterFn
 The type for the 'getter' function for this parameter.

Public Member Functions

 SpecificParam (const std::string &name, const SetterFn &setter, const GetterFn &getter=GetterFn())
 An explicit instantiation of a parameter name requires the setter function and optionally the getter function.
 SpecificParam (const std::string &name, const msg::Interface &context, const SetterFn &setter, const GetterFn &getter=GetterFn())
 An explicit instantiation of a parameter name requires the setter function and optionally the getter function. In order to output information while setting parameters as if it were produced by the owner of the parameter, a console interface context is specified.
virtual bool setValue (const std::string &value)
 Set the value of the parameter. The value is taken in as a string, but converted to the type of that parameter.
virtual std::string getValue (void) const
 Retrieve the value of the parameter, as a string.

Protected Attributes

SetterFn setter_
 The setter function for this parameter.
GetterFn getter_
 The getter function for this parameter.

Detailed Description

template<typename T>
class ompl::base::SpecificParam< T >

This is a helper class that instantiates parameters with different data types.

Definition at line 117 of file GenericParam.h.


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