MOAB: Mesh Oriented datABase  (version 5.4.1)
smoab::CellSet Class Reference

#include <CellSets.h>

+ Inheritance diagram for smoab::CellSet:
+ Collaboration diagram for smoab::CellSet:

Public Member Functions

 CellSet (smoab::EntityHandle p, const smoab::Range &cells)
const smoab::Rangecells () const
EntityHandle entity () const
bool contains (smoab::EntityHandle c) const
void erase (smoab::Range cells)

Private Attributes

smoab::EntityHandle Entity
smoab::Range Cells

Detailed Description

Definition at line 9 of file CellSets.h.


Constructor & Destructor Documentation

smoab::CellSet::CellSet ( smoab::EntityHandle  p,
const smoab::Range cells 
) [inline]

Definition at line 12 of file CellSets.h.

: Entity( p ), Cells( cells ) {}

Member Function Documentation

const smoab::Range& smoab::CellSet::cells ( ) const [inline]

Definition at line 14 of file CellSets.h.

References Cells.

    {
        return this->Cells;
    }
bool smoab::CellSet::contains ( smoab::EntityHandle  c) const [inline]

Definition at line 23 of file CellSets.h.

References Cells, moab::Range::end(), and moab::Range::find().

    {
        return this->Cells.find( c ) != this->Cells.end();
    }

Definition at line 18 of file CellSets.h.

References Entity.

    {
        return this->Entity;
    }
void smoab::CellSet::erase ( smoab::Range  cells) [inline]

Definition at line 28 of file CellSets.h.

References Cells, and moab::subtract().

    {
        //seems that erase() has a bug, so use subtract
        this->Cells = smoab::subtract( this->Cells, cells );
    }

Member Data Documentation

Definition at line 36 of file CellSets.h.

Referenced by cells(), contains(), and erase().

Definition at line 35 of file CellSets.h.

Referenced by entity().

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