Loading [MathJax]/extensions/tex2jax.js
Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VertexSequence.cpp
Go to the documentation of this file.
1 #include "VertexSequence.hpp" 2  3 namespace moab 4 { 5  6 VertexSequence::~VertexSequence() {} 7  8 EntitySequence* VertexSequence::split( EntityHandle here ){ 10  return new VertexSequence( *this, here ); 11 } 12  13 SequenceData* VertexSequence::create_data_subset( EntityHandle start, EntityHandle end ) const 14 { 15  const int sizes[] = { sizeof( double ), sizeof( double ), sizeof( double ) }; 16  return data()->subset( start, end, sizes ); 17 } 18  19 ErrorCode VertexSequence::push_back( EntityID count ) 20 { 21  return EntitySequence::append_entities( count ); 22 } 23  24 ErrorCode VertexSequence::push_front( EntityID count ) 25 { 26  return EntitySequence::prepend_entities( count ); 27 } 28  29 void VertexSequence::get_const_memory_use( unsigned long& per_ent, unsigned long& seq ) const 30 { 31  per_ent = 3 * sizeof( double ); 32  seq = sizeof( *this ); 33 } 34  35 } // namespace moab