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

#include <single_predicates.h>

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

Public Member Functions

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

Protected Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 354 of file single_predicates.h.

354 : _level(l) {}
template<typename T>
virtual libMesh::Predicates::level< T >::~level ( )
virtual

Definition at line 355 of file single_predicates.h.

355 {}

Member Function Documentation

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

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

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

Definition at line 360 of file single_predicates.h.

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

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

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

Definition at line 357 of file single_predicates.h.

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

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

Member Data Documentation

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

Definition at line 361 of file single_predicates.h.


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