libMesh
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 >:
[legend]

Public Member Functions

 semilocal_pid (processor_id_type p)
 
virtual ~semilocal_pid ()=default
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual std::unique_ptr< predicate< T > > clone () const override
 

Protected Attributes

const processor_id_type _pid
 

Detailed Description

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

Returns
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

◆ semilocal_pid()

template<typename T >
libMesh::Predicates::semilocal_pid< T >::semilocal_pid ( processor_id_type  p)
inline

Definition at line 247 of file single_predicates.h.

247 : _pid(p) {}

◆ ~semilocal_pid()

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

Member Function Documentation

◆ clone()

template<typename T >
virtual std::unique_ptr<predicate<T> > libMesh::Predicates::semilocal_pid< T >::clone ( ) const
inlineoverrideprotectedvirtual

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

Definition at line 254 of file single_predicates.h.

254 { return std::make_unique<semilocal_pid<T>>(*this); }

◆ operator()()

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

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

Definition at line 251 of file single_predicates.h.

References libMesh::Predicates::semilocal_pid< T >::_pid.

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

Member Data Documentation

◆ _pid

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

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