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

#include <single_predicates.h>

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

Public Member Functions

 semilocal_pid (processor_id_type p)
virtual ~semilocal_pid ()
virtual bool operator() (const T &it) const libmesh_override

Protected Member Functions

virtual predicate< T > * clone () const libmesh_override

Protected Attributes

const processor_id_type _pid

Detailed Description

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

true if the element pointed to is semilocal to (has nodes shared with an element of) a given processor id.

Definition at line 245 of file single_predicates.h.

Constructor & Destructor Documentation

Definition at line 247 of file single_predicates.h.

247 : _pid(p) {}
template<typename T>
virtual libMesh::Predicates::semilocal_pid< T >::~semilocal_pid ( )

Definition at line 248 of file single_predicates.h.

248 {}

Member Function Documentation

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

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

Definition at line 254 of file single_predicates.h.

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

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

Definition at line 251 of file single_predicates.h.

251 { return (*it)->is_semilocal(_pid); }

Member Data Documentation

template<typename T>
const processor_id_type libMesh::Predicates::semilocal_pid< T >::_pid

Definition at line 255 of file single_predicates.h.

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