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

#include <single_predicates.h>

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

Public Member Functions

 pid (const processor_id_type p)
 
virtual ~pid ()
 
virtual bool operator() (const T &it) const
 

Protected Member Functions

virtual predicate< T > * clone () const
 

Protected Attributes

const processor_id_type _pid
 

Detailed Description

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

Definition at line 158 of file single_predicates.h.

Constructor & Destructor Documentation

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

Definition at line 161 of file single_predicates.h.

161 : _pid(p) {}
template<typename T>
virtual libMesh::Predicates::pid< T >::~pid ( )
inlinevirtual

Definition at line 162 of file single_predicates.h.

162 {}

Member Function Documentation

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

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

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

Definition at line 168 of file single_predicates.h.

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

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

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

Definition at line 165 of file single_predicates.h.

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

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

165 { return (*it)->processor_id() == _pid; }

Member Data Documentation

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

Definition at line 169 of file single_predicates.h.

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


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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:58:02 UTC

Hosted By:
SourceForge.net Logo