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

#include <single_predicates.h>

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

Public Member Functions

 subdomain_set (std::set< subdomain_id_type > sset)
 
virtual ~subdomain_set ()
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual predicate< T > * clone () const override
 

Protected Attributes

const std::set< subdomain_id_type_subdomain_set
 

Detailed Description

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

Returns
true if the pointer's subdomain_id() is in the provided std::set<subdomain_id_type>.

Definition at line 455 of file single_predicates.h.

Constructor & Destructor Documentation

◆ subdomain_set()

template<typename T>
libMesh::Predicates::subdomain_set< T >::subdomain_set ( std::set< subdomain_id_type sset)
inline

Definition at line 457 of file single_predicates.h.

457 : _subdomain_set(sset) {}
const std::set< subdomain_id_type > _subdomain_set

◆ ~subdomain_set()

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

Definition at line 458 of file single_predicates.h.

458 {}

Member Function Documentation

◆ clone()

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

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

Definition at line 464 of file single_predicates.h.

464 { return new subdomain_set<T>(*this); }

◆ operator()()

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

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

Definition at line 461 of file single_predicates.h.

References libMesh::Predicates::subdomain_set< T >::_subdomain_set.

461 { return _subdomain_set.count((*it)->subdomain_id()); }
const std::set< subdomain_id_type > _subdomain_set

Member Data Documentation

◆ _subdomain_set

template<typename T>
const std::set<subdomain_id_type> libMesh::Predicates::subdomain_set< T >::_subdomain_set
protected

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