dune-geometry  2.2.0
Public Types | Static Public Member Functions | Static Public Attributes
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>

List of all members.

Public Types

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

Static Public Member Functions

static Objectcreate (const unsigned int topologyId, const Key &key)
static Objectcreate (const Dune::GeometryType &gt, const Key &key)
template<class Topology >
static Objectcreate (const Key &key)
static void release (Object *object)

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 unsigned int  topologyId,
const Key key 
) [inline, static]

dynamically create objects

Deprecated:
Use create(Dune::GeometryType, Key) instead
Deprecated:
"use create(Dune::GeometryType, Key) instead"
Deprecated:

References Dune::TopologySingletonFactory< Factory >::dimension, and Dune::GenericGeometry::topologyId().

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

dynamically create objects

References Dune::GeometryType::id().

template<class Factory >
template<class Topology >
static Object* Dune::TopologySingletonFactory< Factory >::create ( const Key key) [inline, static]

statically create objects

References Dune::TopologySingletonFactory< Factory >::dimension.

template<class Factory >
static void Dune::TopologySingletonFactory< Factory >::release ( Object object) [inline, static]

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: