dune-fem 2.8.0
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
Dune::Fem::Singleton< Object > Class Template Reference

return singleton instance of given Object type. More...

#include <dune/fem/storage/singleton.hh>

Inheritance diagram for Dune::Fem::Singleton< Object >:
Inheritance graph

Static Public Member Functions

template<class... Args>
static DUNE_EXPORT Object & instance (Args &&... args)
 return singleton instance of given Object type.
 

Static Protected Member Functions

template<class... Args>
static DUNE_EXPORT Object & getObject (Args &&... args)
 return singleton instance of given Object type.
 

Static Protected Attributes

static const bool placeStaticVariableInline = false
 

Detailed Description

template<class Object>
class Dune::Fem::Singleton< Object >

return singleton instance of given Object type.

Member Function Documentation

◆ getObject()

template<class Object >
template<class... Args>
static DUNE_EXPORT Object & Dune::Fem::Singleton< Object >::getObject ( Args &&...  args)
inlinestaticprotected

return singleton instance of given Object type.

◆ instance()

template<class Object >
template<class... Args>
static DUNE_EXPORT Object & Dune::Fem::Singleton< Object >::instance ( Args &&...  args)
inlinestatic

return singleton instance of given Object type.

Parameters
argsPossible constructor arguments for object when created for first time

Member Data Documentation

◆ placeStaticVariableInline

template<class Object >
const bool Dune::Fem::Singleton< Object >::placeStaticVariableInline = false
staticprotected

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