Block-Structured AMR Software Framework
amrex::ErrorList Class Reference

A List of ErrorRecs. More...

#include <AMReX_ErrorList.H>

Public Member Functions

 ErrorList () noexcept=default
 
int size () const noexcept
 The number of ErrorRecs in the list. More...
 
void add (const std::string &name, int nextra, ErrorRec::ErrorType typ, const ErrorRec::ErrorFunc &func)
 Append a new ErrorRec to the list. More...
 
void add (const std::string &name, int nextra, ErrorRec::ErrorType typ, const ErrorRec::ErrorFunc2 &func)
 
const ErrorRecoperator[] (int k) const noexcept
 The kth ErrorRec. More...
 
void clear (bool rs0=false)
 

Private Attributes

Vector< std::unique_ptr< ErrorRec > > vec
 

Detailed Description

A List of ErrorRecs.

Container class for ErrorRecs.

Constructor & Destructor Documentation

◆ ErrorList()

amrex::ErrorList::ErrorList ( )
defaultnoexcept

Member Function Documentation

◆ add() [1/2]

void amrex::ErrorList::add ( const std::string &  name,
int  nextra,
ErrorRec::ErrorType  typ,
const ErrorRec::ErrorFunc func 
)

Append a new ErrorRec to the list.

Parameters
name
nextra
typ
func

◆ add() [2/2]

void amrex::ErrorList::add ( const std::string &  name,
int  nextra,
ErrorRec::ErrorType  typ,
const ErrorRec::ErrorFunc2 func 
)

◆ clear()

void amrex::ErrorList::clear ( bool  rs0 = false)
inline

◆ operator[]()

const ErrorRec & amrex::ErrorList::operator[] ( int  k) const
noexcept

The kth ErrorRec.

◆ size()

int amrex::ErrorList::size ( ) const
noexcept

The number of ErrorRecs in the list.

Member Data Documentation

◆ vec

Vector<std::unique_ptr<ErrorRec> > amrex::ErrorList::vec
private

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