Public Member Functions | Protected Attributes | Friends | List of all members
karto::Parameter< T > Class Template Reference

#include <Karto.h>

Inheritance diagram for karto::Parameter< T >:
Inheritance graph
[legend]

Public Member Functions

virtual ParameterClone ()
 
const T & GetValue () const
 
virtual const std::string GetValueAsString () const
 
const std::string GetValueAsString () const
 
const std::string GetValueAsString () const
 
Parameteroperator= (const Parameter &rOther)
 
operator= (T value)
 
 Parameter ()
 
 Parameter (const std::string &rName, const std::string &rDescription, T value, ParameterManager *pParameterManger=NULL)
 
 Parameter (const std::string &rName, T value, ParameterManager *pParameterManger=NULL)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
void SetValue (const T &rValue)
 
virtual void SetValueFromString (const std::string &rStringValue)
 
void SetValueFromString (const std::string &rStringValue)
 
void SetValueFromString (const std::string &rStringValue)
 
virtual ~Parameter ()
 
- Public Member Functions inherited from karto::AbstractParameter
 AbstractParameter ()
 
 AbstractParameter (const std::string &rName, const std::string &rDescription, ParameterManager *pParameterManger=NULL)
 
 AbstractParameter (const std::string &rName, ParameterManager *pParameterManger=NULL)
 
const std::string & GetDescription () const
 
const std::string & GetName () const
 
virtual ~AbstractParameter ()
 

Protected Attributes

m_Value
 

Friends

class boost::serialization::access
 

Detailed Description

template<typename T>
class karto::Parameter< T >

Parameter class

Definition at line 3227 of file Karto.h.

Constructor & Destructor Documentation

◆ Parameter() [1/3]

template<typename T >
karto::Parameter< T >::Parameter ( )
inline

Parameter with given name and value

Parameters
rName
value
pParameterManger

Definition at line 3236 of file Karto.h.

◆ Parameter() [2/3]

template<typename T >
karto::Parameter< T >::Parameter ( const std::string &  rName,
value,
ParameterManager pParameterManger = NULL 
)
inline

Definition at line 3239 of file Karto.h.

◆ Parameter() [3/3]

template<typename T >
karto::Parameter< T >::Parameter ( const std::string &  rName,
const std::string &  rDescription,
value,
ParameterManager pParameterManger = NULL 
)
inline

Parameter with given name, description and value

Parameters
rName
rDescription
value
pParameterManger

Definition at line 3252 of file Karto.h.

◆ ~Parameter()

template<typename T >
virtual karto::Parameter< T >::~Parameter ( )
inlinevirtual

Destructor

Definition at line 3264 of file Karto.h.

Member Function Documentation

◆ Clone()

template<typename T >
virtual Parameter* karto::Parameter< T >::Clone ( )
inlinevirtual

Clone this parameter

Returns
clone of this parameter

Implements karto::AbstractParameter.

Reimplemented in karto::ParameterEnum.

Definition at line 3313 of file Karto.h.

◆ GetValue()

template<typename T >
const T& karto::Parameter< T >::GetValue ( ) const
inline

Gets value of parameter

Returns
parameter value

Definition at line 3273 of file Karto.h.

◆ GetValueAsString() [1/3]

template<typename T >
virtual const std::string karto::Parameter< T >::GetValueAsString ( ) const
inlinevirtual

Gets value of parameter as string

Returns
string version of value

Implements karto::AbstractParameter.

Definition at line 3291 of file Karto.h.

◆ GetValueAsString() [2/3]

const std::string karto::Parameter< kt_double >::GetValueAsString ( ) const
inlinevirtual

Get parameter value as string.

Returns
value as string

Implements karto::AbstractParameter.

Definition at line 3372 of file Karto.h.

◆ GetValueAsString() [3/3]

const std::string karto::Parameter< kt_bool >::GetValueAsString ( ) const
inlinevirtual

Get parameter value as string.

Returns
value as string

Implements karto::AbstractParameter.

Definition at line 3394 of file Karto.h.

◆ operator=() [1/2]

template<typename T >
Parameter& karto::Parameter< T >::operator= ( const Parameter< T > &  rOther)
inline

Assignment operator

Definition at line 3322 of file Karto.h.

◆ operator=() [2/2]

template<typename T >
T karto::Parameter< T >::operator= ( value)
inline

Sets the value of this parameter to given value

Definition at line 3332 of file Karto.h.

◆ serialize()

template<typename T >
template<class Archive >
void karto::Parameter< T >::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

Definition at line 3344 of file Karto.h.

◆ SetValue()

template<typename T >
void karto::Parameter< T >::SetValue ( const T &  rValue)
inline

Sets value of parameter

Parameters
rValue

Definition at line 3282 of file Karto.h.

◆ SetValueFromString() [1/3]

template<typename T >
virtual void karto::Parameter< T >::SetValueFromString ( const std::string &  rStringValue)
inlinevirtual

Sets value of parameter from string

Parameters
rStringValue

Implements karto::AbstractParameter.

Reimplemented in karto::ParameterEnum.

Definition at line 3302 of file Karto.h.

◆ SetValueFromString() [2/3]

void karto::Parameter< kt_double >::SetValueFromString ( const std::string &  rStringValue)
inlinevirtual

Set parameter value from string.

Parameters
rStringValuevalue as string

Implements karto::AbstractParameter.

Definition at line 3359 of file Karto.h.

◆ SetValueFromString() [3/3]

void karto::Parameter< kt_bool >::SetValueFromString ( const std::string &  rStringValue)
inlinevirtual

Set parameter value from string.

Parameters
rStringValuevalue as string

Implements karto::AbstractParameter.

Definition at line 3381 of file Karto.h.

Friends And Related Function Documentation

◆ boost::serialization::access

template<typename T >
friend class boost::serialization::access
friend

Serialization: class Parameter

Definition at line 3342 of file Karto.h.

Member Data Documentation

◆ m_Value

template<typename T >
T karto::Parameter< T >::m_Value
protected

Parameter value

Definition at line 3354 of file Karto.h.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:56