dune-geometry
2.2.0
|
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 Object * | create (const unsigned int topologyId, const Key &key) |
static Object * | create (const Dune::GeometryType >, const Key &key) |
template<class Topology > | |
static Object * | create (const Key &key) |
static void | release (Object *object) |
Static Public Attributes | |
static const unsigned int | dimension = Factory::dimension |
A wrapper for a TopologyFactory providing singleton storage. Same usage as TopologyFactory but with empty release method an internal storage.
typedef Factory::Key Dune::TopologySingletonFactory< Factory >::Key |
typedef const Factory::Object Dune::TopologySingletonFactory< Factory >::Object |
static Object* Dune::TopologySingletonFactory< Factory >::create | ( | const unsigned int | topologyId, |
const Key & | key | ||
) | [inline, static] |
dynamically create objects
References Dune::TopologySingletonFactory< Factory >::dimension, and Dune::GenericGeometry::topologyId().
static Object* Dune::TopologySingletonFactory< Factory >::create | ( | const Dune::GeometryType & | gt, |
const Key & | key | ||
) | [inline, static] |
dynamically create objects
References Dune::GeometryType::id().
static Object* Dune::TopologySingletonFactory< Factory >::create | ( | const Key & | key | ) | [inline, static] |
statically create objects
References Dune::TopologySingletonFactory< Factory >::dimension.
static void Dune::TopologySingletonFactory< Factory >::release | ( | Object * | object | ) | [inline, static] |
release the object returned by the create methods
const unsigned int Dune::TopologySingletonFactory< Factory >::dimension = Factory::dimension [static] |
Referenced by Dune::TopologySingletonFactory< Factory >::create().