Definition at line 22 of file FutureDAGTest.cpp.
Definition at line 25 of file FutureDAGTest.cpp.
References folly::gen::move.
26 auto node = std::make_unique<TestNode>(
this);
27 auto handle = node->handle;
constexpr detail::Map< Move > move
std::map< Handle, std::unique_ptr< TestNode > > nodes
void FutureDAGTest::checkOrder |
( |
| ) |
|
|
inline |
Definition at line 68 of file FutureDAGTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, and order.
70 for (
auto& kv :
nodes) {
71 auto handle = kv.first;
72 auto& node = kv.second;
73 auto it =
order.begin();
74 while (*it != handle) {
77 for (
auto dep : node->dependencies) {
#define EXPECT_EQ(val1, val2)
std::vector< Handle > order
#define EXPECT_TRUE(condition)
std::map< Handle, std::unique_ptr< TestNode > > nodes
Definition at line 63 of file FutureDAGTest.cpp.
64 nodes.at(
b)->dependencies.insert(
a);
65 dag->dependency(
a,
b);
const std::shared_ptr< FutureDAG > dag
std::map< Handle, std::unique_ptr< TestNode > > nodes
void FutureDAGTest::remove |
( |
Handle |
a | ) |
|
|
inline |
Definition at line 55 of file FutureDAGTest.cpp.
References a.
56 for (
auto& node :
nodes) {
57 node.second->dependencies.erase(
a);
const std::shared_ptr< FutureDAG > dag
std::map< Handle, std::unique_ptr< TestNode > > nodes
void FutureDAGTest::reset |
( |
| ) |
|
|
inline |
Definition at line 32 of file FutureDAGTest.cpp.
34 std::unordered_set<Handle> memo;
35 for (
auto& node :
nodes) {
36 for (
Handle handle : node.second->dependencies) {
40 for (
auto& node : nodes) {
41 if (memo.find(node.first) == memo.end()) {
42 source_node = node.first;
45 for (
auto it = nodes.cbegin(); it != nodes.cend();) {
46 if (it->first != source_node) {
const std::shared_ptr< FutureDAG > dag
std::map< Handle, std::unique_ptr< TestNode > > nodes
const std::shared_ptr<FutureDAG> FutureDAGTest::dag = FutureDAG::create() |
std::vector<Handle> FutureDAGTest::order |
The documentation for this struct was generated from the following file: