#include <VertexSequence.hpp>
Public Member Functions | |
VertexSequence (EntityHandle start, EntityID count, SequenceData *dat) | |
VertexSequence (EntityHandle start, EntityID count, EntityID data_size) | |
virtual | ~VertexSequence () |
ErrorCode | get_coordinates (EntityHandle handle, double &x, double &y, double &z) const |
ErrorCode | get_coordinates (EntityHandle handle, double coords[3]) const |
ErrorCode | get_coordinates_ref (EntityHandle handle, const double *&x, const double *&y, const double *&z) const |
ErrorCode | set_coordinates (EntityHandle entity, double x, double y, double z) |
ErrorCode | set_coordinates (EntityHandle entity, const double xyz[3]) |
ErrorCode | get_coordinate_arrays (double *&x, double *&y, double *&z) |
ErrorCode | get_coordinate_arrays (const double *&x, const double *&y, const double *&z) const |
EntitySequence * | split (EntityHandle here) |
Split this sequence into two consecutive sequences. More... | |
SequenceData * | create_data_subset (EntityHandle start, EntityHandle end) const |
Create a new SequenceData that is a copy of a subset of the one referenced by this sequence. More... | |
ErrorCode | push_front (EntityID count) |
ErrorCode | push_back (EntityID count) |
void | get_const_memory_use (unsigned long &bytes_per_entity, unsigned long &size_of_sequence) const |
Get memory characteristcs that are the same for all entities. 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 |
SequenceData * | data () 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 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 unsigned long | get_per_entity_memory_use (EntityHandle first, EntityHandle last) const |
Get portion of memory use that varies per entity. More... | |
Private Types | |
enum | Coord { X = 0 , Y = 1 , Z = 2 } |
Private Member Functions | |
double * | array (Coord coord) |
const double * | array (Coord coord) const |
double * | x_array () |
double * | y_array () |
double * | z_array () |
const double * | x_array () const |
const double * | y_array () const |
const double * | z_array () const |
VertexSequence (VertexSequence &split_from, EntityHandle here) | |
Additional Inherited Members | |
Protected Member Functions inherited from moab::EntitySequence | |
EntitySequence (EntityHandle h) | |
EntitySequence (EntitySequence &split_from, EntityHandle here) | |
SequenceData * | create_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) |
Definition at line 10 of file VertexSequence.hpp.
|
private |
Enumerator | |
---|---|
X | |
Y | |
Z |
Definition at line 52 of file VertexSequence.hpp.
|
inline |
|
inline |
Definition at line 15 of file VertexSequence.hpp.
References moab::SequenceData::create_sequence_data(), moab::EntitySequence::data(), X, Y, and Z.
|
virtual |
Definition at line 6 of file VertexSequence.cpp.
|
inlineprivate |
Definition at line 95 of file VertexSequence.hpp.
|
inlineprivate |
Definition at line 59 of file VertexSequence.hpp.
References moab::EntitySequence::data(), and moab::SequenceData::get_sequence_data().
|
inlineprivate |
Definition at line 64 of file VertexSequence.hpp.
References moab::EntitySequence::data(), and moab::SequenceData::get_sequence_data().
|
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 13 of file VertexSequence.cpp.
References moab::EntitySequence::data(), sizes, and moab::SequenceData::subset().
|
virtual |
Get memory characteristcs that are the same for all entities.
Get charactersitic constant memory use for all entities in sequence.
bytes_per_entity | The 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_sequence | The size of the leaf subclass of this class |
Implements moab::EntitySequence.
Definition at line 29 of file VertexSequence.cpp.
|
inline |
Definition at line 155 of file VertexSequence.hpp.
References get_coordinates_ref(), and moab::EntitySequence::start_handle().
|
inline |
Definition at line 146 of file VertexSequence.hpp.
References moab::EntitySequence::data(), MB_SUCCESS, moab::EntitySequence::start_handle(), moab::SequenceData::start_handle(), x_array(), y_array(), and z_array().
Referenced by moab::Core::get_coords(), and moab::WriteUtil::get_node_coords().
|
inline |
Definition at line 98 of file VertexSequence.hpp.
References moab::EntitySequence::data(), MB_SUCCESS, moab::SequenceData::start_handle(), x_array(), y_array(), and z_array().
Referenced by moab::Core::get_coords(), and moab::Core::print_database().
|
inline |
Definition at line 107 of file VertexSequence.hpp.
References moab::EntitySequence::data(), MB_SUCCESS, moab::SequenceData::start_handle(), X, x_array(), Y, y_array(), Z, and z_array().
|
inline |
Definition at line 116 of file VertexSequence.hpp.
References moab::EntitySequence::data(), MB_SUCCESS, moab::SequenceData::start_handle(), x_array(), y_array(), and z_array().
Referenced by get_coordinate_arrays().
Definition at line 19 of file VertexSequence.cpp.
References moab::EntitySequence::append_entities().
Referenced by moab::SequenceManager::create_vertex().
Definition at line 24 of file VertexSequence.cpp.
References moab::EntitySequence::prepend_entities().
Referenced by moab::SequenceManager::create_vertex().
|
inline |
|
inline |
Definition at line 128 of file VertexSequence.hpp.
References moab::EntitySequence::data(), MB_SUCCESS, moab::SequenceData::start_handle(), x_array(), y_array(), and z_array().
Referenced by moab::SequenceManager::create_vertex().
|
virtual |
Split this sequence into two consecutive sequences.
Split this sequence into two sequences.
here | New sequences should be [start_handle(),here) & [here,end_handle()] |
Implements moab::EntitySequence.
Definition at line 8 of file VertexSequence.cpp.
References VertexSequence().
|
inlineprivate |
Definition at line 69 of file VertexSequence.hpp.
Referenced by get_coordinate_arrays(), get_coordinates(), get_coordinates_ref(), and set_coordinates().
|
inlineprivate |
|
inlineprivate |
Definition at line 73 of file VertexSequence.hpp.
Referenced by get_coordinate_arrays(), get_coordinates(), get_coordinates_ref(), and set_coordinates().
|
inlineprivate |
|
inlineprivate |
Definition at line 77 of file VertexSequence.hpp.
Referenced by get_coordinate_arrays(), get_coordinates(), get_coordinates_ref(), and set_coordinates().
|
inlineprivate |