graphics::spaceTraits< space > Struct Template Reference

Traits for a space. More...

#include <spaceTraits.hh>

Detailed Description

template<typename space>
struct graphics::spaceTraits< space >

Traits for a space.

These traits are used by trampoline functions to fill in certain parameters which depend on the space (eg. the spatial dimension of the space). Every space which should be drawable needs an explicit specialization of this class.

To add a new spezialisation, the name of the space has to be known (this is best handled by adding a forward declaration) and an explicit template specialization of this class has to be created with the required functions, see the examplex for hp2D::Space and hp3D::Space.

See also
drawMeshDX
spaceTraits<hp2D::Space> as an example for an explicit template specialization
Author
Philipp Frauenfelder, 2002

Definition at line 51 of file spaceTraits.hh.


The documentation for this struct was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich