Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::CArena::Node Class Reference

The nodes in our free list and block list. More...

#include <AMReX_CArena.H>

Classes

struct  hash

Public Member Functions

 Node (void *a_block, void *a_owner, std::size_t a_size, MemStat *a_stat=nullptr) noexcept
bool operator< (const Node &rhs) const noexcept
 The "less-than" operator.
bool operator== (const Node &rhs) const noexcept
 The equality operator.
void * block () const noexcept
 The block address.
void block (void *blk) noexcept
 Set block address.
std::size_t size () const noexcept
 The size of the memory block.
void size (std::size_t sz) noexcept
 Set size.
void * owner () const noexcept
bool coalescable (const Node &rhs) const noexcept
MemStat * mem_stat () const
 Get the MemStat object of the function where this block was allocated.
void mem_stat (MemStat *a_stat) noexcept
 Set MemStat.

Detailed Description

The nodes in our free list and block list.

Constructor & Destructor Documentation

◆ Node()

amrex::CArena::Node::Node ( void * a_block,
void * a_owner,
std::size_t a_size,
MemStat * a_stat = nullptr )
inlinenoexcept

Member Function Documentation

◆ block() [1/2]

void * amrex::CArena::Node::block ( ) const
inlinenodiscardnoexcept

The block address.

◆ block() [2/2]

void amrex::CArena::Node::block ( void * blk)
inlinenoexcept

Set block address.

◆ coalescable()

bool amrex::CArena::Node::coalescable ( const Node & rhs) const
inlinenodiscardnoexcept

◆ mem_stat() [1/2]

MemStat * amrex::CArena::Node::mem_stat ( ) const
inlinenodiscard

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

Set MemStat.

◆ 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

The equality operator.

◆ owner()

void * amrex::CArena::Node::owner ( ) const
inlinenodiscardnoexcept

◆ size() [1/2]

std::size_t amrex::CArena::Node::size ( ) const
inlinenodiscardnoexcept

The size of the memory block.

◆ size() [2/2]

void amrex::CArena::Node::size ( std::size_t sz)
inlinenoexcept

Set size.


The documentation for this class was generated from the following file: