Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vector_member_ptrs< T > Class Template Reference

Manages resources for an array of objects. More...

#include <smartptr.h>

Public Member Functions

 vector_member_ptrs (size_t size=0)
 Construct an arry of T. More...
 
 ~vector_member_ptrs ()
 
member_ptr< T > & operator[] (size_t index)
 
const member_ptr< T > & operator[] (size_t index) const
 
size_t size () const
 
void resize (size_t newSize)
 

Private Member Functions

 vector_member_ptrs (const vector_member_ptrs< T > &c)
 
void operator= (const vector_member_ptrs< T > &x)
 

Private Attributes

size_t m_size
 
member_ptr< T > * m_ptr
 

Detailed Description

template<class T>
class vector_member_ptrs< T >

Manages resources for an array of objects.

Template Parameters
Tclass or type

Definition at line 284 of file smartptr.h.

Constructor & Destructor Documentation

template<class T>
vector_member_ptrs< T >::vector_member_ptrs ( size_t  size = 0)
inline

Construct an arry of T.

Parameters
sizethe size of the array, in elements

If T is a Plain Old Dataype (POD), then the array is uninitialized.

Definition at line 290 of file smartptr.h.

template<class T>
vector_member_ptrs< T >::~vector_member_ptrs ( )
inline

Definition at line 292 of file smartptr.h.

template<class T>
vector_member_ptrs< T >::vector_member_ptrs ( const vector_member_ptrs< T > &  c)
private

Member Function Documentation

template<class T>
void vector_member_ptrs< T >::operator= ( const vector_member_ptrs< T > &  x)
private
template<class T>
member_ptr<T>& vector_member_ptrs< T >::operator[] ( size_t  index)
inline

Definition at line 295 of file smartptr.h.

template<class T>
const member_ptr<T>& vector_member_ptrs< T >::operator[] ( size_t  index) const
inline

Definition at line 297 of file smartptr.h.

template<class T>
void vector_member_ptrs< T >::resize ( size_t  newSize)
inline

Definition at line 301 of file smartptr.h.

Here is the call graph for this function:

template<class T>
size_t vector_member_ptrs< T >::size ( ) const
inline

Definition at line 300 of file smartptr.h.

Here is the caller graph for this function:

Member Data Documentation

template<class T>
member_ptr<T>* vector_member_ptrs< T >::m_ptr
private

Definition at line 316 of file smartptr.h.

template<class T>
size_t vector_member_ptrs< T >::m_size
private

Definition at line 315 of file smartptr.h.


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