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 override
 

Protected Member Functions

virtual predicate< T > * clone () const override
 

Protected Attributes

const ElemType _elem_type
 

Detailed Description

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

Returns
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 318 of file single_predicates.h.

Constructor & Destructor Documentation

◆ elem_type()

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

Definition at line 320 of file single_predicates.h.

320 : _elem_type(t) {}

◆ ~elem_type()

template<typename T>
virtual libMesh::Predicates::elem_type< T >::~elem_type ( )
inlinevirtual

Definition at line 321 of file single_predicates.h.

321 {}

Member Function Documentation

◆ clone()

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

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

Definition at line 326 of file single_predicates.h.

326 { return new elem_type<T>(*this); }

◆ operator()()

template<typename T>
virtual bool libMesh::Predicates::elem_type< T >::operator() ( const T &  it) const
inlineoverridevirtual

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

Definition at line 323 of file single_predicates.h.

References libMesh::Predicates::elem_type< T >::_elem_type.

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

Member Data Documentation

◆ _elem_type

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

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