MOAB: Mesh Oriented datABase  (version 5.4.1)
VertexSequence.cpp
Go to the documentation of this file.
00001 #include "VertexSequence.hpp"
00002 
00003 namespace moab
00004 {
00005 
00006 VertexSequence::~VertexSequence() {}
00007 
00008 EntitySequence* VertexSequence::split( EntityHandle here )
00009 {
00010     return new VertexSequence( *this, here );
00011 }
00012 
00013 SequenceData* VertexSequence::create_data_subset( EntityHandle start, EntityHandle end ) const
00014 {
00015     const int sizes[] = { sizeof( double ), sizeof( double ), sizeof( double ) };
00016     return data()->subset( start, end, sizes );
00017 }
00018 
00019 ErrorCode VertexSequence::push_back( EntityID count )
00020 {
00021     return EntitySequence::append_entities( count );
00022 }
00023 
00024 ErrorCode VertexSequence::push_front( EntityID count )
00025 {
00026     return EntitySequence::prepend_entities( count );
00027 }
00028 
00029 void VertexSequence::get_const_memory_use( unsigned long& per_ent, unsigned long& seq ) const
00030 {
00031     per_ent = 3 * sizeof( double );
00032     seq     = sizeof( *this );
00033 }
00034 
00035 }  // namespace moab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines