OpenStructure
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
TableRow Class Reference

Public Member Functions

 __init__ (self, row_data, tab)
 
 __getitem__ (self, col_name)
 
 __str__ (self)
 
 __len__ (self)
 
 __setitem__ (self, col_name, val)
 
 __getattr__ (self, col_name)
 
 __setattr__ (self, col_name, val)
 

Data Fields

 row_data
 

Detailed Description

Essentially a named tuple, but allows column names that are not valid 
python variable names.

Definition at line 130 of file table.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  row_data,
  tab 
)

Definition at line 135 of file table.py.

Member Function Documentation

◆ __getattr__()

__getattr__ (   self,
  col_name 
)

Definition at line 160 of file table.py.

◆ __getitem__()

__getitem__ (   self,
  col_name 
)

Definition at line 139 of file table.py.

◆ __len__()

__len__ (   self)

Definition at line 151 of file table.py.

◆ __setattr__()

__setattr__ (   self,
  col_name,
  val 
)

Definition at line 165 of file table.py.

◆ __setitem__()

__setitem__ (   self,
  col_name,
  val 
)

Definition at line 154 of file table.py.

◆ __str__()

__str__ (   self)

Definition at line 144 of file table.py.

Field Documentation

◆ row_data

row_data

Definition at line 152 of file table.py.


The documentation for this class was generated from the following file: