MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include <Interface.hpp>
Public Member Functions | |
type_equals (Interface *mdb, const EntityType type) | |
Constructor. | |
bool | operator() (EntityHandle handle) const |
operator predicate | |
Public Attributes | |
Interface * | meshDB |
interface object | |
const EntityType | test_type |
type corresponding to this predicate | |
Private Types | |
typedef EntityHandle | argument_type |
typedef bool | result_type |
predicate for STL algorithms. Returns true if the entity handle is of the specified type. For example, to remove all the tris out of a list of 2D entities retrieved using get_adjacencies you could do std::remove_if(list.begin(), list.end(), type_equals(gMB, MBTRI));
Definition at line 2002 of file Interface.hpp.
typedef EntityHandle moab::type_equals::argument_type [private] |
Definition at line 2005 of file Interface.hpp.
typedef bool moab::type_equals::result_type [private] |
Definition at line 2006 of file Interface.hpp.
moab::type_equals::type_equals | ( | Interface * | mdb, |
const EntityType | type | ||
) | [inline] |
bool moab::type_equals::operator() | ( | EntityHandle | handle | ) | const [inline] |
operator predicate
Definition at line 2019 of file Interface.hpp.
{ return ( meshDB->type_from_handle( handle ) == test_type ); }
interface object
Definition at line 2010 of file Interface.hpp.
const EntityType moab::type_equals::test_type |
type corresponding to this predicate
Definition at line 2013 of file Interface.hpp.