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

#include <single_predicates.h>

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

Public Member Functions

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

Protected Member Functions

virtual predicate< T > * clone () const 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 339 of file single_predicates.h.

Constructor & Destructor Documentation

◆ flagged()

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

Definition at line 341 of file single_predicates.h.

341 : _rflag(rflag) {}

◆ ~flagged()

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

Definition at line 342 of file single_predicates.h.

342 {}

Member Function Documentation

◆ clone()

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

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

Definition at line 347 of file single_predicates.h.

347 { return new flagged<T>(*this); }

◆ operator()()

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

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

Definition at line 344 of file single_predicates.h.

References libMesh::Predicates::flagged< T >::_rflag.

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

Member Data Documentation

◆ _rflag

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

Definition at line 348 of file single_predicates.h.

Referenced by libMesh::Predicates::flagged< T >::operator()().


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