OmniSciDB  a987f07e93
 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 242 of file FromTableReordering.cpp.

Constructor & Destructor Documentation

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

Definition at line 244 of file FromTableReordering.cpp.

244 : 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 247 of file FromTableReordering.cpp.

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

247 { 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 257 of file FromTableReordering.cpp.

257  {
258  std::unordered_set<node_t> roots;
259  for (node_t candidate = 0; candidate < inbound_.size(); ++candidate) {
260  if (inbound_[candidate].empty()) {
261  roots.insert(candidate);
262  }
263  }
264  return roots;
265  }
void anonymous_namespace{FromTableReordering.cpp}::SchedulingDependencyTracking::removeNode ( const node_t  from)
inline

Definition at line 250 of file FromTableReordering.cpp.

250  {
251  for (auto& inbound_for_node : inbound_) {
252  inbound_for_node.erase(from);
253  }
254  }

Member Data Documentation

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

Definition at line 268 of file FromTableReordering.cpp.


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