CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
psClasses.BuildTreeNodeList Class Reference
Inheritance diagram for psClasses.BuildTreeNodeList:

Public Member Functions

def __init__ (self, value=None)
 
def __setitem__ (self, index, value)
 
def __str__ (self, topDown=False, direction=False)
 
def append (self, value)
 
def findDep (self, dep)
 
def findLib (self, lib, head=None)
 
def startThreads (self)
 

Public Attributes

 SeenLibs
 
 SeenModules
 
 SeenSubModules
 

Detailed Description

Definition at line 78 of file psClasses.py.

Constructor & Destructor Documentation

def psClasses.BuildTreeNodeList.__init__ (   self,
  value = None 
)

Definition at line 80 of file psClasses.py.

80  def __init__(self,value=None):
81  self.SeenLibs = []
82  self.SeenModules = []
83  self.SeenSubModules = []
84  if value:
85  list.__init__(self,value)
86  else:
87  list.__init__(self)
88 
def __init__(self, value=None)
Definition: psClasses.py:80

Member Function Documentation

def psClasses.BuildTreeNodeList.__setitem__ (   self,
  index,
  value 
)

Definition at line 118 of file psClasses.py.

118  def __setitem__(self,index,value):
119  if not value.__class__ == BuildTreeNode:
120  raise TypeError("Expected BuildTreeNode")
121  self.SeenLibs.append(value.LibName)
122  self.SeenModules.append(value.Module)
123  self.SeenSubModules.append(value.SubModule)
124  list.__setitem__(self,index,value)
125 
def __setitem__(self, index, value)
Definition: psClasses.py:118
def psClasses.BuildTreeNodeList.__str__ (   self,
  topDown = False,
  direction = False 
)

Definition at line 134 of file psClasses.py.

References join(), python.rootplot.root2matplotlib.replace(), and str.

Referenced by edmStreamStallGrapher.Point.__repr__().

134  def __str__(self,topDown=False,direction=False):
135  if not topDown:
136  return "[\n...%s]" % str("\n...".join([str(it).replace("...","......") for it in self]))
137  else:
138  if direction:
139  return "[\n---%s]" % "\n---".join([ "'%s':'%s'\n------State = %d \n------DependsOn : %s " % (it.LibName,it.SubModule or it.Module,it.State,it.DependsOn.__str__(True,True).replace("---","------")) for it in self ])
140  else:
141  return "\n".join([it.__str__(True) for it in self])
142 
def __str__(self, topDown=False, direction=False)
Definition: psClasses.py:134
def replace(string, replacements)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
#define str(s)
def psClasses.BuildTreeNodeList.append (   self,
  value 
)

Definition at line 126 of file psClasses.py.

References psClasses.BuildTreeNodeList.SeenLibs, psClasses.BuildTreeNodeList.SeenModules, and psClasses.BuildTreeNodeList.SeenSubModules.

Referenced by diclist.diclist.add(), and Vispa.Views.PropertyView.PropertyView.addProperty().

126  def append(self,value):
127  if not value.__class__ == BuildTreeNode:
128  raise TypeError("Expected BuildTreeNode")
129  value.LibName not in self.SeenLibs and self.SeenLibs.append(value.LibName)
130  value.Module not in self.SeenModules and self.SeenModules.append(value.Module)
131  value.SubModule not in self.SeenSubModules and self.SeenSubModules.append(value.SubModule)
132  list.append(self,value)
133 
def append(self, value)
Definition: psClasses.py:126
def psClasses.BuildTreeNodeList.findDep (   self,
  dep 
)

Definition at line 115 of file psClasses.py.

References psClasses.BuildTreeNodeList.findLib().

115  def findDep(self,dep):
116  return self.findLib(dep.replace("/",""))
117 
def findLib(self, lib, head=None)
Definition: psClasses.py:89
def findDep(self, dep)
Definition: psClasses.py:115
def psClasses.BuildTreeNodeList.findLib (   self,
  lib,
  head = None 
)

Definition at line 89 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.findDep().

89  def findLib(self,lib,head=None):
90  if len(self) == 0:
91  return None
92  if head == self:
93  return None
94  if head == None:
95  head = self
96  itP=None
97  for it in self:
98  if lib == it.LibName:
99  return it
100  else:
101  itP=it.AreDependent.findLib(lib,head)
102  if itP is not None:
103  return itP
104  return itP
105 
def findLib(self, lib, head=None)
Definition: psClasses.py:89
def psClasses.BuildTreeNodeList.startThreads (   self)

Definition at line 106 of file psClasses.py.

106  def startThreads(self):
107  for node in self:
108  if not node.BThread.is_alive():
109  try:
110  node.BThread.start()
111  except:
112  pass
113  node.AreDependent.startThreads()
114 

Member Data Documentation

psClasses.BuildTreeNodeList.SeenLibs

Definition at line 81 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.append().

psClasses.BuildTreeNodeList.SeenModules

Definition at line 82 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.append().

psClasses.BuildTreeNodeList.SeenSubModules

Definition at line 83 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.append().