MOAB: Mesh Oriented datABase  (version 5.4.1)
moab::EntitySourceRecord Class Reference

#include <SplitVertices.hpp>

+ Collaboration diagram for moab::EntitySourceRecord:

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 104 of file SplitVertices.hpp.


Constructor & Destructor Documentation

Definition at line 107 of file SplitVertices.hpp.

{}
moab::EntitySourceRecord::EntitySourceRecord ( int  nc,
EntityHandle  ent,
const ProcessSet procs 
) [inline]

Definition at line 108 of file SplitVertices.hpp.

References handle, ids, and process_set.

    {
        this->ids.resize( nc );
        this->handle      = ent;
        this->process_set = procs;
    }

Definition at line 114 of file SplitVertices.hpp.

References handle, ids, and process_set.

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

Member Function Documentation

Definition at line 132 of file SplitVertices.hpp.

References process_set.

    {
        return this->process_set;
    }

Definition at line 136 of file SplitVertices.hpp.

References process_set.

    {
        return this->process_set;
    }
bool moab::EntitySourceRecord::operator< ( const EntitySourceRecord other) const [inline]

Definition at line 141 of file SplitVertices.hpp.

References ids.

    {
        // 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 120 of file SplitVertices.hpp.

References handle, ids, and process_set.

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

Definition at line 128 of file SplitVertices.hpp.

References process_set.

    {
        this->process_set = procs;
    }

Member Data Documentation

std::vector< int > moab::EntitySourceRecord::ids

Definition at line 156 of file SplitVertices.hpp.

Referenced by EntitySourceRecord(), operator<(), and operator=().

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