MOAB: Mesh Oriented datABase  (version 5.3.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 10 of file CellSets.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file CellSets.h.


Member Function Documentation

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

Definition at line 18 of file CellSets.h.

References Cells.

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

Definition at line 21 of file CellSets.h.

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

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

Definition at line 19 of file CellSets.h.

References Entity.

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

Definition at line 26 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 34 of file CellSets.h.

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

Definition at line 33 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