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 ()=default
 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

◆ Setup()

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

Constructor.

Adds the derived object to the setup cache list.

Definition at line 68 of file libmesh_singleton.C.

69 {
70  get_setup_cache().push_back (this);
71 }

◆ ~Setup()

virtual libMesh::Singleton::Setup::~Setup ( )
virtualdefault

Destructor.

Member Function Documentation

◆ setup()

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

Setup method.

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


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