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 ()
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual 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 254 of file single_predicates.h.

Constructor & Destructor Documentation

◆ semilocal_pid()

Definition at line 256 of file single_predicates.h.

256 : _pid(p) {}

◆ ~semilocal_pid()

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

Definition at line 257 of file single_predicates.h.

257 {}

Member Function Documentation

◆ clone()

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

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

Definition at line 263 of file single_predicates.h.

263 { return new semilocal_pid<T>(*this); }

◆ operator()()

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

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

Definition at line 260 of file single_predicates.h.

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

260 { 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: