MOAB: Mesh Oriented datABase  (version 5.3.1)
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.
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.
void get_const_memory_use (unsigned long &a, unsigned long &b) const
 Get memory characteristcs that are the same for all entities.
unsigned long get_per_entity_memory_use (EntityHandle, EntityHandle) const
 Get portion of memory use that varies per entity.
int values_per_entity () const
 Integer value used in finding appropriate SequenceData.

Private Attributes

int valsPerEnt

Detailed Description

Definition at line 93 of file TestTypeSequenceManager.cpp.


Constructor & Destructor Documentation

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

Definition at line 99 of file TestTypeSequenceManager.cpp.

        : EntitySequence( start, count, data2 ), valsPerEnt( vals_per_ent )
    {
    }
DumSeq::DumSeq ( SequenceData data2,
int  vals_per_ent = 0 
) [inline]

Definition at line 103 of file TestTypeSequenceManager.cpp.

        : EntitySequence( data2->start_handle(), data2->size(), data2 ), valsPerEnt( vals_per_ent )
    {
    }
DumSeq::DumSeq ( DumSeq split_from,
EntityHandle  here 
) [inline]

Definition at line 108 of file TestTypeSequenceManager.cpp.

        : EntitySequence( split_from, here ), valsPerEnt( split_from.valsPerEnt )
    {
    }
virtual DumSeq::~DumSeq ( ) [inline, virtual]

Definition at line 113 of file TestTypeSequenceManager.cpp.

{}

Member Function Documentation

SequenceData* DumSeq::create_data_subset ( EntityHandle  start_handle,
EntityHandle  end_handle 
) const [inline, virtual]

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 120 of file TestTypeSequenceManager.cpp.

References moab::SequenceData::subset().

    {
        return data()->subset( a, b, 0 );
    }
void DumSeq::get_const_memory_use ( unsigned long &  bytes_per_entity,
unsigned long &  size_of_sequence 
) const [inline, virtual]

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 125 of file TestTypeSequenceManager.cpp.

    {
        a = b = 0;
    }
unsigned long DumSeq::get_per_entity_memory_use ( EntityHandle  first,
EntityHandle  last 
) const [inline, virtual]

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 129 of file TestTypeSequenceManager.cpp.

    {
        return 0;
    }
EntitySequence* DumSeq::split ( EntityHandle  here) [inline, virtual]

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 115 of file TestTypeSequenceManager.cpp.

    {
        return new DumSeq( *this, here );
    }
int DumSeq::values_per_entity ( ) const [inline, virtual]

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 134 of file TestTypeSequenceManager.cpp.

    {
        return valsPerEnt;
    }

Member Data Documentation

int DumSeq::valsPerEnt [private]

Definition at line 96 of file TestTypeSequenceManager.cpp.

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines