srVisitor Class Reference


Public Methods

virtual ~srVisitor ()
virtual void visit (srObjectRef *object)=0
virtual void visit (srObjectState *object)=0
virtual void visit (sr1to1Relationship *object)=0
virtual void visit (sr1toNRelationship *object)=0
virtual void visit (srRelationshipBase *object)=0
virtual void visit (srAttributeBase *object)=0
virtual void visit (srValueBase *object)=0

Detailed Description

The srVisitor class defines the visitor interface class for the schema representation (sr) classes. Derived classes can use this interface to implement a specific operation on each of the concrete sr classes.

The srVisitor class uses the visitor design pattern interface, which provides a way to encapsulate an operation that you want to perform on the elements of a data structure. The visitor design pattern interface uses a dual dispatch technique. Each concrete node in the data structure has an accept method, which provides access to a visitor. The accept method sends a message to the visitor that includes the node's class. The visitor can then execute its behavior for that element.


Constructor & Destructor Documentation

srVisitor::~srVisitor   [virtual]
 

This is the srVisitor destructor.


Member Function Documentation

void srVisitor::visit srValueBase *    object [pure virtual]
 

This function visits the specified srValueBase object. This function is called by the accept function on the srValueBase class.

Parameters:
object A pointer to the srValueBase object to visit.

void srVisitor::visit srAttributeBase *    object [pure virtual]
 

This function visits the specified srAttributeBase object. This function is called by the accept function on the srAttributeBase class.

Parameters:
object A pointer to the srAttributeBase object to visit.

virtual void srVisitor::visit srRelationshipBase *    object [pure virtual]
 

void srVisitor::visit sr1toNRelationship *    object [pure virtual]
 

This function visits the specified sr1toNRelationship object. This function is called by the accept function on the sr1toNRelationship class.

The srVisitor class is abstract and must be overridden by the derived visitor class.

Parameters:
object A pointer to the sr1toNRelationship object to visit.

void srVisitor::visit sr1to1Relationship *    object [pure virtual]
 

This function visits the specified sr1to1Relationship object. This function is called by the accept function on the sr1to1Relationship class.

The srVisitor class is abstract and must be overridden by the derived visitor class.

Parameters:
object A pointer to the sr1to1Relationship object to visit.

void srVisitor::visit srObjectState *    object [pure virtual]
 

This function visits the specified srObjectState object. This function is called by the accept function on the srObjectState class.

The srVisitor class is abstract and must be overridden by the derived visitor class.

Parameters:
object A pointer to the srObjectState object to visit.

void srVisitor::visit srObjectRef *    object [pure virtual]
 

This function visits the specified object. This function is called by the accept function on the srObjectRef class.

The srVisitor class is abstract and must be overridden by the derived visitor class.

Parameters:
object A pointer to the object to visit.


The documentation for this class was generated from the following files:

Return to top of page