|
Covalent Bond
0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
|
cbVirtualTable works as a reference from shared memory. It only use a shape and SqlCell to define different tables. More...
#include <cbTable.hpp>

Public Member Functions | |
| cbVirtualTable ()=default | |
| ~cbVirtualTable () | |
| cbVirtualTable (const cbVirtualTable &rhs) | |
| cbVirtualTable (cbShape< 2 > &shape) | |
| cbVirtualTable (const cbShape< 2 > &shape) | |
| void | resetShape (const cbShape< 2 > &shape) |
| void | resetShapeH (const cbShape< 2 > &shape) |
| cbMySQLField ** | getInfo () |
| Get the Info object. More... | |
| void | setInfo (cbMySQLField **v) |
| Set the Info object. More... | |
| void | setInfoAt (int32_t i, cbMySQLField *v) |
| Set the Info At object. More... | |
| cbMySQLField * | getInfoAt (int32_t i) |
| Get the Info At object. More... | |
| std::vector< std::vector< cbMySQLCell * > > & | getData () |
| Get the Data object. More... | |
| cbShape< 2 > | getShape () |
| Get the Shape object. More... | |
| cbMySQLCell * | atPtr (int32_t i, int32_t j) |
| row major More... | |
| cbMySQLCell *& | atPtrRef (int32_t i, int32_t j) |
| void | setPtrAt (int32_t i, int32_t j, cbMySQLCell *v) |
| Set the Ptr At object. More... | |
| cbVirtualTable | getRow (int32_t i) |
| Get the Row object. More... | |
| cbVirtualTable | getCol (int32_t i) |
| Get the Col object. More... | |
| std::map< int32_t, int32_t > | keyBy (const std::string &colName) const |
| void | pushRow (const std::vector< cbMySQLCell * > &row) |
| std::string | colNameAt (int32_t i) |
| std::string | colTypeAt (int32_t i) |
| void | str () |
Private Attributes | |
| bool | m_isInfoExtent = false |
| cbMySQLField ** | m_info = nullptr |
| cbShape< 2 > | m_shape |
| std::vector< std::vector< cbMySQLCell * > > | m_data |
cbVirtualTable works as a reference from shared memory. It only use a shape and SqlCell to define different tables.
Definition at line 605 of file cbTable.hpp.
|
default |
|
inline |
Definition at line 608 of file cbTable.hpp.
References m_info, and m_isInfoExtent.
|
inline |
Definition at line 611 of file cbTable.hpp.
|
inline |
Definition at line 616 of file cbTable.hpp.
References m_data.
|
inline |
Definition at line 620 of file cbTable.hpp.
References m_data.
| cbMySQLCell * cbVirtualTable::atPtr | ( | int32_t | i, |
| int32_t | j | ||
| ) |
row major
| i | row |
| j | col |
Definition at line 128 of file cbTable.cpp.
References m_data.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph(), and cb::graph::cbComputeGraph::generateGraphTask().

| cbMySQLCell *& cbVirtualTable::atPtrRef | ( | int32_t | i, |
| int32_t | j | ||
| ) |
| i | |
| j |
Definition at line 130 of file cbTable.cpp.
References m_data.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph(), getCol(), getRow(), mapShared2Virtual(), and setPtrAt().

| std::string cbVirtualTable::colNameAt | ( | int32_t | i | ) |
| i |
Definition at line 195 of file cbTable.cpp.
References cbMySQLField::getName(), and m_info.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().


| std::string cbVirtualTable::colTypeAt | ( | int32_t | i | ) |
| i |
Definition at line 197 of file cbTable.cpp.
References m_info.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().

| cbVirtualTable cbVirtualTable::getCol | ( | int32_t | i | ) |
Get the Col object.
| i |
Definition at line 145 of file cbTable.cpp.
References atPtrRef(), cbVirtualTable(), getInfo(), m_shape, makeShapeFull(), and setInfo().
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().


