Classes | Public Types | Public Member Functions | Static Public Attributes
variant_topic_tools::ArrayMemberPointer< T > Class Template Reference

Shared pointer to an array member. More...

#include <ArrayMemberPointer.h>

Inheritance diagram for variant_topic_tools::ArrayMemberPointer< T >:
Inheritance graph
[legend]

List of all members.

Classes

class  Impl
 Array member pointer implementation. More...

Public Types

typedef type_traits::ArrayType
< T >::MemberValueType 
MemberValueType
 Definition of the array member type.
typedef type_traits::ArrayType
< T >::ValueType 
ValueType
 Definition of the array value type.

Public Member Functions

 ArrayMemberPointer (ValueType *array=0, int index=0)
 Default constructor.
 ArrayMemberPointer (const Pointer< ValueType > &array, int index)
 Constructor (overloaded version taking an array pointer and an index)
 ArrayMemberPointer (const ArrayMemberPointer< T > &src)
 Copy constructor.
 ArrayMemberPointer (const Pointer< MemberValueType > &src)
 Copy constructor (overloaded version taking a pointer)
 BOOST_STATIC_ASSERT (type_traits::IsArray< T >::value)
const Pointer< ValueType > & getArray () const
 Retrieve the array.
size_t getIndex () const
 Retrieve the array member index.
void setArray (const Pointer< ValueType > &array)
 Set the array.
void setIndex (int index)
 Set the array member index.
 ~ArrayMemberPointer ()
 Destructor.

Static Public Attributes

static const size_t NumMembers = type_traits::ArrayType<T>::NumMembers
 Definition of the number of array members.

Detailed Description

template<typename T>
class variant_topic_tools::ArrayMemberPointer< T >

Shared pointer to an array member.

Definition at line 32 of file ArrayMemberPointer.h.


Member Typedef Documentation

template<typename T>
typedef type_traits::ArrayType<T>::MemberValueType variant_topic_tools::ArrayMemberPointer< T >::MemberValueType

Definition of the array member type.

Definition at line 44 of file ArrayMemberPointer.h.

template<typename T>
typedef type_traits::ArrayType<T>::ValueType variant_topic_tools::ArrayMemberPointer< T >::ValueType

Definition of the array value type.

Definition at line 39 of file ArrayMemberPointer.h.


Constructor & Destructor Documentation

template<typename T>
variant_topic_tools::ArrayMemberPointer< T >::ArrayMemberPointer ( ValueType array = 0,
int  index = 0 
)

Default constructor.

template<typename T>
variant_topic_tools::ArrayMemberPointer< T >::ArrayMemberPointer ( const Pointer< ValueType > &  array,
int  index 
)

Constructor (overloaded version taking an array pointer and an index)

template<typename T>
variant_topic_tools::ArrayMemberPointer< T >::ArrayMemberPointer ( const ArrayMemberPointer< T > &  src)

Copy constructor.

Copy constructor (overloaded version taking a pointer)

Destructor.


Member Function Documentation

template<typename T>
const Pointer<ValueType>& variant_topic_tools::ArrayMemberPointer< T >::getArray ( ) const

Retrieve the array.

template<typename T>
size_t variant_topic_tools::ArrayMemberPointer< T >::getIndex ( ) const

Retrieve the array member index.

template<typename T>
void variant_topic_tools::ArrayMemberPointer< T >::setArray ( const Pointer< ValueType > &  array)

Set the array.

template<typename T>
void variant_topic_tools::ArrayMemberPointer< T >::setIndex ( int  index)

Set the array member index.


Member Data Documentation

template<typename T>
const size_t variant_topic_tools::ArrayMemberPointer< T >::NumMembers = type_traits::ArrayType<T>::NumMembers [static]

Definition of the number of array members.

Definition at line 48 of file ArrayMemberPointer.h.


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


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Fri Aug 5 2016 06:06:27