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

#include <single_predicates.h>

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

Public Member Functions

 pid (processor_id_type p)
 
virtual ~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::pid< T >

Returns
true if the pointer's processor id matches a given processor id.

Definition at line 180 of file single_predicates.h.

Constructor & Destructor Documentation

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

Definition at line 182 of file single_predicates.h.

182 : _pid(p) {}
const processor_id_type _pid
template<typename T>
virtual libMesh::Predicates::pid< T >::~pid ( )
virtual

Definition at line 183 of file single_predicates.h.

183 {}

Member Function Documentation

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

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

Reimplemented in libMesh::Predicates::not_pid< T >.

Definition at line 189 of file single_predicates.h.

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

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

Reimplemented in libMesh::Predicates::not_pid< T >.

Definition at line 186 of file single_predicates.h.

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

186 { return (*it)->processor_id() == _pid; }
const processor_id_type _pid

Member Data Documentation

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

Definition at line 190 of file single_predicates.h.


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