Covalent Bond  0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
Classes | Namespaces | Typedefs | Enumerations
cbComputeGraph.hpp File Reference

The compute graph(DAG), a prepared graph for task flow to execute. It works as a state machine. More...

#include <workflow/WFGraphTask.h>
#include <workflow/WFFacilities.h>
#include <workflow/WFTaskFactory.h>
#include "luaEngine.hpp"
#include "cbOperator.hpp"
#include "trivial/cbVirtualDevice.hpp"
Include dependency graph for cbComputeGraph.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cb::graph::cbGraphSharedMem
 The shared memory of compute graph. Include 2 basic components. More...
 
struct  cb::graph::cbGraphSharedLuaStack
 
struct  cb::graph::cbNode
 
struct  cb::graph::cbVirtualDeviceNode
 This node include virtual device infomation and perform the final operation of how to get the data from remote sql database. More...
 
struct  cb::graph::cbRedisCachingNode
 
struct  cb::graph::cbOperatorNode
 A operator node. Generate all go task. Then pass the output to the next node's inputs. More...
 
class  cb::graph::cbComputeGraph
 

Namespaces

 cb
 _WIN32
 
 cb::graph
 

Typedefs

typedef std::function< void(WFGraphTask *)> graph_callback
 _WIN32 More...
 

Enumerations

enum  cb::graph::nodeType : uint32_t { cb::graph::nodeType::Leaf = 1, cb::graph::nodeType::Output = 2, cb::graph::nodeType::Operator = 3 }
 The node of compute graphs has 3 types: Leaf: the input, mostly the Sql device Output: the virtual table. Operator: Combine, sort, mean, avg, etc. More...
 

Detailed Description

The compute graph(DAG), a prepared graph for task flow to execute. It works as a state machine.

Author
chenghua Wang (cheng.nosp@m.hua..nosp@m.wang..nosp@m.edu@.nosp@m.gmail.nosp@m..com)
  1. Shared memory
  2. Virtual table manager
  3. Node's inputs and outputs register.
  4. async management.
Version
0.1
Date
2022-11-03

Definition in file cbComputeGraph.hpp.

Typedef Documentation

◆ graph_callback

typedef std::function<void(WFGraphTask*)> graph_callback

_WIN32

defined(unix) && defined(clang)

Definition at line 37 of file cbComputeGraph.hpp.