CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static 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__
 
def __str__
 
def add_child
 
def child
 
def children
 
def data
 
def is_leaf
 
def left_child
 
def right_child
 

Static Private Attributes

 _child_nodes = None
 
 _data = None
 

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.

References data_sources.node._child_nodes, and data_sources.node._data.

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

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, mat4.data, HcalPulseShape.data(), CombinedSVCalibration.data, data_sources.node.data(), CombinedTauTagCalibration.data, TrackProbabilityCalibration.data, ecal::DigisCollection< StoragePolicy >.data, ElectronLikelihoodCalibration.data, CSCTMBScope.data, ecal::raw::InputDataCPU.data, SimpleVFATFrameCollection.data, confdb.HLTProcess.data, CaloTSamples< Ttype, Tsize >.data(), emtf::Event.data, magfieldparam::rz_poly.data, classes.PlotData.data, cond::Binary.data(), dqm::DQMFileSaverOnline::SnapshotFiles.data, QGLikelihoodObject.data, KDTreeNodeInfo< DATA, DIM >.data, calo::multifit::MapSymM< T, Stride, Order >.data, hcal::raw::InputDataCPU.data, materialEffect::Covariance.data, LASModuleProfile.data, dqmTnP::AbstractFitter.data, CaloTSamplesBase< Ttype >.data(), UnbinnedFitDeDxEstimator.data, QGLikelihoodSystematicsObject.data, tkMSParameterization::Elems.data, LCTContainer.data, TkLasBeam.data, TkStripRecHitIter.data, KDTreeNodes< DATA, DIM >.data, ecal::raw::InputDataGPU.data, tkMSParameterization::FromToData.data, hcaltb::ClassicQADCDataFormat.data, GeometryComparisonPlotter.data, calo::multifit::MapMForPM< T >.data, DynArray< T >.data(), EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients.data, edm::MapOfVectors< K, T >::Iter.data, coral_bridge::AuthenticationCredentialSet.data(), magfieldparam::poly2d_base.data, hcal::raw::InputDataGPU.data, @775.data, EcalShowerContainmentCorrections::Coefficients.data, edm::DetSet< T >.data, CTPPSCompositeESSource::BinData< T >.data, TkMSParameterization.data, PixelLimits.data, cscdqm::Cache.data, options.HLTProcessOptions.data, DQMNet::Bucket.data, hcal::DigiCollectionBase< StoragePolicy >.data, StripLimits.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 str.

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

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

Definition at line 21 of file data_sources.py.

21 
22  def add_child(self, node_data):
23  new_node = node(node_data)
24  self._child_nodes.append(new_node)
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 
29  def child(self, index):
30  return self.children()[index]
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__(), data_sources.node.child(), data_sources.node.is_leaf(), data_sources.node.left_child(), and data_sources.node.right_child().

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

Definition at line 18 of file data_sources.py.

References data_sources.node._data.

Referenced by data_sources.node.__str__(), data_sources.json_list.as_dicts(), data_sources.json_list.as_table(), data_sources.json_list.get_members(), and data_sources.json_list.last().

18 
19  def data(self):
20  return self._data
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 
38  def is_leaf(self):
39  return len(self.children()) == 0
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 
32  def left_child(self):
33  return self.children()[0]
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 
35  def right_child(self):
36  return self.children()[1]

Member Data Documentation

data_sources.node._child_nodes = None
staticprivate

Definition at line 13 of file data_sources.py.

Referenced by data_sources.node.__init__(), and data_sources.node.children().

data_sources.node._data = None
staticprivate

Definition at line 12 of file data_sources.py.

Referenced by XML2Python.DataNode.__init__(), data_sources.node.__init__(), data_sources.json_data_node.__init__(), data_sources.json_list.__next__(), python.XML2Python.DataNode.__nonzero__(), XML2Python.DataNode.__nonzero__(), python.XML2Python.DataNode.__repr__(), XML2Python.DataNode.__repr__(), python.XML2Python.DataNode.__str__(), XML2Python.DataNode.__str__(), data_sources.json_data_node.__str__(), data_sources.json_dict.add_key(), data_sources.node.data(), data_sources.json_file.data(), data_sources.sqlite_schema.data(), data_sources.json_data_node.data(), data_sources.json_data_node.find(), data_sources.json_file.raw(), data_sources.json_data_node.raw(), data_sources.json_data_node.set(), and XML2Python.DataNode.stringify().