Mesh Oriented datABase  (version 5.5.0)
An array-based unstructured mesh library
moab::ElementSequence Class Referenceabstract

#include <ElementSequence.hpp>

+ Inheritance diagram for moab::ElementSequence:
+ Collaboration diagram for moab::ElementSequence:

Public Member Functions

 ElementSequence (EntityHandle start, EntityID count, unsigned int nodes_per_elem, SequenceData *dat)
 
virtual ~ElementSequence ()
 
unsigned int nodes_per_element () const
 
virtual ErrorCode get_connectivity (EntityHandle handle, std::vector< EntityHandle > &connect, bool topological=false) const =0
 
virtual ErrorCode get_connectivity (EntityHandle handle, EntityHandle const *&connect, int &connect_length, bool topological=false, std::vector< EntityHandle > *storage=0) const =0
 
virtual ErrorCode set_connectivity (EntityHandle handle, EntityHandle const *connect, int connect_length)=0
 
EntityHandle const * get_connectivity_array () const
 
virtual EntityHandleget_connectivity_array ()=0
 
bool has_mid_edge_nodes () const
 
bool has_mid_face_nodes () const
 
bool has_mid_volume_nodes () const
 
- Public Member Functions inherited from moab::EntitySequence
 EntitySequence (EntityHandle start, EntityID count, SequenceData *dat)
 
virtual ~EntitySequence ()
 
EntityType type () const
 
EntityHandle start_handle () const
 
EntityHandle end_handle () const
 
SequenceDatadata () const
 
void data (SequenceData *ptr)
 
EntityID size () const
 
bool using_entire_data () const
 True if SequenceData has no holes and is used only by this EntitySequence. More...
 
virtual int values_per_entity () const
 Integer value used in finding appropriate SequenceData. More...
 
virtual EntitySequencesplit (EntityHandle here)=0
 Split this sequence into two consecutive sequences. More...
 
virtual ErrorCode merge (EntitySequence &other)
 Merge this sequence with another. More...
 
virtual ErrorCode pop_back (EntityID count)
 Erase entities in range: (end_handle()-count, end_handle()]. More...
 
virtual ErrorCode pop_front (EntityID count)
 Erase entities in range: [start_handle(), start_handle()+count) More...
 
virtual SequenceDatacreate_data_subset (EntityHandle start_handle, EntityHandle end_handle) const =0
 Create a new SequenceData that is a copy of a subset of the one referenced by this sequence. More...
 
virtual void get_const_memory_use (unsigned long &bytes_per_entity, unsigned long &size_of_sequence) const =0
 Get memory characteristcs that are the same for all entities. More...
 
virtual unsigned long get_per_entity_memory_use (EntityHandle first, EntityHandle last) const
 Get portion of memory use that varies per entity. More...
 

Protected Member Functions

 ElementSequence (ElementSequence &split_from, EntityHandle here)
 
- Protected Member Functions inherited from moab::EntitySequence
 EntitySequence (EntityHandle h)
 
 EntitySequence (EntitySequence &split_from, EntityHandle here)
 
SequenceDatacreate_data_subset (EntityHandle start_handle, EntityHandle end_handle, int num_sequence_arrays, unsigned const *bytes_per_element) const
 
ErrorCode prepend_entities (EntityID count)
 
ErrorCode append_entities (EntityID count)
 

Private Attributes

unsigned nodesPerElement
 

Detailed Description

Definition at line 11 of file ElementSequence.hpp.

Constructor & Destructor Documentation

◆ ElementSequence() [1/2]

moab::ElementSequence::ElementSequence ( EntityHandle  start,
EntityID  count,
unsigned int  nodes_per_elem,
SequenceData dat 
)
inline

Definition at line 14 of file ElementSequence.hpp.

15  : EntitySequence( start, count, dat ), nodesPerElement( nodes_per_elem )
16  {
17  }

◆ ~ElementSequence()

virtual moab::ElementSequence::~ElementSequence ( )
inlinevirtual

Definition at line 19 of file ElementSequence.hpp.

19 {}

◆ ElementSequence() [2/2]

moab::ElementSequence::ElementSequence ( ElementSequence split_from,
EntityHandle  here 
)
inlineprotected

Definition at line 47 of file ElementSequence.hpp.

48  : EntitySequence( split_from, here ), nodesPerElement( split_from.nodesPerElement )
49  {
50  }

Member Function Documentation

◆ get_connectivity() [1/2]

virtual ErrorCode moab::ElementSequence::get_connectivity ( EntityHandle  handle,
EntityHandle const *&  connect,
int &  connect_length,
bool  topological = false,
std::vector< EntityHandle > *  storage = 0 
) const
pure virtual

◆ get_connectivity() [2/2]

virtual ErrorCode moab::ElementSequence::get_connectivity ( EntityHandle  handle,
std::vector< EntityHandle > &  connect,
bool  topological = false 
) const
pure virtual

◆ get_connectivity_array() [1/2]

◆ get_connectivity_array() [2/2]

virtual EntityHandle* moab::ElementSequence::get_connectivity_array ( )
pure virtual

◆ has_mid_edge_nodes()

◆ has_mid_face_nodes()

◆ has_mid_volume_nodes()

◆ nodes_per_element()

◆ set_connectivity()

virtual ErrorCode moab::ElementSequence::set_connectivity ( EntityHandle  handle,
EntityHandle const *  connect,
int  connect_length 
)
pure virtual

Member Data Documentation

◆ nodesPerElement

unsigned moab::ElementSequence::nodesPerElement
private

Definition at line 53 of file ElementSequence.hpp.

Referenced by nodes_per_element().


The documentation for this class was generated from the following file: