yo/classtemplates/examples/table/tabletype/tabletype.cc
raw| 1 | #include "tabletype.ih" |
| 2 | |
| 3 | TableType::TableType(TableSupport &tableSupport, size_t nColumns, |
| 4 | FillDirection direction) |
| 5 | : |
| 6 | d_tableSupportPtr(0), |
| 7 | d_tableSupport(tableSupport), |
| 8 | d_maxWidth(0), |
| 9 | d_nRows(0), |
| 10 | d_nColumns(nColumns), |
| 11 | d_widthType(COLUMNWIDTH), |
| 12 | d_colWidth(nColumns), |
| 13 | d_widthFun(&TableType::columnWidth), |
| 14 | d_indexFun(direction == HORIZONTAL ? |
| 15 | &TableType::hIndex |
| 16 | : |
| 17 | &TableType::vIndex) |
| 18 | {} |