Poster of Linux kernelThe best gift for a Linux geek
Predicates::LocalNotLevel

Predicates::LocalNotLevel

Section: C Library Functions (3) Updated: Thu Apr 7 2011
Local index Up
 

NAME

Predicates::LocalNotLevel -  

SYNOPSIS


#include <multi_predicates.h>

Inherits Predicates::abstract_multi_predicate< T >.  

Public Member Functions


LocalNotLevel (const unsigned int l)

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 Predicates::LocalNotLevel< T >

Definition at line 402 of file multi_predicates.h.  

Constructor & Destructor Documentation

 

template<typename T> Predicates::LocalNotLevel< T >::LocalNotLevel (const unsigned intl) [inline]

Definition at line 404 of file multi_predicates.h.

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

    {
      this->_predicates.push_back(new not_null<T>);
      this->_predicates.push_back(new pid<T>(libMesh::processor_id()));
      this->_predicates.push_back(new not_level<T>(l));
    }
 

Member Function Documentation

 

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

Definition at line 96 of file multi_predicates.h.

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

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

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

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

Definition at line 68 of file multi_predicates.h.

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

    {
      for (unsigned int i=0; i<_predicates.size(); ++i)
        {
          const predicate<T>* pred = _predicates[i];

          libmesh_assert (pred != NULL);
          
          if ( ! (*pred)(it) )
            return false;
        }
      
      return true;
    }
 

Member Data Documentation

 

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

Definition at line 103 of file multi_predicates.h.

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

 

Author

Generated automatically by Doxygen for libMesh from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Protected Member Functions
Protected Attributes
Detailed Description
template<typename T> struct Predicates::LocalNotLevel< T >
Constructor & Destructor Documentation
template<typename T> Predicates::LocalNotLevel< T >::LocalNotLevel (const unsigned intl) [inline]
Member Function Documentation
template<typename T > void Predicates::abstract_multi_predicate< T >::deep_copy (const abstract_multi_predicate< T > &rhs) [inline, protected, inherited]
template<typename T > virtual bool Predicates::abstract_multi_predicate< T >::operator() (const T &it) const [inline, virtual, inherited]
Member Data Documentation
template<typename T > std::vector<predicate<T>*> Predicates::abstract_multi_predicate< T >::_predicates [protected, inherited]
Author

This document was created by man2html, using the manual pages.
Time: 21:52:58 GMT, April 16, 2011