| std::vector< std::vector< cbMySQLCell * > > & cbVirtualTable::getData | ( | ) |
Get the Data object.
Definition at line 126 of file cbTable.cpp.
References m_data.
| cbMySQLField ** cbVirtualTable::getInfo | ( | ) |
Get the Info object.
Definition at line 115 of file cbTable.cpp.
References m_info.
Referenced by cb::graph::cbVirtualDeviceNode::generateTask(), and getCol().

| cbMySQLField * cbVirtualTable::getInfoAt | ( | int32_t | i | ) |
Get the Info At object.
Definition at line 124 of file cbTable.cpp.
References m_info.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().

| cbVirtualTable cbVirtualTable::getRow | ( | int32_t | i | ) |
Get the Row object.
| i |
Definition at line 134 of file cbTable.cpp.
References atPtrRef(), cbVirtualTable(), m_info, m_shape, makeShapeFull(), and setInfo().
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().


|
inline |
Get the Shape object.
Definition at line 687 of file cbTable.hpp.
References m_shape.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph(), cb::graph::cbVirtualDeviceNode::generateTask(), and mapShared2Virtual().

| std::map< int32_t, int32_t > cbVirtualTable::keyBy | ( | const std::string & | colName | ) | const |
| colName |
Definition at line 156 of file cbTable.cpp.
References DataTime, Date, Double, Float, Int, m_data, m_info, m_shape, Null, String, Time, and ULL.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().

| void cbVirtualTable::pushRow | ( | const std::vector< cbMySQLCell * > & | row | ) |
| vt |
Definition at line 189 of file cbTable.cpp.
References m_data, and m_shape.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().

| void cbVirtualTable::resetShape | ( | const cbShape< 2 > & | shape | ) |
| shape |
Definition at line 98 of file cbTable.cpp.
References m_data, and m_shape.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph(), mapShared2Virtual(), and resetShapeH().

| void cbVirtualTable::resetShapeH | ( | const cbShape< 2 > & | shape | ) |
| shape | |
| withHead |
Definition at line 109 of file cbTable.cpp.
References m_info, m_isInfoExtent, and resetShape().
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().


| void cbVirtualTable::setInfo | ( | cbMySQLField ** | v | ) |
Set the Info object.
| v |
Definition at line 117 of file cbTable.cpp.
References m_info.
Referenced by getCol(), getRow(), and mapShared2Virtual().

| void cbVirtualTable::setInfoAt | ( | int32_t | i, |
| cbMySQLField * | v | ||
| ) |
Set the Info At object.
| v |
Definition at line 119 of file cbTable.cpp.
References m_info, and m_isInfoExtent.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().

| void cbVirtualTable::setPtrAt | ( | int32_t | i, |
| int32_t | j, | ||
| cbMySQLCell * | v | ||
| ) |
Set the Ptr At object.
| i | |
| j | |
| v |
Definition at line 132 of file cbTable.cpp.
References atPtrRef().
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().


| void cbVirtualTable::str | ( | ) |
Definition at line 199 of file cbTable.cpp.
References m_shape.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().

|
private |
Definition at line 773 of file cbTable.hpp.
Referenced by atPtr(), atPtrRef(), cbVirtualTable(), getData(), keyBy(), pushRow(), and resetShape().
|
private |
Definition at line 771 of file cbTable.hpp.
Referenced by cbVirtualTable(), colNameAt(), colTypeAt(), getInfo(), getInfoAt(), getRow(), keyBy(), resetShapeH(), setInfo(), setInfoAt(), and ~cbVirtualTable().
|
private |
Definition at line 770 of file cbTable.hpp.
Referenced by resetShapeH(), setInfoAt(), and ~cbVirtualTable().
|
private |
Definition at line 772 of file cbTable.hpp.
Referenced by cbVirtualTable(), getCol(), getRow(), getShape(), keyBy(), pushRow(), resetShape(), and str().
1.8.17