MRS  1.0
A C++ Class Library for Statistical Set Processing
subpavings::SplittableCheck Class Reference

A type that visits SPnodes to check if they are splittable. More...

+ Inheritance diagram for subpavings::SplittableCheck:
+ Collaboration diagram for subpavings::SplittableCheck:

List of all members.

Public Member Functions

 SplittableCheck ()
 Constructor.
void visit (const SPnode *const spn) const
 The visit operation.
bool getResult () const
 Get the result of the visit operation.

Detailed Description

A type that visits SPnodes to check if they are splittable.

The result of the visit should be a boolean indicating whether the node should be split, according its own isSplittabeNode() method.


Member Function Documentation

void subpavings::SplittableCheck::visit ( const SPnode *const  spn) const [virtual]

The visit operation.

Checks the node pointed to by spn and records the result true if the node is splittable (ie if spn->isSplittableNode()).

Parameters:
spna pointer to an SPnode to be visited.
Returns:
true if spn is not splittable, false otherwise.

Implements subpavings::SPCheckVisitor.

    {
    result  = spn->isSplittableNode();
    }

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