![]() |
Reference documentation for deal.II version 8.4.2
|
#include <deal.II/lac/vector_memory.h>
Public Member Functions | |
| Pointer (VectorMemory< VectorType > &mem) | |
| ~Pointer () | |
| operator VectorType * () const | |
| VectorType & | operator* () const |
| VectorType * | operator-> () const |
Private Attributes | |
| SmartPointer< VectorMemory< VectorType >, Pointer > | pool |
| VectorType * | 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 118 of file vector_memory.h.
| VectorMemory< VectorType >::Pointer::Pointer | ( | VectorMemory< VectorType > & | mem | ) |
Constructor, automatically allocating a vector from mem.
| VectorMemory< VectorType >::Pointer::~Pointer | ( | ) |
Destructor, automatically releasing the vector from the memory pool.
| VectorMemory< VectorType >::Pointer::operator VectorType * | ( | ) | const |
Conversion to regular pointer.
| VectorType& VectorMemory< VectorType >::Pointer::operator* | ( | ) | const |
Dereferencing operator.
| VectorType* VectorMemory< VectorType >::Pointer::operator-> | ( | ) | const |
Dereferencing operator.
|
private |
The memory pool used.
Definition at line 148 of file vector_memory.h.
|
private |
The pointer to the vector.
Definition at line 152 of file vector_memory.h.
1.8.12