Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
libMesh::Predicates::elem_type< T > Struct Template Reference

#include <single_predicates.h>

Inheritance diagram for libMesh::Predicates::elem_type< T >:

Public Member Functions

 elem_type (ElemType t)
virtual ~elem_type ()
virtual bool operator() (const T &it) const libmesh_override

Protected Member Functions

virtual predicate< T > * clone () const libmesh_override

Protected Attributes

const ElemType _elem_type

Detailed Description

template<typename T>
struct libMesh::Predicates::elem_type< T >

true if the pointer's type matches the given type. Of course, this one can only be instantiated for objects which return Elem pointers when dereferenced.

Definition at line 309 of file single_predicates.h.

Constructor & Destructor Documentation

template<typename T>
libMesh::Predicates::elem_type< T >::elem_type ( ElemType  t)

Definition at line 311 of file single_predicates.h.

311 : _elem_type(t) {}
template<typename T>
virtual libMesh::Predicates::elem_type< T >::~elem_type ( )

Definition at line 312 of file single_predicates.h.

312 {}

Member Function Documentation

template<typename T>
virtual predicate<T>* libMesh::Predicates::elem_type< T >::clone ( ) const

Implements libMesh::Predicates::predicate< T >.

Definition at line 317 of file single_predicates.h.

317 { return new elem_type<T>(*this); }
template<typename T>
virtual bool libMesh::Predicates::elem_type< T >::operator() ( const T &  it) const

Implements libMesh::Predicates::predicate< T >.

Definition at line 314 of file single_predicates.h.

314 { return (*it)->type() == _elem_type; }

Member Data Documentation

template<typename T>
const ElemType libMesh::Predicates::elem_type< T >::_elem_type

Definition at line 318 of file single_predicates.h.

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