CAPD RedHom Library
capd::apiRedHom::SimplicialComplex Class Reference

#include <capd/apiRedHom/Complex.h>

Public Types

typedef unsigned int Point
 
typedef std::vector< PointCellCode
 
typedef boost::any_range< CellCode, boost::forward_traversal_tag, const CellCode, std::ptrdiff_t > CellCodeRange
 
typedef boost::any InternalComplex
 
typedef ComplexTraits< DefaultComplexTagTraits
 
typedef Traits::Size Size
 
typedef Traits::Dim Dim
 
typedef Traits::Id Id
 
typedef CellsCollection::ComplexCell Cell
 

Public Member Functions

Cell operator[] (const CellCode &simplex)
 
boost::optional< Cellfind (const CellCode &simplex)
 
AnyWrapperanyComplex ()
 
template<typename T >
T & rawComplex ()
 
template<typename T >
boost::shared_ptr< T > rawComplexPtr ()
 
Dim dim () const
 
Size cardinality () const
 
ComplexIterators iterators ()
 

Static Public Attributes

static const int TYPE_STATIC_PRECOMPILED_DIM = complex::SimplicialComplexes::STATIC_PRECOMPILED_DIM
 
static const int TYPE_STATIC_NOT_PRECOMPILED_DIM = complex::SimplicialComplexes::STATIC_NOT_PRECOMPILED_DIM
 

Protected Member Functions

template<typename ThisT , typename Types >
void set_complex (const AnyWrapper &complex)
 

Protected Attributes

boost::function< Cell(const CellCode &simplex)> _operator_array
 
boost::function< boost::optional< Cell >const CellCode &simplex)> _find
 
AnyWrapper _complex
 
boost::function< Dim()> _dim
 
boost::function< Size()> _cardinality
 
 CAPD_CLASS_LOGGER
 

Friends

struct CreateSimplicialComplex
 
struct SetFunctions< SimplicialComplex >
 
 SimplicialComplex (const CellCodeRange &simplices=CellCodeRange(), int type=SimplicialComplex::TypeDefault(), int dim=-1)
 
static int TypeDefault ()
 
static SimplicialComplex LoadFromDump (std::istream &in)
 

Member Typedef Documentation

typedef boost::any_range<CellCode, boost::forward_traversal_tag, const CellCode, std::ptrdiff_t> capd::apiRedHom::SimplicialComplex::CellCodeRange
typedef boost::any capd::apiRedHom::Complex::InternalComplex
inherited

Constructor & Destructor Documentation

SimplicialComplex::SimplicialComplex ( const CellCodeRange simplices = CellCodeRange(),
int  type = SimplicialComplex::TypeDefault(),
int  dim = -1 
)
explicit

Member Function Documentation

AnyWrapper& capd::apiRedHom::Complex::anyComplex ( )
inlineinherited
Size capd::apiRedHom::Complex::cardinality ( ) const
inlineinherited
Dim capd::apiRedHom::Complex::dim ( ) const
inlineinherited
boost::optional<Cell> capd::apiRedHom::SimplicialComplex::find ( const CellCode simplex)
inline
ComplexIterators Complex::iterators ( )
inherited
SimplicialComplex SimplicialComplex::LoadFromDump ( std::istream &  in)
static
Cell capd::apiRedHom::SimplicialComplex::operator[] ( const CellCode simplex)
inline
template<typename T >
T& capd::apiRedHom::Complex::rawComplex ( )
inlineinherited
template<typename T >
boost::shared_ptr<T> capd::apiRedHom::Complex::rawComplexPtr ( )
inlineinherited
template<typename ThisT , typename Types >
void capd::apiRedHom::Complex::set_complex ( const AnyWrapper complex)
protectedinherited
int SimplicialComplex::TypeDefault ( )
static

Friends And Related Function Documentation

friend struct CreateSimplicialComplex
friend
friend struct SetFunctions< SimplicialComplex >
friend

Member Data Documentation

boost::function<Size()> capd::apiRedHom::Complex::_cardinality
protectedinherited
AnyWrapper capd::apiRedHom::Complex::_complex
protectedinherited
boost::function<Dim()> capd::apiRedHom::Complex::_dim
protectedinherited
boost::function<boost::optional<Cell>const CellCode& simplex)> capd::apiRedHom::SimplicialComplex::_find
protected
boost::function<Cell(const CellCode& simplex)> capd::apiRedHom::SimplicialComplex::_operator_array
protected
capd::apiRedHom::Complex::CAPD_CLASS_LOGGER
protectedinherited
const int capd::apiRedHom::SimplicialComplex::TYPE_STATIC_NOT_PRECOMPILED_DIM = complex::SimplicialComplexes::STATIC_NOT_PRECOMPILED_DIM
static
const int capd::apiRedHom::SimplicialComplex::TYPE_STATIC_PRECOMPILED_DIM = complex::SimplicialComplexes::STATIC_PRECOMPILED_DIM
static