Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

at::UnionPtrType< w_enum_type, w_type_0, w_type_1 > Class Template Reference

#include <at_unionptr.h>

Inheritance diagram for at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >:

Inheritance graph
[legend]
Collaboration diagram for at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >:

Collaboration graph
[legend]
List of all members.

Public Methods

w_enum_type Get (w_type_0 &o_param_0, w_type_1 &o_param_1) const
UnionPtrType & operator= (const w_type_0 i_value)
bool operator== (const UnionPtrType &i_value) const
UnionPtrType & operator= (const w_type_1 i_value)
 UnionPtrType ()
 UnionPtrType (const w_type_0 i_value)
 UnionPtrType (const w_type_1 i_value)
UnionPtrType & Set (const w_type_1 i_value, w_enum_type i_type)

Public Attributes

t_PtrUnion m_value

Detailed Description

template<typename w_enum_type, typename w_type_0, typename w_type_1>
class at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >

UnionPtrType allows the management of 2 pointer types. The second type can be stored with 3 different values (or i_type) values.


Constructor & Destructor Documentation

template<typename w_enum_type, typename w_type_0, typename w_type_1>
at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >::UnionPtrType   [inline]
 

template<typename w_enum_type, typename w_type_0, typename w_type_1>
at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >::UnionPtrType const w_type_0    i_value [inline]
 

template<typename w_enum_type, typename w_type_0, typename w_type_1>
at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >::UnionPtrType const w_type_1    i_value [inline]
 


Member Function Documentation

template<typename w_enum_type, typename w_type_0, typename w_type_1>
w_enum_type at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >::Get w_type_0 &    o_param_0,
w_type_1 &    o_param_1
const [inline]
 

Will fetch the pointer in question and return the pointer type. This is just one inline to allow for compiler optimization.

Parameters:
o_param_0  reference to values 0
o_param_1  reference to values 1
Returns:
nothing

template<typename w_enum_type, typename w_type_0, typename w_type_1>
UnionPtrType& at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >::operator= const w_type_1    i_value [inline]
 

Assignment to type 1. This sets the value to the input value and sets it to type 1.

Parameters:
i_value  the value of the type

template<typename w_enum_type, typename w_type_0, typename w_type_1>
UnionPtrType& at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >::operator= const w_type_0    i_value [inline]
 

assignment to type 0. This sets the value of this object to the 0 type.

Parameters:
i_value  the value of the type

template<typename w_enum_type, typename w_type_0, typename w_type_1>
bool at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >::operator== const UnionPtrType< w_enum_type, w_type_0, w_type_1 > &    i_value const [inline]
 

Equality comparison to type 0.

Parameters:
i_value  the value of the type

template<typename w_enum_type, typename w_type_0, typename w_type_1>
UnionPtrType& at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >::Set const w_type_1    i_value,
w_enum_type    i_type
[inline]
 


Member Data Documentation

template<typename w_enum_type, typename w_type_0, typename w_type_1>
t_PtrUnion at::UnionPtrType< w_enum_type, w_type_0, w_type_1 >::m_value
 


The documentation for this class was generated from the following file:

Generated for Austria by doxygen and MakeXS at Sun Oct 24 17:35:34 PDT 2004