MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include <LinearCellConnectivity.h>
Public Types | |
typedef std::vector < EntityHandle > ::const_iterator | const_iterator |
typedef std::vector < EntityHandle >::iterator | iterator |
Public Member Functions | |
SubsetArray (EntityHandle *realConn, int numCells, int currentVertsPerCell, int newVertsPerCell) | |
const_iterator | begin () const |
iterator | begin () |
const_iterator | end () const |
iterator | end () |
Private Attributes | |
std::vector< EntityHandle > | Array |
Definition at line 19 of file LinearCellConnectivity.h.
typedef std::vector< EntityHandle >::const_iterator smoab::detail::internal::SubsetArray::const_iterator |
Definition at line 41 of file LinearCellConnectivity.h.
typedef std::vector< EntityHandle >::iterator smoab::detail::internal::SubsetArray::iterator |
Definition at line 42 of file LinearCellConnectivity.h.
smoab::detail::internal::SubsetArray::SubsetArray | ( | EntityHandle * | realConn, |
int | numCells, | ||
int | currentVertsPerCell, | ||
int | newVertsPerCell | ||
) | [inline] |
Definition at line 21 of file LinearCellConnectivity.h.
: Array() { const int size = numCells * newVertsPerCell; this->Array.reserve( size ); if( currentVertsPerCell == newVertsPerCell ) { std::copy( realConn, realConn + size, std::back_inserter( this->Array ) ); } else { //skip copy only the first N points which we want //since moab stores linear points first per cell EntityHandle* pos = realConn; for( int i = 0; i < numCells; ++i ) { std::copy( pos, pos + newVertsPerCell, std::back_inserter( this->Array ) ); pos += currentVertsPerCell; } } }
const_iterator smoab::detail::internal::SubsetArray::begin | ( | ) | const [inline] |
Definition at line 44 of file LinearCellConnectivity.h.
References Array.
{ return this->Array.begin(); }
iterator smoab::detail::internal::SubsetArray::begin | ( | ) | [inline] |
Definition at line 48 of file LinearCellConnectivity.h.
References Array.
{ return this->Array.begin(); }
const_iterator smoab::detail::internal::SubsetArray::end | ( | ) | const [inline] |
Definition at line 53 of file LinearCellConnectivity.h.
References Array.
{ return this->Array.end(); }
iterator smoab::detail::internal::SubsetArray::end | ( | ) | [inline] |
Definition at line 57 of file LinearCellConnectivity.h.
References Array.
{ return this->Array.end(); }
std::vector< EntityHandle > smoab::detail::internal::SubsetArray::Array [private] |
Definition at line 63 of file LinearCellConnectivity.h.
Referenced by begin(), end(), and SubsetArray().