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 ErrorRec & | operator[] (int k) const noexcept |
The kth ErrorRec. More... | |
void | clear (bool rs0=false) |
Private Attributes | |
Vector< std::unique_ptr< ErrorRec > > | vec |
A List of ErrorRecs.
Container class for ErrorRecs.
|
defaultnoexcept |
void amrex::ErrorList::add | ( | const std::string & | name, |
int | nextra, | ||
ErrorRec::ErrorType | typ, | ||
const ErrorRec::ErrorFunc & | func | ||
) |
Append a new ErrorRec to the list.
name | |
nextra | |
typ | |
func |
void amrex::ErrorList::add | ( | const std::string & | name, |
int | nextra, | ||
ErrorRec::ErrorType | typ, | ||
const ErrorRec::ErrorFunc2 & | func | ||
) |
|
inline |
|
noexcept |
The number of ErrorRecs in the list.