Mesh Oriented datABase  (version 5.5.0)
An array-based unstructured mesh library
moab::type_not_equals Class Reference

predicate for STL algorithms. Returns true if the entity handle is not of the specified type. For example, to remove all but the tris out of a list of 2D entities retrieved using get_adjacencies you could do std::remove_if(list.begin(), list.end(), type_not_equals(gMB, MBTRI)); More...

#include <Interface.hpp>

+ Collaboration diagram for moab::type_not_equals:

Public Member Functions

 type_not_equals (Interface *mdb, const EntityType type)
 Constructor. More...
 
bool operator() (EntityHandle handle) const
 operator predicate More...
 

Public Attributes

InterfacemeshDB
 interface object More...
 
const EntityType test_type
 type corresponding to this predicate More...
 

Private Types

typedef EntityHandle argument_type
 
typedef bool result_type
 

Detailed Description

predicate for STL algorithms. Returns true if the entity handle is not of the specified type. For example, to remove all but the tris out of a list of 2D entities retrieved using get_adjacencies you could do std::remove_if(list.begin(), list.end(), type_not_equals(gMB, MBTRI));

Definition at line 2029 of file Interface.hpp.

Member Typedef Documentation

◆ argument_type

Definition at line 2032 of file Interface.hpp.

◆ result_type

typedef bool moab::type_not_equals::result_type
private

Definition at line 2033 of file Interface.hpp.

Constructor & Destructor Documentation

◆ type_not_equals()

moab::type_not_equals::type_not_equals ( Interface mdb,
const EntityType  type 
)
inline

Constructor.

Definition at line 2043 of file Interface.hpp.

2043 : meshDB( mdb ), test_type( type ) {}

Member Function Documentation

◆ operator()()

bool moab::type_not_equals::operator() ( EntityHandle  handle) const
inline

operator predicate

Definition at line 2046 of file Interface.hpp.

2047  {
2048  return ( meshDB->type_from_handle( handle ) != test_type );
2049  }

References moab::Interface::type_from_handle().

Member Data Documentation

◆ meshDB

Interface* moab::type_not_equals::meshDB

interface object

Definition at line 2037 of file Interface.hpp.

◆ test_type

const EntityType moab::type_not_equals::test_type

type corresponding to this predicate

Definition at line 2040 of file Interface.hpp.


The documentation for this class was generated from the following file: