|
MAIA bb96820c
Multiphysics at AIA
|
This class holds the complete scratch space. More...
#include <scratch.h>
Public Member Functions | |
| Scratch (MFloat size, MInt Cells) | |
| Constructor. More... | |
| ~Scratch () | |
| Destructor. More... | |
Static Public Member Functions | |
| static char * | getEndPointer () |
| Returns a pointer to the end of the scratch. More... | |
| static size_t | getAvailableMemory () |
| Returns the amount of available memory in scratch. More... | |
| static size_t | getTotalMemory () |
| Returns the amount of total available memory in scratch. More... | |
| static MString | printSelfScratch () |
| Returns a string summing up the scratch state information. More... | |
| static MString | printSelf () |
| Returns a string summing up the scratch state information and all scratch space elements information. More... | |
| static MString | printSelfReport () |
| Returns a shortened string summing up the scratch space state information. More... | |
| static MFloat | getAvailableMemory () |
Static Public Attributes | |
| static size_t | m_number_of_cells |
| static size_t | m_number_of_elements |
| static MInt | m_object_id = 0 |
| static char * | m_totalScratch |
| static size_t | m_usedmemsize |
| static char * | m_nextfree |
| static ScratchList | m_scratchSpaces |
| static char * | m_maxused |
| static MString | m_report |
Static Private Attributes | |
| static const uintptr_t | ALIGNMENT_BOUNDARY = MAIA_SCRATCH_ALIGNMENT_BOUNDARY |
Friends | |
| class | ScratchSpaceBase |
This class defines the overall size of the scratch space and tracks the sizes and allocation of newly requested Scratch space arrays.
Allocates space of "size * sizeof(MFloat) * Cells" bytes, that is "size" MFloat for every cell.
| [in] | size | number of MFloat for every cell. |
| [in] | Cells | number of cells. |
Definition at line 27 of file scratch.cpp.
|
inline |
Definition at line 117 of file scratch.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 157 of file scratch.h.
|
static |
Definition at line 106 of file scratch.cpp.
|
static |
This function is used in the report process for tracking the occasion of maximal memory usage during program execution.
Definition at line 129 of file scratch.cpp.
|
static |
Definition at line 48 of file scratch.cpp.
|
friend |
|
staticprivate |
|
static |