Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
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]

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...
 

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

Definition of the array member type.

Definition at line 44 of file ArrayMemberPointer.h.

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>
variant_topic_tools::ArrayMemberPointer< T >::BOOST_STATIC_ASSERT ( type_traits::IsArray< T >::value  )
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 Sat Jan 9 2021 03:56:50