IT_Reflect::ValueImplT< T > Class Template Reference

#include <it_bus/reflect/value_impl_t.h>

Inheritance diagram for IT_Reflect::ValueImplT< T >:

IT_Reflect::Value< T > IT_Bus::AnySimpleType IT_Reflect::BuiltInType IT_Bus::AnyType IT_Reflect::SimpleType IT_Bus::ImplementationDetails IT_Reflect::Reflection IT_Bus::RefCountedBase List of all members.

Detailed Description

template<class T>
class IT_Reflect::ValueImplT< T >

Template implementation of value type reflection.

Definition at line 19 of file value_impl_t.h.

Public Member Functions

 ValueImplT () IT_THROW_DECL(())
 Constructor.
 ValueImplT (const T &value) IT_THROW_DECL(())
 Constructor.
 ~ValueImplT () IT_THROW_DECL(())
 Destructor.
ValueImplToperator= (const T &value) IT_THROW_DECL(())
 operator T & () IT_THROW_DECL(())
 operator const T & () const 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 IT_Bus::AnyTypeclone () const IT_THROW_DECL((ReflectException))
 Create a new object with the same contents.
virtual const IT_Bus::AnyTypeget_reflected () const IT_THROW_DECL(())
 Get the reflected object.
virtual IT_Bus::AnyTypeget_reflected () IT_THROW_DECL(())
 Get the reflected object.
void copy (const IT_Reflect::BuiltInType *other) IT_THROW_DECL((ReflectException))
 Copy another type into the instance.
virtual IT_Bus::Boolean equals (const IT_Reflect::BuiltInType *other) const IT_THROW_DECL(())
 Determine if two instances are equal.
virtual const IT_Bus::QNameget_type () const
 Returns the IT_Bus::QName for the type.
virtual AnyType::Kind get_kind () const
 Returns the IT_Bus::AnyType::Kind for the type.
virtual IT_Reflect::Reflectionget_reflection () IT_THROW_DECL(())
virtual const IT_Reflect::Reflectionget_reflection () const IT_THROW_DECL(())

Private Attributes

m_data


Member Function Documentation

template<class T>
IT_Bus::AnyType * IT_Reflect::ValueImplT< T >::clone (  )  const [virtual]

Create a new object with the same contents.

Returns:
the new object, caller must _remove_ref().
Exceptions:
ReflectException if there is a problem with run-time type information for this object.

Implements IT_Reflect::Reflection.

Definition at line 248 of file value_impl_t.h.

References IT_Reflect::ValueImplT< T >::m_data.

template<class T>
void IT_Reflect::ValueImplT< T >::copy ( const IT_Reflect::BuiltInType other  ) 

Copy another type into the instance.

Parameters:
pointer to another type

Definition at line 336 of file value_impl_t.h.

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

template<class T>
IT_Bus::Boolean IT_Reflect::ValueImplT< T >::equals ( const IT_Reflect::BuiltInType other  )  const [virtual]

Determine if two instances are equal.

Returns:
boolean indicating equality

Definition at line 351 of file value_impl_t.h.

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

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

Returns the IT_Bus::AnyType::Kind for the type.

Derived subclasses override this method and return the appropriate Kind.

Returns:
AnyType::NONE.

Reimplemented from IT_Bus::AnyType.

Definition at line 264 of file value_impl_t.h.

template<class T>
IT_Bus::AnyType & IT_Reflect::ValueImplT< T >::get_reflected (  )  [virtual]

Get the reflected object.

Returns:
reference to AnyType containing the reflected object

Implements IT_Reflect::Reflection.

Definition at line 241 of file value_impl_t.h.

template<class T>
const IT_Bus::AnyType & IT_Reflect::ValueImplT< T >::get_reflected (  )  const [virtual]

Get the reflected object.

Returns:
reference to AnyType containing the reflected object

Implements IT_Reflect::Reflection.

Definition at line 234 of file value_impl_t.h.

template<class T>
const IT_Bus::QName & IT_Reflect::ValueImplT< 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 257 of file value_impl_t.h.

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

template<class T>
IT_Bus::AnyType::Kind IT_Reflect::ValueImplT< 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 226 of file value_impl_t.h.

template<class T>
const IT_Bus::QName & IT_Reflect::ValueImplT< 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 218 of file value_impl_t.h.

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

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

Get the value.

Returns:
reference to the value class
Exceptions:
ReflectException 

Implements IT_Reflect::Value< T >.

Definition at line 202 of file value_impl_t.h.

References IT_Reflect::ValueImplT< T >::m_data.

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

Get the value.

Returns:
reference to the value class
Exceptions:
ReflectException 

Implements IT_Reflect::Value< T >.

Definition at line 195 of file value_impl_t.h.

References IT_Reflect::ValueImplT< T >::m_data.

template<class T>
BuiltInType::ValueKind IT_Reflect::ValueImplT< 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 366 of file value_impl_t.h.

template<class T>
void IT_Reflect::ValueImplT< 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 209 of file value_impl_t.h.


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