IT_Reflect::NillableValueImplT< NillableT, T > Class Template Reference

#include <it_bus/reflect/nillable_value_impl_t.h>

Inheritance diagram for IT_Reflect::NillableValueImplT< NillableT, T >:

IT_Reflect::ReflectionImplT< NillableT > IT_Reflect::Nillable IT_Reflect::ReflectionImpl IT_Reflect::Reflection IT_Reflect::Reflection IT_Bus::RefCountedBase IT_Bus::RefCountedBase List of all members.

Detailed Description

template<class NillableT, class T>
class IT_Reflect::NillableValueImplT< NillableT, T >

Template base class for nillable value implementations.

Definition at line 16 of file nillable_value_impl_t.h.

Public Member Functions

 NillableValueImplT (const NillableT *data) IT_THROW_DECL(())
 Constructor.
virtual ~NillableValueImplT () IT_THROW_DECL(())
 Destructor.
virtual IT_Bus::Boolean get_is_nil () const IT_THROW_DECL(())
 Determine if the instance is nill.
virtual void set_is_nil () IT_THROW_DECL(())
 Set the instance to be nil.
virtual const Reflectionget_value () const IT_THROW_DECL((ReflectException))
 Get a read-only reflection of the value.
virtual Reflectionuse_value () IT_THROW_DECL((ReflectException))
 Get a reflection that can be used to modify the value.


Member Function Documentation

template<class NillableT, class T>
IT_Bus::Boolean IT_Reflect::NillableValueImplT< NillableT, T >::get_is_nil (  )  const [virtual]

Determine if the instance is nill.

Returns:
Boolean
Exceptions:
ReflectException 

Implements IT_Reflect::Nillable.

Definition at line 70 of file nillable_value_impl_t.h.

References IT_Reflect::ReflectionImplT< NillableT >::m_data.

Referenced by IT_Reflect::NillableValueImplT< NillableT, T >::get_value().

template<class NillableT, class T>
const Reflection * IT_Reflect::NillableValueImplT< NillableT, T >::get_value (  )  const [virtual]

Get a read-only reflection of the value.

Returns:
Reflection of value or 0 if nil.
Exceptions:
ReflectException 

Implements IT_Reflect::Nillable.

Definition at line 86 of file nillable_value_impl_t.h.

References IT_Reflect::NillableValueImplT< NillableT, T >::get_is_nil().

template<class NillableT, class T>
void IT_Reflect::NillableValueImplT< NillableT, T >::set_is_nil (  )  [virtual]

Set the instance to be nil.

Returns:
void
Exceptions:
ReflectException 

Implements IT_Reflect::Nillable.

Definition at line 78 of file nillable_value_impl_t.h.

References IT_Reflect::ReflectionImplT< NillableT >::m_data.

template<class NillableT, class T>
Reflection * IT_Reflect::NillableValueImplT< NillableT, T >::use_value (  )  [virtual]

Get a reflection that can be used to modify the value.

This makes get_is_nil() false.

Returns:
Modifiable reflection of value. Caller must _remove_ref().
Exceptions:
ReflectException 

Implements IT_Reflect::Nillable.

Definition at line 95 of file nillable_value_impl_t.h.

References IT_Reflect::ReflectionImplT< NillableT >::m_data.


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