libMesh
Public Member Functions | Protected Member Functions | List of all members
libMesh::Singleton::Setup Class Referenceabstract

Abstract base class for runtime singleton setup. More...

#include <libmesh_singleton.h>

Public Member Functions

virtual ~Setup ()
 Destructor. More...
 
virtual void setup ()=0
 Setup method. More...
 

Protected Member Functions

 Setup ()
 Constructor. More...
 

Detailed Description

Abstract base class for runtime singleton setup.

This will be called from the LibMeshInit constructor.

Definition at line 55 of file libmesh_singleton.h.

Constructor & Destructor Documentation

libMesh::Singleton::Setup::Setup ( )
protected

Constructor.

Adds the derived object to the setup cache list.

Definition at line 73 of file libmesh_singleton.C.

74 {
75  get_setup_cache().push_back (this);
76 }
virtual libMesh::Singleton::Setup::~Setup ( )
virtual

Destructor.

Definition at line 67 of file libmesh_singleton.h.

References libMesh::Singleton::cleanup(), and setup().

67 {}

Member Function Documentation

virtual void libMesh::Singleton::Setup::setup ( )
pure virtual

Setup method.

Importantly, this is called after main() from the LibMeshInit constructor.

Referenced by ~Setup().


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