moab
|
00001 #include "VertexSequence.hpp" 00002 00003 namespace moab { 00004 00005 VertexSequence::~VertexSequence() {} 00006 00007 EntitySequence* VertexSequence::split( EntityHandle here ) 00008 { return new VertexSequence( *this, here ); } 00009 00010 SequenceData* VertexSequence::create_data_subset( EntityHandle start, 00011 EntityHandle end ) const 00012 { 00013 const int sizes[] = { sizeof(double), sizeof(double), sizeof(double) }; 00014 return data()->subset(start, end, sizes ); 00015 } 00016 00017 ErrorCode VertexSequence::push_back( EntityID count ) 00018 { return EntitySequence::append_entities(count); } 00019 00020 ErrorCode VertexSequence::push_front( EntityID count ) 00021 { return EntitySequence::prepend_entities(count); } 00022 00023 void VertexSequence::get_const_memory_use( unsigned long& per_ent, unsigned long& seq ) const 00024 { 00025 per_ent = 3 * sizeof(double); 00026 seq = sizeof(*this); 00027 } 00028 00029 } // namespace moab