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

#include <single_predicates.h>

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

Public Member Functions

 subdomain (subdomain_id_type sid)
 
virtual ~subdomain ()=default
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual std::unique_ptr< predicate< T > > clone () const override
 

Protected Attributes

const subdomain_id_type _subdomain
 

Detailed Description

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

Returns
true if the pointer's subdomain_id() matches a given id.

Definition at line 427 of file single_predicates.h.

Constructor & Destructor Documentation

◆ subdomain()

template<typename T >
libMesh::Predicates::subdomain< T >::subdomain ( subdomain_id_type  sid)
inline

Definition at line 429 of file single_predicates.h.

429 : _subdomain(sid) {}
const subdomain_id_type _subdomain

◆ ~subdomain()

template<typename T >
virtual libMesh::Predicates::subdomain< T >::~subdomain ( )
virtualdefault

Member Function Documentation

◆ clone()

template<typename T >
virtual std::unique_ptr<predicate<T> > libMesh::Predicates::subdomain< T >::clone ( ) const
inlineoverrideprotectedvirtual

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

Definition at line 436 of file single_predicates.h.

436 { return std::make_unique<subdomain<T>>(*this); }

◆ operator()()

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

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

Definition at line 433 of file single_predicates.h.

References libMesh::Predicates::subdomain< T >::_subdomain.

433 { return (*it)->subdomain_id() == _subdomain; }
const subdomain_id_type _subdomain

Member Data Documentation

◆ _subdomain

template<typename T >
const subdomain_id_type libMesh::Predicates::subdomain< T >::_subdomain
protected

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