Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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 libmesh_override

Protected Member Functions

virtual predicate< T > * clone () const libmesh_override

Protected Attributes

const DofMap_dof_map
unsigned int _var_num

Detailed Description

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

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

Constructor & Destructor Documentation

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

Definition at line 468 of file single_predicates.h.

469  :
470  _dof_map(dof_map), _var_num(var_num) {}
template<typename T>
virtual libMesh::Predicates::evaluable< T >::~evaluable ( )

Definition at line 471 of file single_predicates.h.

References libMesh::Predicates::predicate< T >::operator()().

471 {}

Member Function Documentation

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

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

Definition at line 477 of file single_predicates.h.

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

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

Definition at line 50 of file single_predicates.C.

References libMesh::Predicates::INSTANTIATE_ELEM_PREDICATES(), and libMesh::Predicates::INSTANTIATE_NODAL_PREDICATES().

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:2357

Member Data Documentation

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

Definition at line 478 of file single_predicates.h.

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

Definition at line 479 of file single_predicates.h.

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