Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions

mitk::NodePredicateNot Class Reference
[Data Storage Classes]

Composite predicate that negates its child predicate Changed: NodePredicateNot now derives from NodePredicateCompositeBase though it really holds only one subpredicate at any time. But logically any Predicate that has one or more subpredicate is a CompositePredicate. More...

#include <mitkNodePredicateNot.h>

Inheritance diagram for mitk::NodePredicateNot:
Inheritance graph
[legend]
Collaboration diagram for mitk::NodePredicateNot:
Collaboration graph
[legend]

List of all members.

Public Types

typedef NodePredicateNot Self
typedef NodePredicateCompositeBase Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

Public Member Functions

virtual const char * GetClassName () const
virtual ~NodePredicateNot ()
 Standard Destructor.
virtual void AddPredicate (const mitk::NodePredicateBase *p)
 Reimplemented, only one child predicate is allowed for the NOT predicate.
virtual bool CheckNode (const mitk::DataNode *node) const
 Checks, if the node does not fulfill the child predicate condition.

Static Public Member Functions

static Pointer New (const mitk::NodePredicateBase *_arg)

Protected Member Functions

 NodePredicateNot (const mitk::NodePredicateBase *p)
 Constructor.

Detailed Description

Composite predicate that negates its child predicate Changed: NodePredicateNot now derives from NodePredicateCompositeBase though it really holds only one subpredicate at any time. But logically any Predicate that has one or more subpredicate is a CompositePredicate.

Definition at line 33 of file mitkNodePredicateNot.h.


Member Typedef Documentation

typedef itk::SmartPointer<const Self> mitk::NodePredicateNot::ConstPointer

Reimplemented from mitk::NodePredicateCompositeBase.

Definition at line 36 of file mitkNodePredicateNot.h.

typedef itk::SmartPointer<Self> mitk::NodePredicateNot::Pointer

Reimplemented from mitk::NodePredicateCompositeBase.

Definition at line 36 of file mitkNodePredicateNot.h.

Reimplemented from mitk::NodePredicateCompositeBase.

Definition at line 36 of file mitkNodePredicateNot.h.

Reimplemented from mitk::NodePredicateCompositeBase.

Definition at line 36 of file mitkNodePredicateNot.h.


Constructor & Destructor Documentation

mitk::NodePredicateNot::~NodePredicateNot (  ) [virtual]

Standard Destructor.

Definition at line 26 of file mitkNodePredicateNot.cpp.

{
}
mitk::NodePredicateNot::NodePredicateNot ( const mitk::NodePredicateBase p ) [protected]

Constructor.

Definition at line 21 of file mitkNodePredicateNot.cpp.

References mitk::NodePredicateCompositeBase::m_ChildPredicates.

{
  m_ChildPredicates.push_back(p);
}

Member Function Documentation

void mitk::NodePredicateNot::AddPredicate ( const mitk::NodePredicateBase p ) [virtual]

Reimplemented, only one child predicate is allowed for the NOT predicate.

Reimplemented from mitk::NodePredicateCompositeBase.

Definition at line 40 of file mitkNodePredicateNot.cpp.

References mitk::NodePredicateCompositeBase::AddPredicate().

bool mitk::NodePredicateNot::CheckNode ( const mitk::DataNode node ) const [virtual]

Checks, if the node does not fulfill the child predicate condition.

Implements mitk::NodePredicateBase.

Definition at line 30 of file mitkNodePredicateNot.cpp.

{
  if (node == NULL)
    throw std::invalid_argument("NodePredicateNot: invalid node");


  // return the negation of the child predicate
  return !m_ChildPredicates.front()->CheckNode(node);
}
virtual const char* mitk::NodePredicateNot::GetClassName (  ) const [virtual]

Reimplemented from mitk::NodePredicateCompositeBase.

static Pointer mitk::NodePredicateNot::New ( const mitk::NodePredicateBase _arg ) [inline, static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines