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

#include <single_predicates.h>

Inheritance diagram for libMesh::Predicates::flagged< T >:
[legend]

Public Member Functions

 flagged (unsigned char rflag)
 
virtual ~flagged ()
 
virtual bool operator() (const T &it) const libmesh_override
 

Protected Member Functions

virtual predicate< T > * clone () const libmesh_override
 

Protected Attributes

const unsigned char _rflag
 

Detailed Description

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

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

Definition at line 330 of file single_predicates.h.

Constructor & Destructor Documentation

template<typename T>
libMesh::Predicates::flagged< T >::flagged ( unsigned char  rflag)

Definition at line 332 of file single_predicates.h.

332 : _rflag(rflag) {}
template<typename T>
virtual libMesh::Predicates::flagged< T >::~flagged ( )
virtual

Definition at line 333 of file single_predicates.h.

333 {}

Member Function Documentation

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

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

Definition at line 338 of file single_predicates.h.

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

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

Definition at line 335 of file single_predicates.h.

335 { return (*it)->refinement_flag() == _rflag; }

Member Data Documentation

template<typename T>
const unsigned char libMesh::Predicates::flagged< T >::_rflag
protected

Definition at line 339 of file single_predicates.h.


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