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

#include <multi_predicates.h>

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

Public Member Functions

 ActiveType (const ElemType type)
 
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::ActiveType< T >

Definition at line 289 of file multi_predicates.h.

Constructor & Destructor Documentation

template<typename T>
libMesh::Predicates::ActiveType< T >::ActiveType ( const ElemType  type)
inline

Definition at line 291 of file multi_predicates.h.

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

292  {
293  this->_predicates.push_back(new not_null<T>);
294  this->_predicates.push_back(new active<T>);
295  this->_predicates.push_back(new elem_type<T>(type));
296  }

Member Function Documentation

template<typename T >
void libMesh::Predicates::abstract_multi_predicate< T >::deep_copy ( const abstract_multi_predicate< T > &  rhs)
inlineprotectedinherited

Definition at line 99 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=().

100  {
101  for (unsigned int i=0; i<rhs._predicates.size(); ++i)
102  _predicates.push_back(rhs._predicates[i]->clone());
103  }
template<typename T >
virtual bool libMesh::Predicates::abstract_multi_predicate< T >::operator() ( const T &  it) const
inlinevirtualinherited

Definition at line 71 of file multi_predicates.h.

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

72  {
73  for (unsigned int i=0; i<_predicates.size(); ++i)
74  {
75  const predicate<T>* pred = _predicates[i];
76 
77  libmesh_assert (pred);
78 
79  if ( ! (*pred)(it) )
80  return false;
81  }
82 
83  return true;
84  }

Member Data Documentation

template<typename T >
std::vector<predicate<T>*> libMesh::Predicates::abstract_multi_predicate< T >::_predicates
protectedinherited

Definition at line 106 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 07 2014 16:58:02 UTC

Hosted By:
SourceForge.net Logo