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 | 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 293 of file html.py.

Constructor & Destructor Documentation

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

Definition at line 295 of file html.py.

296  def __init__(self, columnHeaders, rowHeaders, table, purpose, page, section):
297  if len(columnHeaders) != len(table):
298  raise Exception("Got %d columnHeaders for table with %d columns for page %s, section %s" % (len(columnHeaders), len(table), page, section))
299  lenRow = len(table[0])
300  for icol, column in enumerate(table):
301  if len(column) != lenRow:
302  raise Exception("Got non-square table, first column has %d rows, column %d has %d rows" % (lenRow, icol, len(column)))
303  if len(rowHeaders) != lenRow:
304  raise Exception("Got %d rowHeaders for table with %d rows" % (len(rowHeaders), lenRow))
306  self._columnHeaders = columnHeaders
307  self._rowHeaders = rowHeaders
308  self._table = table
310  self._purpose = purpose
311  self._page = page
312  self._section = section
_purpose
Definition: html.py:309
_rowHeaders
Definition: html.py:306
_columnHeaders
Definition: html.py:305
def __init__
Definition: html.py:295
_section
Definition: html.py:311

Member Function Documentation

def html.Table.columnHeaders (   self)

Definition at line 328 of file html.py.

References html.Table._columnHeaders.

329  def columnHeaders(self):
330  return self._columnHeaders
def columnHeaders
Definition: html.py:328
_columnHeaders
Definition: html.py:305
def html.Table.getPage (   self)

Definition at line 316 of file html.py.

References html.Table._page.

317  def getPage(self):
318  return self._page
def getPage
Definition: html.py:316
def html.Table.getPurpose (   self)

Definition at line 313 of file html.py.

References html.Table._purpose.

314  def getPurpose(self):
315  return self._purpose
_purpose
Definition: html.py:309
def getPurpose
Definition: html.py:313
def html.Table.getSection (   self)

Definition at line 319 of file html.py.

References html.Table._section.

320  def getSection(self):
321  return self._section
def getSection
Definition: html.py:319
_section
Definition: html.py:311
def html.Table.ncolumns (   self)

Definition at line 322 of file html.py.

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

323  def ncolumns(self):
324  return len(self._table)
def ncolumns
Definition: html.py:322
def html.Table.nrows (   self)

Definition at line 325 of file html.py.

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

326  def nrows(self):
327  return len(self._table[0])
def nrows
Definition: html.py:325
def html.Table.rowHeaders (   self)

Definition at line 331 of file html.py.

References html.Table._rowHeaders.

332  def rowHeaders(self):
333  return self._rowHeaders
def rowHeaders
Definition: html.py:331
_rowHeaders
Definition: html.py:306
def html.Table.tableAsColumnRow (   self)

Definition at line 334 of file html.py.

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

335  def tableAsColumnRow(self):
336  return self._table
def tableAsColumnRow
Definition: html.py:334
def html.Table.tableAsRowColumn (   self)

Definition at line 337 of file html.py.

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

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

Member Data Documentation

html.Table._columnHeaders
private

Definition at line 305 of file html.py.

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

html.Table._page
private

Definition at line 310 of file html.py.

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

html.Table._purpose
private

Definition at line 309 of file html.py.

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

html.Table._rowHeaders
private

Definition at line 306 of file html.py.

Referenced by html.Table.rowHeaders().

html.Table._section
private

Definition at line 311 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 307 of file html.py.

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