Public Types | Public Member Functions | Protected Attributes

mitk::NodePredicateCompositeBase Class Reference
[Data Storage Classes]

Base class for all predicates that can have child predicates (e.g. AND/OR) More...

#include <mitkNodePredicateCompositeBase.h>

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

List of all members.

Public Types

typedef NodePredicateCompositeBase Self
typedef NodePredicateBase Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer
typedef std::list
< NodePredicateBase::ConstPointer
ChildPredicates

Public Member Functions

virtual const char * GetClassName () const
virtual ~NodePredicateCompositeBase ()=0
 Pure virtual (but implemented) Destructor makes NodePredicateCompositeBase an abstract class.
virtual void AddPredicate (const NodePredicateBase *p)
 Adds a child predicate.
virtual void RemovePredicate (const NodePredicateBase *p)
 Removes a child predicate.
virtual ChildPredicates GetPredicates () const
 Return all child predicates (immutable).

Protected Attributes

ChildPredicates m_ChildPredicates
 list of child predicates

Detailed Description

Base class for all predicates that can have child predicates (e.g. AND/OR)

This class provides methods to add and remove child predicates. It is used for predicates that are compositions of other predicates like AND and OR.

Definition at line 34 of file mitkNodePredicateCompositeBase.h.


Member Typedef Documentation

Definition at line 37 of file mitkNodePredicateCompositeBase.h.

typedef itk::SmartPointer<const Self> mitk::NodePredicateCompositeBase::ConstPointer
typedef itk::SmartPointer<Self> mitk::NodePredicateCompositeBase::Pointer

Constructor & Destructor Documentation

mitk::NodePredicateCompositeBase::~NodePredicateCompositeBase (  ) [pure virtual]

Pure virtual (but implemented) Destructor makes NodePredicateCompositeBase an abstract class.

Definition at line 23 of file mitkNodePredicateCompositeBase.cpp.

{
}

Member Function Documentation

void mitk::NodePredicateCompositeBase::AddPredicate ( const NodePredicateBase p ) [virtual]
virtual const char* mitk::NodePredicateCompositeBase::GetClassName (  ) const [virtual]
mitk::NodePredicateCompositeBase::ChildPredicates mitk::NodePredicateCompositeBase::GetPredicates (  ) const [virtual]

Return all child predicates (immutable).

Definition at line 37 of file mitkNodePredicateCompositeBase.cpp.

{
  return m_ChildPredicates;
}
void mitk::NodePredicateCompositeBase::RemovePredicate ( const NodePredicateBase p ) [virtual]

Removes a child predicate.

Definition at line 32 of file mitkNodePredicateCompositeBase.cpp.

{
  m_ChildPredicates.remove(p);
}

Member Data Documentation

list of child predicates

Definition at line 60 of file mitkNodePredicateCompositeBase.h.

Referenced by mitk::NodePredicateNot::NodePredicateNot().


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