MOAB: Mesh Oriented datABase  (version 5.3.0)
moab::type_not_equals Class Reference

#include <Interface.hpp>

+ Collaboration diagram for moab::type_not_equals:

Public Member Functions

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

Public Attributes

InterfacemeshDB
 interface object
const EntityType test_type
 type corresponding to this predicate

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 1901 of file Interface.hpp.


Member Typedef Documentation

Definition at line 1904 of file Interface.hpp.

typedef bool moab::type_not_equals::result_type [private]

Definition at line 1905 of file Interface.hpp.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 1915 of file Interface.hpp.

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

Member Function Documentation

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

operator predicate

Definition at line 1918 of file Interface.hpp.

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

Member Data Documentation

interface object

Definition at line 1909 of file Interface.hpp.

type corresponding to this predicate

Definition at line 1912 of file Interface.hpp.

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