IT_Bus::NillableValue< T > Class Template Reference

#include <it_bus/nillable_value.h>

Inheritance diagram for IT_Bus::NillableValue< T >:

IT_Bus::NillableValueBase< T > IT_Bus::Nillable IT_Bus::AnyType IT_Bus::ImplementationDetails IT_Reflect::ReflectedNillableValue< T > List of all members.

Detailed Description

template<class T>
class IT_Bus::NillableValue< T >

Nillable template implementation that keeps the data object in a member variable.

Note: This template can only be used for generated types that have a working copy constructor and assignment operator. it cannot be used for primitive and builtin-types

See the header file for complete method details.

Definition at line 25 of file nillable_value.h.

Public Member Functions

 NillableValue ()
IT_EXPLICIT NillableValue (const T &other)
IT_EXPLICIT NillableValue (const T *other)
virtual ~NillableValue ()
virtual const QNameget_type () const
 Returns the IT_Bus::QName for the type.
NillableValueoperator= (const T &rhs)
NillableValueoperator= (const T *rhs)

Public Attributes

virtual IT_Reflect::Reflection
*virtual get_reflection()
IT_THROW_DECL((IT_Reflect
const IT_Reflect::Reflection
*virtual get_reflection()
const IT_THROW_DECL((IT_Reflect
AnyType 
copy )(const AnyType &other)
 Returns a reference to an AnyType that is a copy of the AnyType parameter.


Member Function Documentation

template<class T>
const QName & IT_Bus::NillableValue< T >::get_type (  )  const [virtual]

Returns the IT_Bus::QName for the type.

Derived subclasses implement this method and return their QName.

Returns:
IT_Bus::QName.

Reimplemented from IT_Bus::NillableValueBase< T >.

Definition at line 96 of file nillable_value.h.


Member Data Documentation

template<class T>
AnyType & IT_Bus::NillableValue< T >::copy

Returns a reference to an AnyType that is a copy of the AnyType parameter.

Derived classes override this method, providing an appropriate implementation. In this base class, this method is not supported; an exception is always thrown.

Parameters:
AnyType to be copied.
Returns:
A reference to AnyType.
Exceptions:
IT_Bus::Exception with message "Copy not supported"

Reimplemented from IT_Bus::AnyType.

Definition at line 135 of file nillable_value.h.


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