$extrastylesheet
libMesh::Predicates::facelocal_pid< T > Struct Template Reference

#include <single_predicates.h>

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

List of all members.

Public Member Functions

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

Protected Member Functions

virtual predicate< T > * clone () const

Protected Attributes

const processor_id_type _pid

Friends

struct abstract_multi_predicate< T >

Detailed Description

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

Definition at line 198 of file single_predicates.h.


Constructor & Destructor Documentation

template<typename T>
libMesh::Predicates::facelocal_pid< T >::facelocal_pid ( const processor_id_type  p) [inline]

Definition at line 201 of file single_predicates.h.

: _pid(p) {}
template<typename T>
virtual libMesh::Predicates::facelocal_pid< T >::~facelocal_pid ( ) [inline, virtual]

Definition at line 202 of file single_predicates.h.

{}

Member Function Documentation

template<typename T>
virtual predicate<T>* libMesh::Predicates::facelocal_pid< T >::clone ( ) const [inline, protected, virtual]

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

Definition at line 216 of file single_predicates.h.

{ return new facelocal_pid<T>(*this); }
template<typename T>
virtual bool libMesh::Predicates::facelocal_pid< T >::operator() ( const T &  it) const [inline, virtual]

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

Definition at line 205 of file single_predicates.h.

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

                                             {
    if ((*it)->processor_id() == _pid)
      return true;
    for (unsigned int n = 0; n != (*it)->n_neighbors(); ++n)
      if ((*it)->neighbor(n) &&
          (*it)->neighbor(n)->processor_id() == _pid)
        return true;
    return false;
  }

Friends And Related Function Documentation

template<typename T>
friend struct abstract_multi_predicate< T > [friend, inherited]

Definition at line 60 of file single_predicates.h.


Member Data Documentation

template<typename T>
const processor_id_type libMesh::Predicates::facelocal_pid< T >::_pid [protected]

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