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

#include <single_predicates.h>

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

Public Member Functions

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

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

Definition at line 292 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 294 of file single_predicates.h.

294 : pid<T>(p) {}

Member Function Documentation

◆ clone()

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

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

Definition at line 299 of file single_predicates.h.

299 { return std::make_unique<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 296 of file single_predicates.h.

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

296 { 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 190 of file single_predicates.h.

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


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