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 libmesh_override
 

Protected Member Functions

virtual predicate< T > * clone () const libmesh_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

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

Definition at line 429 of file single_predicates.h.

429 : _subdomain(sid) {}
const subdomain_id_type _subdomain
template<typename T>
virtual libMesh::Predicates::subdomain< T >::~subdomain ( )
virtual

Definition at line 430 of file single_predicates.h.

430 {}

Member Function Documentation

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

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

Definition at line 436 of file single_predicates.h.

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

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

Definition at line 433 of file single_predicates.h.

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

Member Data Documentation

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

Definition at line 437 of file single_predicates.h.


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