#include <EBIndexSpace.H>
Static Public Member Functions | |
static EBIndexSpace * | instance () |
Private Member Functions | |
Chombo_EBIS () | |
~Chombo_EBIS () | |
Static Private Attributes | |
static EBIndexSpace * | s_instance |
Chombo_EBIS::Chombo_EBIS | ( | ) | [inline, private] |
Chombo_EBIS::~Chombo_EBIS | ( | ) | [inline, private] |
static EBIndexSpace* Chombo_EBIS::instance | ( | ) | [static] |
Return a pointer to the singleton EBIndexSpace. Until this is called once, the singleton is null. See Design patterns for why this is done this way.
EBIndexSpace* Chombo_EBIS::s_instance [static, private] |
This is NULL until the first time instance() is called. On the first time it is called it is set to new EBIndexSpace(); After that it points to the same thing.