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

Used to iterate over NULL entries in a container. More...

#include <multi_predicates.h>

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

Public Member Functions

 IsNull ()
 
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::IsNull< T >

Used to iterate over NULL entries in a container.

Definition at line 123 of file multi_predicates.h.

Constructor & Destructor Documentation

template<typename T >
libMesh::Predicates::IsNull< T >::IsNull ( )

Definition at line 126 of file multi_predicates.h.

127  {
128  this->_predicates.push_back(new is_null<T>);
129  }
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: