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

#include <single_predicates.h>

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

Public Member Functions

 level (unsigned int l)
 
virtual ~level ()
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual predicate< T > * clone () const override
 

Protected Attributes

const unsigned int _level
 

Detailed Description

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

Returns
true if the pointer's level matches the given level.

Definition at line 361 of file single_predicates.h.

Constructor & Destructor Documentation

◆ level()

template<typename T>
libMesh::Predicates::level< T >::level ( unsigned int  l)
inline

Definition at line 363 of file single_predicates.h.

363 : _level(l) {}

◆ ~level()

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

Definition at line 364 of file single_predicates.h.

364 {}

Member Function Documentation

◆ clone()

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

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

Reimplemented in libMesh::Predicates::not_level< T >.

Definition at line 369 of file single_predicates.h.

369 { return new level<T>(*this); }

◆ operator()()

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

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

Reimplemented in libMesh::Predicates::not_level< T >.

Definition at line 366 of file single_predicates.h.

References libMesh::Predicates::level< T >::_level.

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

366 { return (*it)->level() == _level; }

Member Data Documentation

◆ _level

template<typename T>
const unsigned int libMesh::Predicates::level< T >::_level
protected

Definition at line 370 of file single_predicates.h.

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


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