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

Used to iterate over non-NULL elements on the boundary with a given ID. More...

#include <multi_predicates.h>

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

Public Member Functions

 BID (boundary_id_type bndry_id, const BoundaryInfo &bndry_info)
 
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::BID< T >

Used to iterate over non-NULL elements on the boundary with a given ID.

Definition at line 487 of file multi_predicates.h.

Constructor & Destructor Documentation

template<typename T >
libMesh::Predicates::BID< T >::BID ( boundary_id_type  bndry_id,
const BoundaryInfo bndry_info 
)

Definition at line 489 of file multi_predicates.h.

490  {
491  this->_predicates.push_back(new not_null<T>);
492  this->_predicates.push_back(new bid<T>(bndry_id, bndry_info));
493  }
std::vector< predicate< T > * > _predicates

Member Function Documentation

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

Definition at line 107 of file multi_predicates.h.

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

108  {
109  for (std::size_t i=0; i<rhs._predicates.size(); ++i)
110  _predicates.push_back(rhs._predicates[i]->clone());
111  }
std::vector< predicate< T > * > _predicates
template<typename T >
virtual bool libMesh::Predicates::abstract_multi_predicate< T >::operator() ( const T &  it) const
virtualinherited

Definition at line 79 of file multi_predicates.h.

References libMesh::libmesh_assert(), and pred.

80  {
81  for (std::size_t i=0; i<_predicates.size(); ++i)
82  {
83  const predicate<T> * pred = _predicates[i];
84 
85  libmesh_assert (pred);
86 
87  if (!(*pred)(it))
88  return false;
89  }
90 
91  return true;
92  }
libmesh_assert(j)
std::vector< predicate< T > * > _predicates
PredBase * pred
The predicate object.

Member Data Documentation

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

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