libMesh::Predicates::evaluable< T > Struct Template Reference

#include <single_predicates.h>

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

Public Member Functions

 evaluable (const DofMap &dof_map, unsigned int var_num)
 
virtual ~evaluable ()
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual predicate< T > * clone () const override
 

Protected Attributes

const DofMap_dof_map
 
unsigned int _var_num
 

Detailed Description

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

Returns
true if the pointer (which must be a local element) has degrees of freedom which can be evaluated for the specified DofMap and variable.

Definition at line 475 of file single_predicates.h.

Constructor & Destructor Documentation

◆ evaluable()

template<typename T>
libMesh::Predicates::evaluable< T >::evaluable ( const DofMap dof_map,
unsigned int  var_num 
)
inline

Definition at line 477 of file single_predicates.h.

478  :
479  _dof_map(dof_map), _var_num(var_num) {}

◆ ~evaluable()

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

Definition at line 480 of file single_predicates.h.

480 {}

Member Function Documentation

◆ clone()

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

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

Definition at line 486 of file single_predicates.h.

486 { return new evaluable<T>(*this); }

◆ operator()()

template<typename T >
bool libMesh::Predicates::evaluable< T >::operator() ( const T &  it) const
overridevirtual

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

Definition at line 50 of file single_predicates.C.

51 {
52  return _dof_map.is_evaluable(**it, _var_num);
53 }
bool is_evaluable(const DofObjectSubclass &obj, unsigned int var_num=libMesh::invalid_uint) const
Definition: dof_map.C:2413

Member Data Documentation

◆ _dof_map

template<typename T>
const DofMap& libMesh::Predicates::evaluable< T >::_dof_map
protected

Definition at line 487 of file single_predicates.h.

◆ _var_num

template<typename T>
unsigned int libMesh::Predicates::evaluable< T >::_var_num
protected

Definition at line 488 of file single_predicates.h.


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