CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
html.Table Class Reference

Public Member Functions

def __init__
 
def columnHeaders
 
def getPage
 
def getPurpose
 
def getSection
 
def ncolumns
 
def nrows
 
def rowHeaders
 
def tableAsColumnRow
 
def tableAsRowColumn
 

Private Attributes

 _columnHeaders
 
 _page
 
 _purpose
 
 _rowHeaders
 
 _section
 
 _table
 

Detailed Description

Definition at line 174 of file html.py.

Constructor & Destructor Documentation

def html.Table.__init__ (   self,
  columnHeaders,
  rowHeaders,
  table,
  purpose,
  page,
  section 
)

Definition at line 176 of file html.py.

177  def __init__(self, columnHeaders, rowHeaders, table, purpose, page, section):
178  if len(columnHeaders) != len(table):
179  raise Exception("Got %d columnHeaders for table with %d columns for page %s, section %s" % (len(columnHeaders), len(table), page, section))
180  lenRow = len(table[0])
181  for icol, column in enumerate(table):
182  if len(column) != lenRow:
183  raise Exception("Got non-square table, first column has %d rows, column %d has %d rows" % (lenRow, icol, len(column)))
184  if len(rowHeaders) != lenRow:
185  raise Exception("Got %d rowHeaders for table with %d rows" % (len(rowHeaders), lenRow))
187  self._columnHeaders = columnHeaders
188  self._rowHeaders = rowHeaders
189  self._table = table
191  self._purpose = purpose
192  self._page = page
193  self._section = section
_purpose
Definition: html.py:190
_rowHeaders
Definition: html.py:187
_columnHeaders
Definition: html.py:186
def __init__
Definition: html.py:176
_section
Definition: html.py:192

Member Function Documentation

def html.Table.columnHeaders (   self)

Definition at line 209 of file html.py.

References html.Table._columnHeaders.

210  def columnHeaders(self):
211  return self._columnHeaders
def columnHeaders
Definition: html.py:209
_columnHeaders
Definition: html.py:186
def html.Table.getPage (   self)

Definition at line 197 of file html.py.

References html.Table._page.

198  def getPage(self):
199  return self._page
def getPage
Definition: html.py:197
def html.Table.getPurpose (   self)

Definition at line 194 of file html.py.

References html.Table._purpose.

195  def getPurpose(self):
196  return self._purpose
_purpose
Definition: html.py:190
def getPurpose
Definition: html.py:194
def html.Table.getSection (   self)

Definition at line 200 of file html.py.

References html.Table._section.

201  def getSection(self):
202  return self._section
def getSection
Definition: html.py:200
_section
Definition: html.py:192
def html.Table.ncolumns (   self)

Definition at line 203 of file html.py.

References LMap::impl._table, and html.Table._table.

204  def ncolumns(self):
205  return len(self._table)
def ncolumns
Definition: html.py:203
def html.Table.nrows (   self)

Definition at line 206 of file html.py.

References LMap::impl._table, and html.Table._table.

207  def nrows(self):
208  return len(self._table[0])
def nrows
Definition: html.py:206
def html.Table.rowHeaders (   self)

Definition at line 212 of file html.py.

References html.Table._rowHeaders.

213  def rowHeaders(self):
214  return self._rowHeaders
def rowHeaders
Definition: html.py:212
_rowHeaders
Definition: html.py:187
def html.Table.tableAsColumnRow (   self)

Definition at line 215 of file html.py.

References LMap::impl._table, and html.Table._table.

216  def tableAsColumnRow(self):
217  return self._table
def tableAsColumnRow
Definition: html.py:215
def html.Table.tableAsRowColumn (   self)

Definition at line 218 of file html.py.

References LMap::impl._table, html.Table._table, and ComparisonHelper.zip().

219  def tableAsRowColumn(self):
220  return map(list, zip(*self._table))
def tableAsRowColumn
Definition: html.py:218
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)

Member Data Documentation

html.Table._columnHeaders
private

Definition at line 186 of file html.py.

Referenced by html.Page._appendColumnHeader(), html.Page._formatTables(), and html.Table.columnHeaders().

html.Table._page
private

Definition at line 191 of file html.py.

Referenced by vertexPlots.VertexSummaryTable.getPage(), html.Table.getPage(), trackingPlots.TrackingSummaryTable.getPage(), trackingPlots.TrackingTimingTable.getPage(), and plotting.PlotFolder.getPage().

html.Table._purpose
private

Definition at line 190 of file html.py.

Referenced by vertexPlots.VertexSummaryTable.getPurpose(), html.Table.getPurpose(), trackingPlots.TrackingSummaryTable.getPurpose(), trackingPlots.TrackingTimingTable.getPurpose(), and plotting.PlotFolder.getPurpose().

html.Table._rowHeaders
private

Definition at line 187 of file html.py.

Referenced by html.Table.rowHeaders().

html.Table._section
private

Definition at line 192 of file html.py.

Referenced by html.Table.getSection(), trackingPlots.TrackingSummaryTable.getSection(), trackingPlots.TrackingTimingTable.getSection(), and plotting.PlotFolder.getSection().

html.Table._table
private

Definition at line 188 of file html.py.

Referenced by html.Table.ncolumns(), html.Table.nrows(), html.Table.tableAsColumnRow(), and html.Table.tableAsRowColumn().