MOAB: Mesh Oriented datABase  (version 5.5.0)
DumSeq Class Reference
+ Inheritance diagram for DumSeq:
+ Collaboration diagram for DumSeq:

Public Member Functions

 DumSeq (EntityHandle start, EntityID count, SequenceData *data2, int vals_per_ent=0)
 
 DumSeq (SequenceData *data2, int vals_per_ent=0)
 
 DumSeq (DumSeq &split_from, EntityHandle here)
 
virtual ~DumSeq ()
 
EntitySequencesplit (EntityHandle here)
 Split this sequence into two consecutive sequences. More...
 
SequenceDatacreate_data_subset (EntityHandle a, EntityHandle b) const
 Create a new SequenceData that is a copy of a subset of the one referenced by this sequence. More...
 
void get_const_memory_use (unsigned long &a, unsigned long &b) const
 Get memory characteristcs that are the same for all entities. More...
 
unsigned long get_per_entity_memory_use (EntityHandle, EntityHandle) const
 Get portion of memory use that varies per entity. More...
 
int values_per_entity () const
 Integer value used in finding appropriate SequenceData. More...
 
- 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 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...
 

Private Attributes

int valsPerEnt
 

Additional Inherited Members

- 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)
 

Detailed Description

Definition at line 98 of file TestTypeSequenceManager.cpp.

Constructor & Destructor Documentation

◆ DumSeq() [1/3]

DumSeq::DumSeq ( EntityHandle  start,
EntityID  count,
SequenceData data2,
int  vals_per_ent = 0 
)
inline

Definition at line 104 of file TestTypeSequenceManager.cpp.

105  : EntitySequence( start, count, data2 ), valsPerEnt( vals_per_ent )
106  {
107  }

◆ DumSeq() [2/3]

DumSeq::DumSeq ( SequenceData data2,
int  vals_per_ent = 0 
)
inline

Definition at line 108 of file TestTypeSequenceManager.cpp.

109  : EntitySequence( data2->start_handle(), data2->size(), data2 ), valsPerEnt( vals_per_ent )
110  {
111  }

◆ DumSeq() [3/3]

DumSeq::DumSeq ( DumSeq split_from,
EntityHandle  here 
)
inline

Definition at line 113 of file TestTypeSequenceManager.cpp.

114  : EntitySequence( split_from, here ), valsPerEnt( split_from.valsPerEnt )
115  {
116  }

◆ ~DumSeq()

virtual DumSeq::~DumSeq ( )
inlinevirtual

Definition at line 118 of file TestTypeSequenceManager.cpp.

118 {}

Member Function Documentation

◆ create_data_subset()

SequenceData* DumSeq::create_data_subset ( EntityHandle  start_handle,
EntityHandle  end_handle 
) const
inlinevirtual

Create a new SequenceData that is a copy of a subset of the one referenced by this sequence.

Create a new SequenceData that is a copy of a subset of the SequenceData referenced by this EntitySequence. Do not make any changes to this EntitySequence or the current SequenceData.

Implements moab::EntitySequence.

Definition at line 125 of file TestTypeSequenceManager.cpp.

126  {
127  return data()->subset( a, b, 0 );
128  }

References moab::SequenceData::subset().

◆ get_const_memory_use()

void DumSeq::get_const_memory_use ( unsigned long &  bytes_per_entity,
unsigned long &  size_of_sequence 
) const
inlinevirtual

Get memory characteristcs that are the same for all entities.

Get charactersitic constant memory use for all entities in sequence.

Parameters
bytes_per_entityThe total bytes consumed for each entity in the underlying SequenceData. It is assumed that the same amount of memory is consumed for unused portions of the SequenceData.
size_of_sequenceThe size of the leaf subclass of this class

Implements moab::EntitySequence.

Definition at line 130 of file TestTypeSequenceManager.cpp.

131  {
132  a = b = 0;
133  }

◆ get_per_entity_memory_use()

unsigned long DumSeq::get_per_entity_memory_use ( EntityHandle  first,
EntityHandle  last 
) const
inlinevirtual

Get portion of memory use that varies per entity.

Returns
Any per-entity memory use not accounted for in the results of get_const_memory_use.

Reimplemented from moab::EntitySequence.

Definition at line 134 of file TestTypeSequenceManager.cpp.

135  {
136  return 0;
137  }

◆ split()

EntitySequence* DumSeq::split ( EntityHandle  here)
inlinevirtual

Split this sequence into two consecutive sequences.

Split this sequence into two sequences.

Parameters
hereNew sequences should be [start_handle(),here) & [here,end_handle()]
Returns
New sequence containing [here,end_handle()]

Implements moab::EntitySequence.

Definition at line 120 of file TestTypeSequenceManager.cpp.

121  {
122  return new DumSeq( *this, here );
123  }

◆ values_per_entity()

int DumSeq::values_per_entity ( ) const
inlinevirtual

Integer value used in finding appropriate SequenceData.

This value is matched to input values by TypeSequenceManager to determine if an available, unused portino of a SequenceData can be used for a specific entity allocation. For example, it is used to find a SequenceData with the appropriate number of vertices per element when allocating elements. The default value is zero.

Reimplemented from moab::EntitySequence.

Definition at line 139 of file TestTypeSequenceManager.cpp.

140  {
141  return valsPerEnt;
142  }

Member Data Documentation

◆ valsPerEnt

int DumSeq::valsPerEnt
private

Definition at line 101 of file TestTypeSequenceManager.cpp.


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