Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Fiber::Cell< DIMS, Elements, IndexType > Struct Template Reference

A type describing a cell in a cell complex. More...

#include <Cell.hpp>

Inheritance diagram for Fiber::Cell< DIMS, Elements, IndexType >:
Eagle::FixedArray< IndexType, Elements > Fiber::DihedralCell< uint32_t > Fiber::DihedralCell< uint64_t > Fiber::SimplexCell< 1, uint32_t > Fiber::SimplexCell< 2, uint32_t > Fiber::SimplexCell< 3, uint32_t > Fiber::SimplexCell< 1, uint64_t > Fiber::SimplexCell< 2, uint64_t > Fiber::SimplexCell< 3, uint64_t >

Public Types

enum  { Dims = DIMS }
typedef Eagle::FixedArray< IndexType, Elements > FixedArray_t
typedef Eagle::FixedArray< IndexType, Elements > Base_t
Public Types inherited from Eagle::FixedArray< IndexType, Elements >
typedef FlattenedArray_t::value_type Element_t
typedef GetFixedArrayType< value >::result_t ElementAsFixedArray_t
typedef FixedArray FixedArray_t
typedef FixedArrayFlattener< FixedArrayOfElements_tFixedArrayFlattener_t
typedef FixedArray< ElementAsFixedArray_t, N > FixedArrayOfElements_t
typedef FixedArrayFlattener_t::result_t FlattenedArray_t
typedef value value_type

Public Member Functions

 Cell (const Cell &C)
 Cell (const std::initializer_list< IndexType > &Init)
Public Member Functions inherited from Eagle::FixedArray< IndexType, Elements >
void expandMinMax (FixedArray &MinValues, FixedArray &MaxValues) const
constexpr FixedArray (const FixedArray< AType, N > &l, const FixedArray< BType, N > &r, const Operator< CompType > &)
constexpr FixedArray (const FixedArray< T, M > &F, const T &DefaultValue)
constexpr FixedArray (const FixedArray< T, N > &F)
constexpr FixedArray (const FixedArray< T, N > &F, const ConversionFunctor &CF, const FA_CONVERT &)
constexpr FixedArray (const std::initializer_list< InitType > &Init)
constexpr FixedArray (const value &a)
constexpr FixedArray (const value &a, const value &b)
 FixedArray (const value &a, const value &b, const value &c)
constexpr FixedArray (const value &a, const value &b, const value &c, const value &d)
constexpr FixedArray (const value &a, const value &b, const value &c, const value &d, const value &e)
constexpr value & get (int i)
constexpr const value & get (int i) const
constexpr const FixedArray< value, subsize > * get_subarray () const
constexpr const FixedArray< value, SIZE-1 > & get_subdim () const
const FixedArray_tgetFixedArray () const noexcept
FixedArray_tgetFixedArray () noexcept
constexpr value getMax () const
constexpr value getMin () const
constexpr bool operator!= (const FixedArray< T, N > &F) const
constexpr bool operator== (const FixedArray< T, N > &F) const
constexpr value & operator[] (int i)
constexpr const value & operator[] (int i) const
constexpr value * ptr (int i=0) noexcept
constexpr void set (const Value &x)
void setFromArray (const value *x, int length=SIZE, int offset=0)
void sort (FixedArray< int, N > &I) const
void expandMinMax (FixedArray &MinValues, FixedArray &MaxValues) const
constexpr FixedArray (const FixedArray< AType, N > &l, const FixedArray< BType, N > &r, const Operator< CompType > &)
constexpr FixedArray (const FixedArray< T, M > &F, const T &DefaultValue)
constexpr FixedArray (const FixedArray< T, N > &F)
constexpr FixedArray (const FixedArray< T, N > &F, const ConversionFunctor &CF, const FA_CONVERT &)
constexpr FixedArray (const std::initializer_list< InitType > &Init)
constexpr FixedArray (const value &a)
constexpr FixedArray (const value &a, const value &b)
 FixedArray (const value &a, const value &b, const value &c)
constexpr FixedArray (const value &a, const value &b, const value &c, const value &d)
constexpr FixedArray (const value &a, const value &b, const value &c, const value &d, const value &e)
constexpr value & get (int i)
constexpr const value & get (int i) const
constexpr const FixedArray< value, subsize > * get_subarray () const
constexpr const FixedArray< value, SIZE-1 > & get_subdim () const
const FixedArray_tgetFixedArray () const noexcept
FixedArray_tgetFixedArray () noexcept
constexpr value getMax () const
constexpr value getMin () const
constexpr bool operator!= (const FixedArray< T, N > &F) const
constexpr bool operator== (const FixedArray< T, N > &F) const
constexpr value & operator[] (int i)
constexpr const value & operator[] (int i) const
constexpr value * ptr (int i=0) noexcept
constexpr void set (const Value &x)
void setFromArray (const value *x, int length=SIZE, int offset=0)
void sort (FixedArray< int, N > &I) const

Additional Inherited Members

Static Public Member Functions inherited from Eagle::FixedArray< IndexType, Elements >
static constexpr FixedArray convert (const FixedArray< T, N > &F, const ConversionFunctor &CF)
static constexpr dimension_t size ()
static constexpr FixedArray convert (const FixedArray< T, N > &F, const ConversionFunctor &CF)
static constexpr dimension_t size ()
Protected Attributes inherited from Eagle::FixedArray< IndexType, Elements >
value data [SIZE]
value data [SIZE]

Detailed Description

template<Eagle::dimension_t DIMS, Eagle::dimension_t Elements, class IndexType>
struct Fiber::Cell< DIMS, Elements, IndexType >

A type describing a cell in a cell complex.

Class Cell provides a systematic interface for cell types in irregular grids, allowing n-dimensional types of varying precision.

A SimplexCell is an n-dimensional cell within a cell complex. A RegularCell describes an n-dimensional regular cell.

Various types are predefined for most common use cases: EdgeCell32_t, TriangleCell32_t, TetrahedronCell32_t, QuadCell32_t, HexahedronCell32_t, EdgeCell64_t, TriangleCell64_t, TetrahedronCell64_t, QuadCell64_t and HexahedronCell64_t.