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

#include <multi_predicates.h>

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

List of all members.

Public Member Functions

 Local ()
virtual bool operator() (const T &it) const

Protected Member Functions

void deep_copy (const abstract_multi_predicate &rhs)

Protected Attributes

std::vector< predicate< T > * > _predicates

Detailed Description

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

Definition at line 234 of file multi_predicates.h.


Constructor & Destructor Documentation

template<typename T>
libMesh::Predicates::Local< T >::Local (  )  [inline]

Definition at line 237 of file multi_predicates.h.

References libMesh::Predicates::abstract_multi_predicate< T >::_predicates, and libMesh::processor_id().

00238     {
00239       this->_predicates.push_back(new not_null<T>);
00240       this->_predicates.push_back(new pid<T>(libMesh::processor_id()));
00241     }


Member Function Documentation

template<typename T >
void libMesh::Predicates::abstract_multi_predicate< T >::deep_copy ( const abstract_multi_predicate< T > &  rhs  )  [inline, protected, inherited]

Definition at line 100 of file multi_predicates.h.

References libMesh::Predicates::abstract_multi_predicate< T >::_predicates.

Referenced by libMesh::Predicates::abstract_multi_predicate< T >::abstract_multi_predicate(), and libMesh::Predicates::abstract_multi_predicate< T >::operator=().

00101     {
00102       for (unsigned int i=0; i<rhs._predicates.size(); ++i)
00103         _predicates.push_back(rhs._predicates[i]->clone());
00104     }

template<typename T >
virtual bool libMesh::Predicates::abstract_multi_predicate< T >::operator() ( const T &  it  )  const [inline, virtual, inherited]

Definition at line 72 of file multi_predicates.h.

References libMesh::Predicates::abstract_multi_predicate< T >::_predicates, and pred.

00073     {
00074       for (unsigned int i=0; i<_predicates.size(); ++i)
00075         {
00076           const predicate<T>* pred = _predicates[i];
00077 
00078           libmesh_assert (pred);
00079 
00080           if ( ! (*pred)(it) )
00081             return false;
00082         }
00083 
00084       return true;
00085     }


Member Data Documentation

template<typename T >
std::vector<predicate<T>*> libMesh::Predicates::abstract_multi_predicate< T >::_predicates [protected, inherited]

Definition at line 107 of file multi_predicates.h.

Referenced by libMesh::Predicates::Active< T >::Active(), libMesh::Predicates::ActiveLocal< T >::ActiveLocal(), libMesh::Predicates::ActiveLocalSubdomain< T >::ActiveLocalSubdomain(), libMesh::Predicates::ActiveNotLocal< T >::ActiveNotLocal(), libMesh::Predicates::ActiveOnBoundary< T >::ActiveOnBoundary(), libMesh::Predicates::ActivePID< T >::ActivePID(), libMesh::Predicates::ActiveSubdomain< T >::ActiveSubdomain(), libMesh::Predicates::ActiveType< T >::ActiveType(), libMesh::Predicates::Ancestor< T >::Ancestor(), libMesh::Predicates::BoundarySide< T >::BoundarySide(), libMesh::Predicates::abstract_multi_predicate< T >::deep_copy(), libMesh::Predicates::IsNull< T >::IsNull(), libMesh::Predicates::Level< T >::Level(), libMesh::Predicates::Local< T >::Local(), libMesh::Predicates::LocalLevel< T >::LocalLevel(), libMesh::Predicates::LocalNotLevel< T >::LocalNotLevel(), libMesh::Predicates::NotActive< T >::NotActive(), libMesh::Predicates::NotAncestor< T >::NotAncestor(), libMesh::Predicates::NotLevel< T >::NotLevel(), libMesh::Predicates::NotLocal< T >::NotLocal(), libMesh::Predicates::NotNull< T >::NotNull(), libMesh::Predicates::NotPID< T >::NotPID(), libMesh::Predicates::NotSubActive< T >::NotSubActive(), libMesh::Predicates::abstract_multi_predicate< T >::operator()(), libMesh::Predicates::abstract_multi_predicate< T >::operator=(), libMesh::Predicates::PID< T >::PID(), libMesh::Predicates::SubActive< T >::SubActive(), libMesh::Predicates::Type< T >::Type(), and libMesh::Predicates::abstract_multi_predicate< T >::~abstract_multi_predicate().


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

Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:46 UTC

Hosted By:
SourceForge.net Logo