CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
data_sources.node Class Reference
Inheritance diagram for data_sources.node:
data_sources.data_source data_sources.json_file data_sources.sqlite_schema

Public Member Functions

def __init__ (self, data=None)
 
def __str__ (self)
 
def add_child (self, node_data)
 
def child (self, index)
 
def children (self)
 
def data (self)
 
def is_leaf (self)
 
def left_child (self)
 
def right_child (self)
 

Private Attributes

 _child_nodes
 
 _data
 

Detailed Description

Definition at line 10 of file data_sources.py.

Constructor & Destructor Documentation

def data_sources.node.__init__ (   self,
  data = None 
)

Definition at line 14 of file data_sources.py.

14  def __init__(self, data=None):
15  self._data = data
16  self._child_nodes = []
17 
def __init__(self, data=None)
Definition: data_sources.py:14

Member Function Documentation

def data_sources.node.__str__ (   self)

Definition at line 40 of file data_sources.py.

References data_sources.node.children(), geometry.Structure.children, data_sources.node.data(), CombinedTauTagCalibration.data, DOTExport.DotProducer.data, CombinedSVCalibration.data, TrackProbabilityCalibration.data, ElectronLikelihoodCalibration.data, CSCTMBScope.data, confdb.HLTProcess.data, SimpleVFATFrameCollection.data, classes.PlotData.data, magfieldparam::rz_poly.data, cond::Binary.data(), emtf::Event.data, dqm::DQMFileSaverOnline::SnapshotFiles.data, QGLikelihoodObject.data, CaloTSamples< Ttype, Tsize >.data(), KDTreeNodeInfo< DATA >.data, materialEffect::Covariance.data, dqmTnP::AbstractFitter.data, KDTreeNodeInfoT< DATA, DIM >.data, LASModuleProfile.data, UnbinnedFitDeDxEstimator.data, QGLikelihoodSystematicsObject.data, tkMSParameterization::Elems.data, DynArray< T >.data(), CaloTSamplesBase< Ttype >.data(), TkStripRecHitIter.data, TkLasBeam.data, KDTreeNodes< DATA >.data, tkMSParameterization::FromToData.data, hcaltb::ClassicQADCDataFormat.data, CSCUpgradeMotherboard::LCTContainer.data, GeometryComparisonPlotter.data, coral_bridge::AuthenticationCredentialSet.data(), EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients.data, magfieldparam::poly2d_base.data, edm::MapOfVectors< K, T >::Iter.data, edm::DetSet< T >.data, data, EcalShowerContainmentCorrections::Coefficients.data, PixelLimits.data, TkMSParameterization.data, options.HLTProcessOptions.data, cscdqm::Cache.data, StripLimits.data, DQMNet::Bucket.data, PhysicsTools::TrainerMonitoring::Module.data, cond::payloadInspector::PlotBase.data(), VFATFrame.data, cuy.FindIssue.data, HCAL_HLX::ET_SUM_NIBBLE.data, HCAL_HLX::OCCUPANCY_NIBBLE.data, HCAL_HLX::LHC_NIBBLE.data, HCAL_HLX::ET_SUM_SECTION.data, HCAL_HLX::OCCUPANCY_SECTION.data, HCAL_HLX::LHC_SECTION.data, edmStreamStallGrapher.Stack.data, and harvestTrackValidationPlots.str.

Referenced by edmStreamStallGrapher.Point.__repr__(), BeautifulSoup.Tag.__repr__(), BeautifulSoup.Tag.__unicode__(), and BeautifulSoup.Tag.prettify().

40  def __str__(self):
41  return "<node data='%s' children=%s>" % (self.data(), str(self.children()))
42 
def __str__(self)
Definition: data_sources.py:40
def children(self)
Definition: data_sources.py:25
def data_sources.node.add_child (   self,
  node_data 
)

Definition at line 21 of file data_sources.py.

21  def add_child(self, node_data):
22  new_node = node(node_data)
23  self._child_nodes.append(new_node)
24 
def add_child(self, node_data)
Definition: data_sources.py:21
def data_sources.node.child (   self,
  index 
)

Definition at line 28 of file data_sources.py.

References data_sources.node.children(), and geometry.Structure.children.

28  def child(self, index):
29  return self.children()[index]
30 
def child(self, index)
Definition: data_sources.py:28
def children(self)
Definition: data_sources.py:25
def data_sources.node.children (   self)

Definition at line 25 of file data_sources.py.

References data_sources.node._child_nodes.

Referenced by data_sources.node.__str__(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduleRecursive(), Vispa.Share.BasicDataAccessor.BasicDataAccessor.allChildren(), Vispa.Views.LineDecayView.LineDecayView.autolayout(), Vispa.Views.BoxDecayView.BoxDecayContainer.autolayoutAlgorithm(), Vispa.Gui.WidgetContainer.WidgetContainer.autolayoutChildren(), Vispa.Gui.WidgetContainer.WidgetContainer.autosize(), data_sources.node.child(), Vispa.Views.LineDecayView.LineDecayContainer.childContainer(), Vispa.Views.WidgetView.WidgetView.clear(), Vispa.Views.LineDecayView.LineDecayContainer.createDecayObjectsFromPxlObject(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.deleteSelectedConnections(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.deselectAllWidgets(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.foundIn(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.getWidgetByName(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.hideMenuWidgets(), data_sources.node.is_leaf(), data_sources.node.left_child(), Vispa.Views.LineDecayView.LineDecayView.lineDecayContainer(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.mouseReleaseEvent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.nonSequenceChildren(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.portConnection(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.propagateEventUnderConnectionWidget(), data_sources.node.right_child(), Vispa.Views.LineDecayView.LineDecayContainer.scheduleUpdateVisibleList(), Vispa.Views.LineDecayView.LineDecayView.scrollBarValueChanged(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.selectedWidgets(), Vispa.Views.LineDecayView.LineDecayContainer.setAcceptDrops(), Vispa.Gui.VispaWidget.VispaWidget.setDragable(), Vispa.Views.LineDecayView.LineDecayView.setEditable(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.updateConnections(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.widgetDragged().

25  def children(self):
26  return self._child_nodes
27 
def children(self)
Definition: data_sources.py:25
def data_sources.node.data (   self)
def data_sources.node.is_leaf (   self)

Definition at line 37 of file data_sources.py.

References data_sources.node.children(), and geometry.Structure.children.

37  def is_leaf(self):
38  return len(self.children()) == 0
39 
def children(self)
Definition: data_sources.py:25
def is_leaf(self)
Definition: data_sources.py:37
def data_sources.node.left_child (   self)

Definition at line 31 of file data_sources.py.

References data_sources.node.children(), and geometry.Structure.children.

31  def left_child(self):
32  return self.children()[0]
33 
def left_child(self)
Definition: data_sources.py:31
def children(self)
Definition: data_sources.py:25
def data_sources.node.right_child (   self)

Definition at line 34 of file data_sources.py.

References data_sources.node.children(), and geometry.Structure.children.

34  def right_child(self):
35  return self.children()[1]
36 
def right_child(self)
Definition: data_sources.py:34
def children(self)
Definition: data_sources.py:25

Member Data Documentation

data_sources.node._child_nodes
private

Definition at line 16 of file data_sources.py.

Referenced by data_sources.node.children().

data_sources.node._data
private