OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{FromTableReordering.cpp}::SchedulingDependencyTracking Class Reference

Public Member Functions

 SchedulingDependencyTracking (const size_t node_count)
 
void addEdge (const node_t from, const node_t to)
 
void removeNode (const node_t from)
 
std::unordered_set< node_tgetRoots () const
 

Private Attributes

std::vector
< std::unordered_set< node_t > > 
inbound_
 

Detailed Description

Definition at line 134 of file FromTableReordering.cpp.

Constructor & Destructor Documentation

anonymous_namespace{FromTableReordering.cpp}::SchedulingDependencyTracking::SchedulingDependencyTracking ( const size_t  node_count)
inline

Definition at line 136 of file FromTableReordering.cpp.

136 : inbound_(node_count) {}

Member Function Documentation

void anonymous_namespace{FromTableReordering.cpp}::SchedulingDependencyTracking::addEdge ( const node_t  from,
const node_t  to 
)
inline

Definition at line 139 of file FromTableReordering.cpp.

Referenced by anonymous_namespace{FromTableReordering.cpp}::build_dependency_tracking().

139 { inbound_[to].insert(from); }

+ Here is the caller graph for this function:

std::unordered_set<node_t> anonymous_namespace{FromTableReordering.cpp}::SchedulingDependencyTracking::getRoots ( ) const
inline

Definition at line 149 of file FromTableReordering.cpp.

149  {
150  std::unordered_set<node_t> roots;
151  for (node_t candidate = 0; candidate < inbound_.size(); ++candidate) {
152  if (inbound_[candidate].empty()) {
153  roots.insert(candidate);
154  }
155  }
156  return roots;
157  }
void anonymous_namespace{FromTableReordering.cpp}::SchedulingDependencyTracking::removeNode ( const node_t  from)
inline

Definition at line 142 of file FromTableReordering.cpp.

142  {
143  for (auto& inbound_for_node : inbound_) {
144  inbound_for_node.erase(from);
145  }
146  }

Member Data Documentation

std::vector<std::unordered_set<node_t> > anonymous_namespace{FromTableReordering.cpp}::SchedulingDependencyTracking::inbound_
private

Definition at line 160 of file FromTableReordering.cpp.


The documentation for this class was generated from the following file: