CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
psClasses.BuildTreeNodeList Class Reference
Inheritance diagram for psClasses.BuildTreeNodeList:

Public Member Functions

def __init__
 
def __setitem__
 
def __str__
 
def append
 
def findDep
 
def findLib
 
def startThreads
 

Public Attributes

 SeenLibs
 
 SeenModules
 
 SeenSubModules
 

Detailed Description

Definition at line 77 of file psClasses.py.

Constructor & Destructor Documentation

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

Definition at line 79 of file psClasses.py.

79 
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)

Member Function Documentation

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

Definition at line 117 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)
def psClasses.BuildTreeNodeList.__str__ (   self,
  topDown = False,
  direction = False 
)

Definition at line 133 of file psClasses.py.

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

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])
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def psClasses.BuildTreeNodeList.append (   self,
  value 
)

Definition at line 125 of file psClasses.py.

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

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

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)
def psClasses.BuildTreeNodeList.findDep (   self,
  dep 
)

Definition at line 114 of file psClasses.py.

References psClasses.BuildTreeNodeList.findLib().

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

Definition at line 88 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.findDep().

88 
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
def psClasses.BuildTreeNodeList.startThreads (   self)

Definition at line 105 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()

Member Data Documentation

psClasses.BuildTreeNodeList.SeenLibs

Definition at line 80 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.append().

psClasses.BuildTreeNodeList.SeenModules

Definition at line 81 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.append().

psClasses.BuildTreeNodeList.SeenSubModules

Definition at line 82 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.append().