libSBML C++ API
libSBML 5.8.0 C++ API
|
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.
Public Member Functions | |
virtual void | leave (const SBMLDocument &x) |
Interface method for using the Visitor Pattern to perform operations on SBMLDocument objects. More... | |
virtual void | leave (const Model &x) |
Interface method for using the Visitor Pattern to perform operations on Model objects. More... | |
virtual void | leave (const SBase &x) |
Interface method for using the Visitor Pattern to perform operations on SBase objects. More... | |
virtual void | leave (const ListOf &x, int type) |
Interface method for using the Visitor Pattern to perform operations on ListOf objects. More... | |
virtual void | leave (const Submodel &x) |
Interface method for using the Visitor Pattern to perform operations on Submodel objects. More... | |
virtual void | visit (const SBMLDocument &x) |
Interface method for using the Visitor Pattern to perform operations on SBMLDocument objects. More... | |
virtual void | visit (const Model &x) |
Interface method for using the Visitor Pattern to perform operations on Model objects. More... | |
virtual void | visit (const ListOf &x, int type) |
Interface method for using the Visitor Pattern to perform operations on ListOf objects. More... | |
virtual bool | visit (const SBase &x) |
Interface method for using the Visitor Pattern to perform operations on SBase objects. More... | |
virtual bool | visit (const Port &x) |
Interface method for using the Visitor Pattern to perform operations on Port objects. More... | |
virtual bool | visit (const Deletion &x) |
Interface method for using the Visitor Pattern to perform operations on Deletion objects. More... | |
virtual bool | visit (const Submodel &x) |
Interface method for using the Visitor Pattern to perform operations on Submodel objects. More... | |
virtual bool | visit (const ReplacedElement &x) |
Interface method for using the Visitor Pattern to perform operations on ReplacedElement objects. More... | |
virtual bool | visit (const ReplacedBy &x) |
Interface method for using the Visitor Pattern to perform operations on ReplacedBy objects. More... | |
virtual bool | visit (const ModelDefinition &x) |
Interface method for using the Visitor Pattern to perform operations on ModelDefinition objects. More... | |
virtual bool | visit (const ExternalModelDefinition &x) |
Interface method for using the Visitor Pattern to perform operations on ExternalModelDefinition objects. More... | |
virtual | ~CompVisitor () |
Destructor method. More... | |
Friends | |
class | CompValidatingVisitor |
|
virtual |
Destructor method.
|
virtual |
Interface method for using the Visitor Pattern to perform operations on SBMLDocument objects.
x | the SBMLDocument object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on Model objects.
x | the Model object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on SBase objects.
x | the SBase object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on ListOf objects.
x | the ListOf object to visit. |
type | the object type code. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on Submodel objects.
x | the Submodel object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on SBMLDocument objects.
x | the SBMLDocument object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on Model objects.
x | the Model object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on ListOf objects.
x | the ListOf object to visit. |
type | the object type code. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on SBase objects.
x | the SBase object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on Port objects.
x | the Port object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on Deletion objects.
x | the Deletion object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on Submodel objects.
x | the Submodel object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on ReplacedElement objects.
x | the ReplacedElement object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on ReplacedBy objects.
x | the ReplacedBy object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on ModelDefinition objects.
x | the ModelDefinition object to visit. |
|
virtual |
Interface method for using the Visitor Pattern to perform operations on ExternalModelDefinition objects.
x | the ExternalModelDefinition object to visit. |
|
friend |