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 ()
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual 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 436 of file single_predicates.h.

Constructor & Destructor Documentation

◆ subdomain()

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

Definition at line 438 of file single_predicates.h.

438 : _subdomain(sid) {}
const subdomain_id_type _subdomain

◆ ~subdomain()

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

Definition at line 439 of file single_predicates.h.

439 {}

Member Function Documentation

◆ clone()

template<typename T>
virtual predicate<T>* libMesh::Predicates::subdomain< T >::clone ( ) const
overrideprotectedvirtual

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

Definition at line 445 of file single_predicates.h.

445 { return new subdomain<T>(*this); }

◆ operator()()

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

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

Definition at line 442 of file single_predicates.h.

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

442 { 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: