cheshirekow  v0.1.0
mpblocks::clarkson93::ExampleTraits2< SCALAR, NDIM >::Simplex Struct Reference

The derived type to use for simplices. More...

#include <mpblocks/clarkson93/ExampleTraits2.h>

Inheritance diagram for mpblocks::clarkson93::ExampleTraits2< SCALAR, NDIM >::Simplex:
mpblocks::clarkson93::Simplex2< This >

Public Types

typedef clarkson93::Simplex2
< This
base_t
 
- Public Types inherited from mpblocks::clarkson93::Simplex2< This >
typedef std::bitset
< simplex::NUM_BITS > 
BitSet
 
typedef This::Deref Deref
 
typedef This::Point Point
 
typedef This::PointRef PointRef
 
typedef This::Scalar Scalar
 
typedef This::SimplexRef SimplexRef
 

Public Member Functions

 Simplex ()
 
- Public Member Functions inherited from mpblocks::clarkson93::Simplex2< This >
 Simplex2 (PointRef pNull, SimplexRef sNull)
 

Additional Inherited Members

- Public Attributes inherited from mpblocks::clarkson93::Simplex2< This >
uint32_t iPeak
 index of the peak vertex More...
 
SimplexRef N [NDim+1]
 simplices which share a facet More...
 
Point n
 normal vector of base facet More...
 
Scalar o
 offset of base facet inequality hyperplane More...
 
BitSet sets
 sets this simplex is a member of More...
 
PointRef V [NDim+1]
 vertices of the simplex More...
 
- Static Public Attributes inherited from mpblocks::clarkson93::Simplex2< This >
static const unsigned int NDim
 

Detailed Description

template<typename SCALAR, unsigned int NDIM>
struct mpblocks::clarkson93::ExampleTraits2< SCALAR, NDIM >::Simplex

The derived type to use for simplices.

The only requirement is that it must derive from clarkson93::SimplexBase instantiated with the Traits class. Otherwise, it may contain as many extra data members as you want. You may hook into the triangulation control flow by overriding member functions of SimplexBase. If you do so your implementation will be called, instead of SimplexBase's (even though your implementation is not virtual). This is because the triangulation code maintains only Simplex* pointers (i.e. pointers to this type) not pointers to the base type. If you choose to hook into the program flow this way then you must be sure to call the SimplexBase member functions from your override.

Definition at line 123 of file ExampleTraits2.h.

Member Typedef Documentation

template<typename SCALAR , unsigned int NDIM>
typedef clarkson93::Simplex2<This> mpblocks::clarkson93::ExampleTraits2< SCALAR, NDIM >::Simplex::base_t

Definition at line 126 of file ExampleTraits2.h.

Constructor & Destructor Documentation

template<typename SCALAR , unsigned int NDIM>
mpblocks::clarkson93::ExampleTraits2< SCALAR, NDIM >::Simplex::Simplex ( )
inline

Definition at line 127 of file ExampleTraits2.h.


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