CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SequenceVisitors.CompositeVisitor Class Reference
Inheritance diagram for SequenceVisitors.CompositeVisitor:

Public Member Functions

def __init__ (self, validator, node, decorated)
 
def enter (self, visitee)
 
def leave (self, visitee)
 

Private Attributes

 _decorated
 
 _node
 
 _validator
 

Detailed Description

Combines 3 different visitor classes in 1 so we only have to visit all the paths and endpaths once

Definition at line 92 of file SequenceVisitors.py.

Constructor & Destructor Documentation

◆ __init__()

def SequenceVisitors.CompositeVisitor.__init__ (   self,
  validator,
  node,
  decorated 
)

Definition at line 94 of file SequenceVisitors.py.

94  def __init__(self, validator, node, decorated):
95  self._validator = validator
96  self._node = node
97  self._decorated = decorated

Member Function Documentation

◆ enter()

def SequenceVisitors.CompositeVisitor.enter (   self,
  visitee 
)

Definition at line 98 of file SequenceVisitors.py.

98  def enter(self, visitee):
99  self._validator.enter(visitee)
100  self._node.enter(visitee)
101  self._decorated.enter(visitee)

References SequenceVisitors.CompositeVisitor._decorated, SequenceVisitors.CompositeVisitor._node, and SequenceVisitors.CompositeVisitor._validator.

◆ leave()

def SequenceVisitors.CompositeVisitor.leave (   self,
  visitee 
)

Definition at line 102 of file SequenceVisitors.py.

102  def leave(self, visitee):
103  self._validator.leave(visitee)
104  # The node visitor leave function does nothing
105  #self._node.leave(visitee)
106  self._decorated.leave(visitee)
107 

References SequenceVisitors.CompositeVisitor._decorated, and SequenceVisitors.CompositeVisitor._validator.

Member Data Documentation

◆ _decorated

SequenceVisitors.CompositeVisitor._decorated
private

◆ _node

SequenceVisitors.CompositeVisitor._node
private

Definition at line 96 of file SequenceVisitors.py.

Referenced by SequenceVisitors.CompositeVisitor.enter().

◆ _validator

SequenceVisitors.CompositeVisitor._validator
private