libMesh
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 >:
[legend]

Public Member Functions

 elem_type (ElemType t)
 
virtual ~elem_type ()=default
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual std::unique_ptr< 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 309 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 311 of file single_predicates.h.

311 : _elem_type(t) {}

◆ ~elem_type()

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

Member Function Documentation

◆ clone()

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

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

Definition at line 317 of file single_predicates.h.

317 { return std::make_unique<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 314 of file single_predicates.h.

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

314 { 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: