IT_Bus::ElementListT< T > Class Template Reference

#include <it_bus/element_list_t.h>

Inheritance diagram for IT_Bus::ElementListT< T >:

IT_Bus::MinMaxListT< T > IT_Bus::ElementList IT_Bus::AnyType IT_Bus::MinMaxList IT_Bus::ImplementationDetails List of all members.

Detailed Description

template<typename T>
class IT_Bus::ElementListT< T >

Template base class for element list implementations.

Definition at line 23 of file element_list_t.h.

Public Types

typedef IT_Reflect::ElementListImplT<
ElementListT< T >, T > 
IT_ReflectionType

Public Member Functions

 ElementListT (const QName &item_name, const size_t min_occurs, const size_t max_occurs, const size_t list_size=0)
 Constructor.
 ElementListT (const T &elem, const QName &item_name, const size_t min_occurs, const size_t max_occurs, const size_t list_size=0)
 Constructor.
 ElementListT (const size_t min_occurs=0, const size_t max_occurs=1, const size_t list_size=0, const QName &item_name=QName::EMPTY_QNAME)
 Constructor.
virtual void read_element (size_t pos, ComplexTypeReader &reader) IT_THROW_DECL((DeserializationException))
 Read the specified element.
virtual void write_element (size_t pos, ComplexTypeWriter &writer) const IT_THROW_DECL((SerializationException))
 Write the specified element.
void set_item_name (const QName &item_name)
 Set the name of each element in the list.
const QNameget_item_name () const
 Get the name of each element in the list.
size_t get_min_occurs () const
 Get the minimum occurs value of the list.
void set_min_occurs (size_t min_occurs)
 Set the minimum occurs value of the list.
size_t get_max_occurs () const
 Get the maximum occurs value of the list.
void set_max_occurs (size_t max_occurs)
 Set the maximum occurs value of the list.
void set_size (size_t new_size)
 Set the size of the list.
size_t get_size () const
 Get the size of the list.
ElementListToperator= (const IT_Vector< T > &rhs)
 Assignment operator.
ElementListToperator= (const ElementListT &rhs)
 Assignment operator.
virtual AnyTypecopy (const AnyType &rhs)
 Returns a reference to an AnyType that is a copy of the AnyType parameter.

Private Attributes

QName m_item_name


Member Function Documentation

template<typename T>
virtual AnyType& IT_Bus::ElementListT< T >::copy ( const AnyType rhs  )  [inline, virtual]

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

Parameters:
AnyType to be copied.
Returns:
AnyType.

Definition at line 230 of file element_list_t.h.

template<typename T>
size_t IT_Bus::ElementListT< T >::get_max_occurs (  )  const [inline]

Get the maximum occurs value of the list.

Returns:
size_t

Reimplemented from IT_Bus::MinMaxListT< T >.

Definition at line 152 of file element_list_t.h.

template<typename T>
size_t IT_Bus::ElementListT< T >::get_min_occurs (  )  const [inline]

Get the minimum occurs value of the list.

Returns:
size_t

Reimplemented from IT_Bus::MinMaxListT< T >.

Definition at line 128 of file element_list_t.h.

template<typename T>
size_t IT_Bus::ElementListT< T >::get_size (  )  const [inline]

Get the size of the list.

Returns:
size_t

Reimplemented from IT_Bus::MinMaxListT< T >.

Definition at line 189 of file element_list_t.h.

template<typename T>
ElementListT& IT_Bus::ElementListT< T >::operator= ( const ElementListT< T > &  rhs  )  [inline]

Assignment operator.

Parameters:
A reference to ElementListT to be used as assignment value.

Definition at line 214 of file element_list_t.h.

template<typename T>
ElementListT& IT_Bus::ElementListT< T >::operator= ( const IT_Vector< T > &  rhs  )  [inline]

Assignment operator.

Parameters:
A reference to vector to be used as assignment value.

Reimplemented from IT_Bus::MinMaxListT< T >.

Definition at line 200 of file element_list_t.h.

template<typename T>
virtual void IT_Bus::ElementListT< T >::read_element ( size_t  pos,
ComplexTypeReader reader 
) [inline, virtual]

Read the specified element.

Parameters:
size_t the index of the specified element.

Implements IT_Bus::ElementList.

Definition at line 78 of file element_list_t.h.

template<typename T>
void IT_Bus::ElementListT< T >::set_item_name ( const QName item_name  )  [inline]

Set the name of each element in the list.

Parameters:
QName for each element in the list.

Definition at line 106 of file element_list_t.h.

template<typename T>
void IT_Bus::ElementListT< T >::set_max_occurs ( size_t  max_occurs  )  [inline]

Set the maximum occurs value of the list.

Parameters:
size_t the maximum occurs value

Reimplemented from IT_Bus::MinMaxListT< T >.

Definition at line 163 of file element_list_t.h.

template<typename T>
void IT_Bus::ElementListT< T >::set_min_occurs ( size_t  min_occurs  )  [inline]

Set the minimum occurs value of the list.

Parameters:
size_t the minimum occurs value.

Reimplemented from IT_Bus::MinMaxListT< T >.

Definition at line 139 of file element_list_t.h.

template<typename T>
void IT_Bus::ElementListT< T >::set_size ( size_t  new_size  )  [inline]

Set the size of the list.

Parameters:
size_t the size of the list

Reimplemented from IT_Bus::MinMaxListT< T >.

Definition at line 176 of file element_list_t.h.

template<typename T>
virtual void IT_Bus::ElementListT< T >::write_element ( size_t  pos,
ComplexTypeWriter writer 
) const [inline, virtual]

Write the specified element.

Parameters:
size_t the index of the specified element.

Implements IT_Bus::ElementList.

Definition at line 92 of file element_list_t.h.


Generated on Thu Sep 7 11:39:52 2006 for Artix by  doxygen 1.4.7