class unitpp::visitor

The visitor class is a base class for classes that wants to participate in the visitor pattern with the test hierarchi.

Inheritance:


Public Methods

[more]virtual void visit(test&) = 0
Visit a test case, that is not a suite
[more]virtual void visit(suite&)
Visit a suite node before the children are visited
[more]virtual void visit(suite&, int dummy) = 0
Visit a suite after the children are visited


Documentation

The visitor class is a base class for classes that wants to participate in the visitor pattern with the test hierarchi.

This is a slightly extended visitor pattern implementation, intended for collaboration with the Composite pattern. The aggregate node (here the suite node) is visited twice, before and after the children are visited. This allows different algorithms to be implemented.

ovirtual void visit(test&) = 0
Visit a test case, that is not a suite

ovirtual void visit(suite&)
Visit a suite node before the children are visited

ovirtual void visit(suite&, int dummy) = 0
Visit a suite after the children are visited


Direct child classes:
tester
g_setup

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.