OpenDaVINCI  4.15.3
odcore::reflection::Field< T > Class Template Reference

#include <Field.h>

Inheritance diagram for odcore::reflection::Field< T >:
Inheritance graph

Public Member Functions

 Field ()
 
 Field (T v)
 
 Field (const Field< T > &obj)
 
virtual ~Field ()
 
Fieldoperator= (const Field< T > &obj)
 
void setValue (const T &val)
 
getValue () const
 

Detailed Description

template<typename T>
class odcore::reflection::Field< T >

This class describes a concrete Field in a Message.

Constructor & Destructor Documentation

template<typename T>
odcore::reflection::Field< T >::Field ( )
inline
template<typename T>
odcore::reflection::Field< T >::Field ( v)
inline

Constructor.

Parameters
vValue to be directly assigned to this field.
template<typename T>
odcore::reflection::Field< T >::Field ( const Field< T > &  obj)
inline

Copy constructor.

Parameters
objReference to an object of this class.
template<typename T>
virtual odcore::reflection::Field< T >::~Field ( )
inlinevirtual

Member Function Documentation

template<typename T>
T odcore::reflection::Field< T >::getValue ( ) const
inline

Thie method returns the value for this data field.

Returns
Value for this data field.

Referenced by odcore::reflection::Message::accept(), odcore::reflection::Field< T >::operator=(), and odcore::reflection::MessageToVisitableVisitor::visit().

template<typename T>
Field& odcore::reflection::Field< T >::operator= ( const Field< T > &  obj)
inline

Assignment operator.

Parameters
objReference to an object of this class.
Returns
Reference to this instance.

References odcore::reflection::Field< T >::getValue().

template<typename T>
void odcore::reflection::Field< T >::setValue ( const T &  val)
inline

This method sets the value for this data field.

Parameters
valValue for this data field.

Referenced by odcore::reflection::Message::accept().