列族表
更多...
#include <DAColumnTable.hpp>
|
|
| DAColumnTable (int rows, int columns) |
| |
| void | resize (int r, int c) |
| | 改变table 的大小
|
| |
|
void | reserve (int size) |
| |
|
bool | haveFieldid (const QString &field) const |
| |
| int | rowCount () const |
| | 表的行数
|
| |
| int | columnCount () const |
| | 表的列数
|
| |
| void | fill (const T &v) |
| | 填充元素
|
| |
|
const T & | at (int r, int c) const |
| |
|
T & | at (int r, int c) |
| |
| T | cell (int r, int c) const |
| | 获取单元格
|
| |
|
int | nameToIndex (const QString &n) const |
| |
| SeriesPtr & | column (int r) |
| | 获取列引用
|
| |
| const SeriesPtr & | column (int r) const |
| | 获取列引用
|
| |
|
SeriesPtr & | column (const QString &n) |
| |
|
const SeriesPtr & | column (const QString &n) const |
| |
|
SeriesPtr | appendColumn (const QString &name) |
| |
|
SeriesPtr | appendColumn (const QString &name, int size) |
| |
|
void | appendColumn (SeriesPtr col) |
| |
|
void | appendColumn (std::initializer_list< T > datas, const QString &colName) |
| |
|
template<typename Ite1 , typename Ite2 > |
| void | appendRow (Ite1 b, Ite2 e) |
| |
|
void | appendRow (std::initializer_list< T > rowDatas) |
| |
|
SeriesPtr | row (int c) const |
| |
|
SeriesType & | operator[] (int c) |
| |
|
const SeriesType & | operator[] (int c) const |
| |
|
SeriesType & | operator[] (const QString &colname) |
| |
|
const SeriesType & | operator[] (const QString &colname) const |
| |
|
void | fixSize () |
| | 以最大列数进行列数修正,保证所有行同列
|
| |
| void | setMode (Mode m) |
| | 设置表格的模式
|
| |
|
Mode | getMode () const |
| |
|
void | clear () |
| | 清空
|
| |
|
void | setName (const QString &n) |
| |
|
QString | getName () const |
| |
| QStringList | columnNames () const |
| | colNames
|
| |
| void | setColumnNames (const QStringList &ns) |
| | 设置行名,如果是个空的表会生成一个默认行
|
| |
| void | setCaseSensitivity (CaseSensitivity cs) |
| | 设置名字查询时是否对大小写敏感
|
| |
| bool | isCaseSensitivity () const |
| | 判断是否大小写敏感
|
| |
|
void | remove (const QString &name) |
| |
|
void | remove (int colIndex) |
| |
|
|
static SeriesPtr | makeSeries () |
| |
|
static SeriesPtr | makeSeries (const QString &n) |
| |
|
static SeriesPtr | makeSeries (std::initializer_list< T > args) |
| |
|
static TablePtr | makeTable () |
| |
template<typename T>
class DA::DAColumnTable< T >
列族表
- 参见
- DARowTable
◆ CaseSensitivity
| 枚举值 |
|---|
| CaseInsensitive | 大小写不敏感
|
| CaseSensitive | 大小写敏感
|
◆ Mode
| 枚举值 |
|---|
| FixedMode | 固定模式,表的列不会随着行的变化而变化(默认)
|
| ExpandMode | 扩展模式,表的列是浮动的,如果插入一行比原来要宽,会自动扩充表的列数
|
◆ cell()
获取单元格
- 参数
-
- 返回
- 如果没有或超范围,返回默认构造
◆ column() [1/2]
◆ column() [2/2]
◆ columnCount()
◆ columnNames()
◆ fill()
◆ isCaseSensitivity()
◆ resize()
◆ rowCount()
◆ setCaseSensitivity()
◆ setColumnNames()
◆ setMode()
该类的文档由以下文件生成: