moab
|
#include <SplitVertices.hpp>
Public Member Functions | |
EntitySourceRecord () | |
EntitySourceRecord (int nc, EntityHandle ent, const ProcessSet &procs) | |
EntitySourceRecord (const EntitySourceRecord &src) | |
EntitySourceRecord & | operator= (const EntitySourceRecord &src) |
void | set_common_processes (const ProcessSet &procs) |
ProcessSet & | common_processes () |
const ProcessSet & | common_processes () const |
bool | operator< (const EntitySourceRecord &other) const |
Public Attributes | |
std::vector< int > | ids |
ProcessSet | process_set |
EntityHandle | handle |
Definition at line 83 of file SplitVertices.hpp.
moab::EntitySourceRecord::EntitySourceRecord | ( | ) | [inline] |
Definition at line 86 of file SplitVertices.hpp.
{ }
moab::EntitySourceRecord::EntitySourceRecord | ( | int | nc, |
EntityHandle | ent, | ||
const ProcessSet & | procs | ||
) | [inline] |
Definition at line 87 of file SplitVertices.hpp.
{ this->ids.resize( nc ); this->handle = ent; this->process_set = procs; }
moab::EntitySourceRecord::EntitySourceRecord | ( | const EntitySourceRecord & | src | ) | [inline] |
Definition at line 89 of file SplitVertices.hpp.
{ this->handle = src.handle; this->process_set = src.process_set; this->ids = src.ids; }
ProcessSet& moab::EntitySourceRecord::common_processes | ( | ) | [inline] |
Definition at line 96 of file SplitVertices.hpp.
{ return this->process_set; }
const ProcessSet& moab::EntitySourceRecord::common_processes | ( | ) | const [inline] |
Definition at line 98 of file SplitVertices.hpp.
{ return this->process_set; }
bool moab::EntitySourceRecord::operator< | ( | const EntitySourceRecord & | other | ) | const [inline] |
Definition at line 101 of file SplitVertices.hpp.
{ //assert( this->ids.size() == other.ids.size() ); std::vector<int>::size_type N = this->ids.size(); std::vector<int>::size_type i; // Ignore the process set. Only program errors lead to mismatched process sets with identical ids. for ( i = 0; i < N; ++ i ) if ( this->ids[i] < other.ids[i] ) return true; else if ( this->ids[i] > other.ids[i] ) return false; return false; }
EntitySourceRecord& moab::EntitySourceRecord::operator= | ( | const EntitySourceRecord & | src | ) | [inline] |
Definition at line 91 of file SplitVertices.hpp.
{ this->handle = src.handle; this->process_set = src.process_set; this->ids = src.ids; return *this; }
void moab::EntitySourceRecord::set_common_processes | ( | const ProcessSet & | procs | ) | [inline] |
Definition at line 94 of file SplitVertices.hpp.
{ this->process_set = procs; }
Definition at line 117 of file SplitVertices.hpp.
std::vector<int> moab::EntitySourceRecord::ids |
Definition at line 115 of file SplitVertices.hpp.
Definition at line 116 of file SplitVertices.hpp.