dune-geometry  2.4
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
Dune::TopologySingletonFactory< Factory > Struct Template Reference

A wrapper for a TopologyFactory providing singleton storage. Same usage as TopologyFactory but with empty release method an internal storage. More...

#include <dune/geometry/topologyfactory.hh>

Public Types

typedef Factory::Key Key
 
typedef const Factory::Object Object
 

Static Public Member Functions

static Objectcreate (const Dune::GeometryType &gt, const Key &key)
 dynamically create objects More...
 
template<class Topology >
static Objectcreate (const Key &key)
 statically create objects More...
 
static void release (Object *object)
 release the object returned by the create methods More...
 

Static Public Attributes

static const unsigned int dimension = Factory::dimension
 

Detailed Description

template<class Factory>
struct Dune::TopologySingletonFactory< Factory >

A wrapper for a TopologyFactory providing singleton storage. Same usage as TopologyFactory but with empty release method an internal storage.

Member Typedef Documentation

template<class Factory >
typedef Factory::Key Dune::TopologySingletonFactory< Factory >::Key
template<class Factory >
typedef const Factory::Object Dune::TopologySingletonFactory< Factory >::Object

Member Function Documentation

template<class Factory >
static Object* Dune::TopologySingletonFactory< Factory >::create ( const Dune::GeometryType gt,
const Key key 
)
inlinestatic

dynamically create objects

References Dune::GeometryType::id().

template<class Factory >
template<class Topology >
static Object* Dune::TopologySingletonFactory< Factory >::create ( const Key key)
inlinestatic

statically create objects

template<class Factory >
static void Dune::TopologySingletonFactory< Factory >::release ( Object object)
inlinestatic

release the object returned by the create methods

Member Data Documentation

template<class Factory >
const unsigned int Dune::TopologySingletonFactory< Factory >::dimension = Factory::dimension
static

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