Fabcoin Core
0.16.2
P2P Digital Currency
|
Manages resources for an array of objects. More...
#include <smartptr.h>
Public Member Functions | |
vector_ptr (size_t size=0) | |
Construct an arry of T . More... | |
~vector_ptr () | |
T & | operator[] (size_t index) |
const T & | operator[] (size_t index) const |
size_t | size () const |
void | resize (size_t newSize) |
operator const void * () const | |
operator void * () | |
operator const T * () const | |
operator T * () | |
Private Member Functions | |
vector_ptr (const vector_ptr< T > &c) | |
void | operator= (const vector_ptr< T > &x) |
Private Attributes | |
size_t | m_size |
T * | m_ptr |
Manages resources for an array of objects.
T | class or type |
vector_ptr
is used frequently in the library to avoid large stack allocations, and manage resources and ensure cleanup under the RAII pattern (Resource Acquisition Is Initialization).
Definition at line 229 of file smartptr.h.
|
inline |
Construct an arry of T
.
size | the size of the array, in elements |
If T
is a Plain Old Dataype (POD), then the array is uninitialized.
Definition at line 235 of file smartptr.h.
|
inline |
Definition at line 237 of file smartptr.h.
|
private |
|
inline |
Definition at line 265 of file smartptr.h.
|
inline |
Definition at line 260 of file smartptr.h.
|
inline |
|
inline |
Definition at line 262 of file smartptr.h.
|
private |
|
inline |
Definition at line 240 of file smartptr.h.
|
inline |
Definition at line 242 of file smartptr.h.
|
inline |
Definition at line 246 of file smartptr.h.
|
inline |
Definition at line 245 of file smartptr.h.
|
private |
Definition at line 276 of file smartptr.h.
|
private |
Definition at line 275 of file smartptr.h.