moab
moab::EntitySourceRecord Class Reference

#include <SplitVertices.hpp>

List of all members.

Public Member Functions

 EntitySourceRecord ()
 EntitySourceRecord (int nc, EntityHandle ent, const ProcessSet &procs)
 EntitySourceRecord (const EntitySourceRecord &src)
EntitySourceRecordoperator= (const EntitySourceRecord &src)
void set_common_processes (const ProcessSet &procs)
ProcessSetcommon_processes ()
const ProcessSetcommon_processes () const
bool operator< (const EntitySourceRecord &other) const

Public Attributes

std::vector< int > ids
ProcessSet process_set
EntityHandle handle

Detailed Description

Definition at line 83 of file SplitVertices.hpp.


Constructor & Destructor Documentation

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; }

Definition at line 89 of file SplitVertices.hpp.

    { this->handle = src.handle; this->process_set = src.process_set; this->ids = src.ids; }

Member Function Documentation

Definition at line 96 of file SplitVertices.hpp.

    { return this->process_set; }

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; }

Definition at line 94 of file SplitVertices.hpp.

    { this->process_set = procs; }

Member Data Documentation

Definition at line 115 of file SplitVertices.hpp.


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