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

#include <single_predicates.h>

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

Public Member Functions

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

Protected Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 448 of file single_predicates.h.

448 : _subdomain_set(sset) {}
const std::set< subdomain_id_type > _subdomain_set
template<typename T>
virtual libMesh::Predicates::subdomain_set< T >::~subdomain_set ( )
virtual

Definition at line 449 of file single_predicates.h.

449 {}

Member Function Documentation

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

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

Definition at line 455 of file single_predicates.h.

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

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

Definition at line 452 of file single_predicates.h.

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

Member Data Documentation

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

Definition at line 456 of file single_predicates.h.


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