IT_Reflect::ValueRefBase< T > Class Template Reference

#include <it_bus/reflect/value_ref_base.h>

Inheritance diagram for IT_Reflect::ValueRefBase< T >:

IT_Reflect::Value< T > IT_Reflect::BuiltInType IT_Reflect::SimpleType IT_Reflect::Reflection IT_Bus::RefCountedBase IT_Reflect::ComplexValueRef< T > IT_Reflect::ValueRef< T > List of all members.

Detailed Description

template<class T>
class IT_Reflect::ValueRefBase< T >

Template base implementation of IT_Reflect::Value that holds a reference to a value of some built-in type.

Definition at line 17 of file value_ref_base.h.

Public Member Functions

 ValueRefBase (const T &value) IT_THROW_DECL(())
 ValueRefBase (const T *value) IT_THROW_DECL(())
 ~ValueRefBase () IT_THROW_DECL(())
virtual const T & get_value () const IT_THROW_DECL(())
 Get the value.
virtual T & get_value () IT_THROW_DECL(())
 Get the value.
virtual void set_value (const T &value) IT_THROW_DECL(())
 Set the value.
virtual const IT_Bus::QNameget_type_name () const IT_THROW_DECL(())
 Get the type name of the reflected object.
virtual IT_Bus::AnyType::Kind get_type_kind () const IT_THROW_DECL(())
 Get the kind of the reflected object.
BuiltInType::ValueKind get_value_kind () const IT_THROW_DECL(())
 Get the kind of value represented by this simple type.
virtual void duplicate (const IT_Reflect::BuiltInType *other) IT_THROW_DECL((ReflectException))
 Copy to this object from another BuiltInType.
virtual void reset (const T *new_value) const IT_THROW_DECL(())
 Set a new value instance into the object.

Protected Attributes

T * m_value


Member Function Documentation

template<class T>
void IT_Reflect::ValueRefBase< T >::duplicate ( const IT_Reflect::BuiltInType other  )  [virtual]

Copy to this object from another BuiltInType.

Exceptions:
ReflectException if other is incompatible.

Implements IT_Reflect::BuiltInType.

Definition at line 139 of file value_ref_base.h.

References IT_Reflect::Value< T >::get_value().

template<class T>
IT_Bus::AnyType::Kind IT_Reflect::ValueRefBase< T >::get_type_kind (  )  const [virtual]

Get the kind of the reflected object.

Returns:
AnyType::Kind of the reflected object.

Implements IT_Reflect::Reflection.

Definition at line 131 of file value_ref_base.h.

template<class T>
const IT_Bus::QName & IT_Reflect::ValueRefBase< T >::get_type_name (  )  const [virtual]

Get the type name of the reflected object.

Returns:
QName of the reflected object

Implements IT_Reflect::Reflection.

Definition at line 123 of file value_ref_base.h.

References IT_Bus::SchemaTypeTraits< T >::type_name().

template<class T>
T & IT_Reflect::ValueRefBase< T >::get_value (  )  [virtual]

Get the value.

Returns:
reference to the value class
Exceptions:
ReflectException 

Implements IT_Reflect::Value< T >.

Definition at line 107 of file value_ref_base.h.

References IT_Reflect::ValueRefBase< T >::m_value.

template<class T>
const T & IT_Reflect::ValueRefBase< T >::get_value (  )  const [virtual]

Get the value.

Returns:
reference to the value class
Exceptions:
ReflectException 

Implements IT_Reflect::Value< T >.

Definition at line 100 of file value_ref_base.h.

References IT_Reflect::ValueRefBase< T >::m_value.

template<class T>
BuiltInType::ValueKind IT_Reflect::ValueRefBase< T >::get_value_kind (  )  const [virtual]

Get the kind of value represented by this simple type.

Returns:
ValueKind enum
Exceptions:
ReflectException 

Implements IT_Reflect::BuiltInType.

Definition at line 154 of file value_ref_base.h.

template<class T>
void IT_Reflect::ValueRefBase< T >::reset ( const T *  new_value  )  const [virtual]

Set a new value instance into the object.

Parameters:
a pointer to the new value instance

Definition at line 161 of file value_ref_base.h.

template<class T>
void IT_Reflect::ValueRefBase< T >::set_value ( const T &  value  )  [virtual]

Set the value.

Parameters:
reference to the value class
Exceptions:
ReflectException 

Implements IT_Reflect::Value< T >.

Definition at line 114 of file value_ref_base.h.


Generated on Thu Sep 7 11:41:07 2006 for Artix by  doxygen 1.4.7