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. More... | |
typedef type_traits::ArrayType< T >::ValueType | ValueType |
Definition of the array value type. More... | |
Public Member Functions | |
ArrayMemberPointer (ValueType *array=0, int index=0) | |
Default constructor. More... | |
ArrayMemberPointer (const Pointer< ValueType > &array, int index) | |
Constructor (overloaded version taking an array pointer and an index) More... | |
ArrayMemberPointer (const ArrayMemberPointer< T > &src) | |
Copy constructor. More... | |
ArrayMemberPointer (const Pointer< MemberValueType > &src) | |
Copy constructor (overloaded version taking a pointer) More... | |
BOOST_STATIC_ASSERT (type_traits::IsArray< T >::value) | |
const Pointer< ValueType > & | getArray () const |
Retrieve the array. More... | |
size_t | getIndex () const |
Retrieve the array member index. More... | |
void | setArray (const Pointer< ValueType > &array) |
Set the array. More... | |
void | setIndex (int index) |
Set the array member index. More... | |
~ArrayMemberPointer () | |
Destructor. More... | |
Public Member Functions inherited from variant_topic_tools::Pointer< type_traits::ArrayType< T >::MemberValueType > | |
type_traits::ArrayType< T >::MemberValueType * | get () const |
Retrieve the stored pointer. More... | |
operator void * () const | |
Void pointer conversion. More... | |
bool | operator!= (const Pointer< type_traits::ArrayType< T >::MemberValueType > &pointer) const |
Inequality comparison operator. More... | |
type_traits::ArrayType< T >::MemberValueType & | operator* () const |
Reference operator. More... | |
type_traits::ArrayType< T >::MemberValueType * | operator-> () const |
Pointer operator. More... | |
bool | operator== (const Pointer< type_traits::ArrayType< T >::MemberValueType > &pointer) const |
Equality comparison operator. More... | |
Pointer (type_traits::ArrayType< T >::MemberValueType *pointer=0) | |
Default constructor. More... | |
Pointer (const Pointer< type_traits::ArrayType< T >::MemberValueType > &src) | |
Copy constructor. More... | |
void | reset () |
Reset this pointer. More... | |
~Pointer () | |
Destructor. More... | |
Static Public Attributes | |
static const size_t | NumMembers = type_traits::ArrayType<T>::NumMembers |
Definition of the number of array members. More... | |
Additional Inherited Members | |
Protected Types inherited from variant_topic_tools::Pointer< type_traits::ArrayType< T >::MemberValueType > | |
typedef boost::shared_ptr< ImplA > | ImplPtr |
Declaration of the pointer implementation pointer type. More... | |
typedef boost::weak_ptr< ImplA > | ImplWPtr |
Declaration of the pointer implementation weak pointer type. More... | |
Protected Attributes inherited from variant_topic_tools::Pointer< type_traits::ArrayType< T >::MemberValueType > | |
ImplPtr | impl |
The pointer's implementation. More... | |
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.
|
static |
Definition of the number of array members.
Definition at line 48 of file ArrayMemberPointer.h.