|
Covalent Bond
0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
|
The shared memory of compute graph. Include 2 basic components. More...
#include <cbComputeGraph.hpp>

Public Member Functions | |
| cbGraphSharedMem ()=default | |
| Construct a new cb Graph Shared Mem object. More... | |
| cbGraphSharedMem (cbGraphSharedMem &rhs)=delete | |
| Construct a new cb Graph Shared Mem object. More... | |
| cbGraphSharedMem (const cbGraphSharedMem &rhs)=delete | |
| Construct a new cb Graph Shared Mem object. More... | |
| cbGraphSharedMem | operator= (cbGraphSharedMem &rhs)=delete |
| operator of = is deleted More... | |
| cbGraphSharedMem | operator= (const cbGraphSharedMem &rhs)=delete |
| operator of const = is deleted More... | |
| ~cbGraphSharedMem () | |
| Destroy the cb Graph Shared Mem object. More... | |
| void | push (cbVirtualSharedTable *v) |
| Push a virtual shared table to mem of graph. More... | |
| void | push (cbMySQLCell *v) |
| Push a Sql Cell to mem of graph. More... | |
| void | push (cbMySQLField *v) |
| Push a Sql field to mem of graph. More... | |
| void | setOutStruct (const cbShape< 2 > &shape, cbMySQLField **info) |
| Set the Out Struct object. More... | |
| size_t | getMemUsed () |
| Get the Mem Used object. More... | |
| int32_t | getCellNum () |
| Get the Cell Num object. More... | |
| cbOutputTableStruct * | getOutStruct () |
| Get the Out Struct object. More... | |
| void | clear () |
Private Attributes | |
| cbOutputTableStruct * | m_outStruct = nullptr |
| std::vector< cbVirtualSharedTable * > | m_dataFromDevice |
| std::vector< cbMySQLCell * > | m_dataPool |
| std::vector< cbMySQLField * > | m_fields |
The shared memory of compute graph. Include 2 basic components.
Definition at line 63 of file cbComputeGraph.hpp.
|
default |
Construct a new cb Graph Shared Mem object.
|
delete |
Construct a new cb Graph Shared Mem object.
| rhs | deleted |
|
delete |
Construct a new cb Graph Shared Mem object.
| rhs |
| cb::graph::cbGraphSharedMem::~cbGraphSharedMem | ( | ) |
Destroy the cb Graph Shared Mem object.
Definition at line 7 of file cbComputeGraph.cpp.
References m_dataFromDevice, and m_dataPool.
| void cb::graph::cbGraphSharedMem::clear | ( | ) |
Definition at line 46 of file cbComputeGraph.cpp.
References m_dataFromDevice, m_dataPool, and m_fields.
Referenced by cb::graph::cbComputeGraph::generateGraphTask().

| int32_t cb::graph::cbGraphSharedMem::getCellNum | ( | ) |
Get the Cell Num object.
Definition at line 35 of file cbComputeGraph.cpp.
References m_dataFromDevice, and m_dataPool.
| size_t cb::graph::cbGraphSharedMem::getMemUsed | ( | ) |
Get the Mem Used object.
Definition at line 26 of file cbComputeGraph.cpp.
References m_dataFromDevice, and m_dataPool.
| cbOutputTableStruct * cb::graph::cbGraphSharedMem::getOutStruct | ( | ) |
Get the Out Struct object.
Definition at line 44 of file cbComputeGraph.cpp.
References m_outStruct.
Referenced by cb::graph::cbComputeGraph::generateGraphTask(), and cb::graph::cbComputeGraph::getOutput().

|
delete |
|
delete |
| void cb::graph::cbGraphSharedMem::push | ( | cbMySQLCell * | v | ) |
Push a Sql Cell to mem of graph.
| v |
Definition at line 14 of file cbComputeGraph.cpp.
References m_dataPool.
| void cb::graph::cbGraphSharedMem::push | ( | cbMySQLField * | v | ) |
Push a Sql field to mem of graph.
| v |
Definition at line 16 of file cbComputeGraph.cpp.
References m_fields.
| void cb::graph::cbGraphSharedMem::push | ( | cbVirtualSharedTable * | v | ) |
Push a virtual shared table to mem of graph.
| v |
Definition at line 12 of file cbComputeGraph.cpp.
References m_dataFromDevice.
Referenced by cb::graph::cbComputeGraph::createCell(), and cb::graph::cbVirtualDeviceNode::generateTask().

| void cb::graph::cbGraphSharedMem::setOutStruct | ( | const cbShape< 2 > & | shape, |
| cbMySQLField ** | info | ||
| ) |
Set the Out Struct object.
| shape | the shape of output virtual table. |
| info | the ptr-ptr of sql field |
Definition at line 18 of file cbComputeGraph.cpp.
References m_outStruct, and cbOutputTableStruct::update().
Referenced by cb::graph::cbVirtualDeviceNode::generateTask().


|
private |
Definition at line 161 of file cbComputeGraph.hpp.
Referenced by clear(), getCellNum(), getMemUsed(), push(), and ~cbGraphSharedMem().
|
private |
Definition at line 162 of file cbComputeGraph.hpp.
Referenced by clear(), getCellNum(), getMemUsed(), push(), and ~cbGraphSharedMem().
|
private |
Definition at line 163 of file cbComputeGraph.hpp.
|
private |
Definition at line 160 of file cbComputeGraph.hpp.
Referenced by getOutStruct(), and setOutStruct().
1.8.17