libSBML C API  libSBML 5.8.0 C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CompVisitor Class Reference
Inheritance diagram for CompVisitor:
[legend]

Detailed Description

comp Support class for performing operations on SBML objects.

This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components.

This is a class that supports the use of the Visitor Pattern to perform operations on SBML objects. The LibSBML implementation of the Visitor Pattern couples the notion of visitation with the traversal of an SBML model oject hierarchy.

This class (CompVisitor) does not provide stand-alone functionality; rather, it defines the interface that user visitor classes must implement. All of the individual SBML object classes have methods named accept that are used for invoking an object of class CompVisitor. An example of its use is in the SBML validation system, which is internally implemented using this Visitor Pattern facility.