Shared pointer to an array member. More...
#include <ArrayMemberPointer.h>
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. |
Shared pointer to an array member.
Definition at line 32 of file ArrayMemberPointer.h.
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.
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.
variant_topic_tools::ArrayMemberPointer< T >::ArrayMemberPointer | ( | ValueType * | array = 0 , |
int | index = 0 |
||
) |
Default constructor.
variant_topic_tools::ArrayMemberPointer< T >::ArrayMemberPointer | ( | const Pointer< ValueType > & | array, |
int | index | ||
) |
Constructor (overloaded version taking an array pointer and an index)
variant_topic_tools::ArrayMemberPointer< T >::ArrayMemberPointer | ( | const ArrayMemberPointer< T > & | src | ) |
Copy constructor.
variant_topic_tools::ArrayMemberPointer< T >::ArrayMemberPointer | ( | const Pointer< MemberValueType > & | src | ) |
Copy constructor (overloaded version taking a pointer)
variant_topic_tools::ArrayMemberPointer< T >::~ArrayMemberPointer | ( | ) |
Destructor.
variant_topic_tools::ArrayMemberPointer< T >::BOOST_STATIC_ASSERT | ( | type_traits::IsArray< T >::value | ) |
const Pointer<ValueType>& variant_topic_tools::ArrayMemberPointer< T >::getArray | ( | ) | const |
Retrieve the array.
size_t variant_topic_tools::ArrayMemberPointer< T >::getIndex | ( | ) | const |
Retrieve the array member index.
void variant_topic_tools::ArrayMemberPointer< T >::setArray | ( | const Pointer< ValueType > & | array | ) |
Set the array.
void variant_topic_tools::ArrayMemberPointer< T >::setIndex | ( | int | index | ) |
Set the array member index.
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.