IT_Bus::NillablePtr< T > Class Template Reference

#include <it_bus/nillable_ptr.h>

Inheritance diagram for IT_Bus::NillablePtr< T >:

IT_Bus::Nillable IT_AutoPtr< T > IT_Bus::AnyType IT_Bus::ImplementationDetails IT_Reflect::ReflectedNillablePtr< T > List of all members.

Detailed Description

template<class T>
class IT_Bus::NillablePtr< T >

Template implementation of Nillable as an auto_ptr.

T is the C++ type of data, TYPE is the data type qname.

See header file for complete method details.

Definition at line 23 of file nillable_ptr.h.

Public Member Functions

 NillablePtr ()
 NillablePtr (const NillablePtr &other)
 NillablePtr (T *data)
virtual ~NillablePtr ()
NillablePtroperator= (const NillablePtr &)
AnyTypecopy (const AnyType &other)
 Returns a reference to an AnyType that is a copy of the AnyType parameter.
void set (const T *data)
virtual const QNameget_type () const
 Returns the IT_Bus::QName for the type.
virtual Boolean is_nil () const
 True if the element is nil.
virtual void set_nil ()
 Set the element to be nil.
virtual void write_value (const QName &name, ComplexTypeWriter &writer) const throw ((SerializationException))
 Write the non-nil value.
virtual void read_value (const QName &name, ComplexTypeReader &reader) throw ((DeserializationException))
 Read a non-nil value.

Private Types

typedef NillablePtr ThisType


Member Function Documentation

template<class T>
AnyType & IT_Bus::NillablePtr< T >::copy ( const AnyType other  )  [virtual]

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 132 of file nillable_ptr.h.

template<class T>
const QName & IT_Bus::NillablePtr< 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.

Implements IT_Bus::AnyType.

Definition at line 142 of file nillable_ptr.h.


Generated on Tue Mar 20 15:28:02 2007 for Artix by  doxygen 1.5.1-p1