Block-Structured AMR Software Framework
amrex::BARef Struct Reference

#include <AMReX_BoxArray.H>

Public Types

using HashType = std::unordered_map< IntVect, std::vector< int >, IntVect::shift_hasher >
 

Public Member Functions

 BARef ()
 
 BARef (size_t size)
 
 BARef (const Box &b)
 
 BARef (const BoxList &bl)
 
 BARef (BoxList &&bl) noexcept
 
 BARef (std::istream &is)
 
 BARef (const BARef &rhs)
 
 BARef (BARef &&rhs)=delete
 
BARefoperator= (const BARef &rhs)=delete
 
BARefoperator= (BARef &&rhs)=delete
 
 ~BARef ()
 
void define (const Box &bx)
 
void define (const BoxList &bl)
 
void define (BoxList &&bl) noexcept
 
void define (std::istream &is, int &ndims)
 
void resize (Long n)
 
bool HasHashMap () const
 

Static Public Member Functions

static void Initialize ()
 
static void Finalize ()
 

Public Attributes

Vector< Boxm_abox
 The data. More...
 
Box bbox
 Box hash stuff. More...
 
IntVect crsn
 
HashType hash
 
bool has_hashmap = false
 

Static Public Attributes

static int numboxarrays
 
static int numboxarrays_hwm
 
static Long total_box_bytes
 
static Long total_box_bytes_hwm
 
static Long total_hash_bytes
 
static Long total_hash_bytes_hwm
 
static bool initialized = false
 

Member Typedef Documentation

◆ HashType

using amrex::BARef::HashType = std::unordered_map< IntVect, std::vector<int>, IntVect::shift_hasher >

Constructor & Destructor Documentation

◆ BARef() [1/8]

amrex::BARef::BARef ( )

◆ BARef() [2/8]

amrex::BARef::BARef ( size_t  size)
explicit

◆ BARef() [3/8]

amrex::BARef::BARef ( const Box b)
explicit

◆ BARef() [4/8]

amrex::BARef::BARef ( const BoxList bl)
explicit

◆ BARef() [5/8]

amrex::BARef::BARef ( BoxList &&  bl)
explicitnoexcept

◆ BARef() [6/8]

amrex::BARef::BARef ( std::istream &  is)
explicit

◆ BARef() [7/8]

amrex::BARef::BARef ( const BARef rhs)

◆ BARef() [8/8]

amrex::BARef::BARef ( BARef &&  rhs)
delete

◆ ~BARef()

amrex::BARef::~BARef ( )

Member Function Documentation

◆ define() [1/4]

void amrex::BARef::define ( BoxList &&  bl)
noexcept

◆ define() [2/4]

void amrex::BARef::define ( const Box bx)

◆ define() [3/4]

void amrex::BARef::define ( const BoxList bl)

◆ define() [4/4]

void amrex::BARef::define ( std::istream &  is,
int ndims 
)

◆ Finalize()

void amrex::BARef::Finalize ( )
static

◆ HasHashMap()

bool amrex::BARef::HasHashMap ( ) const
inline

◆ Initialize()

void amrex::BARef::Initialize ( )
static

◆ operator=() [1/2]

BARef& amrex::BARef::operator= ( BARef &&  rhs)
delete

◆ operator=() [2/2]

BARef& amrex::BARef::operator= ( const BARef rhs)
delete

◆ resize()

void amrex::BARef::resize ( Long  n)

Member Data Documentation

◆ bbox

Box amrex::BARef::bbox
mutable

Box hash stuff.

◆ crsn

IntVect amrex::BARef::crsn
mutable

◆ has_hashmap

bool amrex::BARef::has_hashmap = false
mutable

◆ hash

HashType amrex::BARef::hash
mutable

◆ initialized

bool amrex::BARef::initialized = false
static

◆ m_abox

Vector<Box> amrex::BARef::m_abox

The data.

◆ numboxarrays

int amrex::BARef::numboxarrays
static

◆ numboxarrays_hwm

int amrex::BARef::numboxarrays_hwm
static

◆ total_box_bytes

Long amrex::BARef::total_box_bytes
static

◆ total_box_bytes_hwm

Long amrex::BARef::total_box_bytes_hwm
static

◆ total_hash_bytes

Long amrex::BARef::total_hash_bytes
static

◆ total_hash_bytes_hwm

Long amrex::BARef::total_hash_bytes_hwm
static

The documentation for this struct was generated from the following files: