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

#include <single_predicates.h>

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

Public Member Functions

 not_pid (processor_id_type p)
 
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::not_pid< T >

Returns
true if the pointer's processor id does not match p.

Definition at line 301 of file single_predicates.h.

Constructor & Destructor Documentation

◆ not_pid()

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

Definition at line 303 of file single_predicates.h.

303 : pid<T>(p) {}

Member Function Documentation

◆ clone()

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

Reimplemented from libMesh::Predicates::pid< T >.

Definition at line 308 of file single_predicates.h.

308 { return new not_pid<T>(*this); }

◆ operator()()

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

Reimplemented from libMesh::Predicates::pid< T >.

Definition at line 305 of file single_predicates.h.

References libMesh::Predicates::pid< T >::operator()().

305 { return !pid<T>::operator()(it); }
virtual bool operator()(const T &it) const override

Member Data Documentation

◆ _pid

template<typename T>
const processor_id_type libMesh::Predicates::pid< T >::_pid
protectedinherited

Definition at line 199 of file single_predicates.h.

Referenced by libMesh::Predicates::pid< T >::operator()().


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