![]() |
Reference documentation for deal.II version 8.1.0
|
#include <vector_memory.h>
Public Member Functions | |
Pointer (VectorMemory< VECTOR > &mem) | |
~Pointer () | |
operator VECTOR * () const | |
VECTOR & | operator* () const |
VECTOR * | operator-> () const |
Private Attributes | |
SmartPointer< VectorMemory< VECTOR >, Pointer > | pool |
VECTOR * | v |
Pointer to vectors allocated from VectorMemory objects. This pointer is safe in the sense that it automatically calls free() when it is destroyed, thus relieving the user from using vector management functions at all.
Definition at line 129 of file vector_memory.h.
VectorMemory< VECTOR >::Pointer::Pointer | ( | VectorMemory< VECTOR > & | mem | ) |
Constructor, automatically allocating a vector from mem
.
VectorMemory< VECTOR >::Pointer::~Pointer | ( | ) |
Destructor, automatically releasing the vector from the memory pool.
VectorMemory< VECTOR >::Pointer::operator VECTOR * | ( | ) | const |
Conversion to regular pointer.
VECTOR& VectorMemory< VECTOR >::Pointer::operator* | ( | ) | const |
Dereferencing operator.
VECTOR* VectorMemory< VECTOR >::Pointer::operator-> | ( | ) | const |
Dereferencing operator.
|
private |
The memory pool used.
Definition at line 163 of file vector_memory.h.
|
private |
The pointer to the vector.
Definition at line 167 of file vector_memory.h.