The nodes in our free list and block list.
More...
#include <AMReX_CArena.H>
The nodes in our free list and block list.
◆ Node()
amrex::CArena::Node::Node |
( |
void * |
a_block, |
|
|
void * |
a_owner, |
|
|
std::size_t |
a_size, |
|
|
MemStat * |
a_stat = nullptr |
|
) |
| |
|
inlinenoexcept |
◆ block() [1/2]
void* amrex::CArena::Node::block |
( |
| ) |
const |
|
inlinenoexcept |
◆ block() [2/2]
void amrex::CArena::Node::block |
( |
void * |
blk | ) |
|
|
inlinenoexcept |
◆ coalescable()
bool amrex::CArena::Node::coalescable |
( |
const Node & |
rhs | ) |
const |
|
inlinenoexcept |
◆ mem_stat() [1/2]
MemStat* amrex::CArena::Node::mem_stat |
( |
| ) |
const |
|
inline |
Get the MemStat object of the function where this block was allocated.
◆ mem_stat() [2/2]
void amrex::CArena::Node::mem_stat |
( |
MemStat * |
a_stat | ) |
|
|
inlinenoexcept |
◆ operator<()
bool amrex::CArena::Node::operator< |
( |
const Node & |
rhs | ) |
const |
|
inlinenoexcept |
The "less-than" operator.
◆ operator==()
bool amrex::CArena::Node::operator== |
( |
const Node & |
rhs | ) |
const |
|
inlinenoexcept |
◆ owner()
void* amrex::CArena::Node::owner |
( |
| ) |
const |
|
inlinenoexcept |
◆ size() [1/2]
std::size_t amrex::CArena::Node::size |
( |
| ) |
const |
|
inlinenoexcept |
The size of the memory block.
◆ size() [2/2]
void amrex::CArena::Node::size |
( |
std::size_t |
sz | ) |
|
|
inlinenoexcept |
◆ m_block
void* amrex::CArena::Node::m_block |
|
private |
The block of memory we reference.
◆ m_owner
void* amrex::CArena::Node::m_owner |
|
private |
The starting address of the original allocation.
◆ m_size
std::size_t amrex::CArena::Node::m_size |
|
private |
The size of the block we represent.
◆ m_stat
MemStat* amrex::CArena::Node::m_stat |
|
private |
Used for profiling if this Node represents a user allocated block of memory.
The documentation for this class was generated from the following file: