OmniSciDB  a5dc49c757
 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 320 of file FromTableReordering.cpp.

Constructor & Destructor Documentation

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

Definition at line 322 of file FromTableReordering.cpp.

322 : 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 325 of file FromTableReordering.cpp.

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

325 { 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 335 of file FromTableReordering.cpp.

335  {
336  std::unordered_set<node_t> roots;
337  for (node_t candidate = 0; candidate < inbound_.size(); ++candidate) {
338  if (inbound_[candidate].empty()) {
339  roots.insert(candidate);
340  }
341  }
342  return roots;
343  }
void anonymous_namespace{FromTableReordering.cpp}::SchedulingDependencyTracking::removeNode ( const node_t  from)
inline

Definition at line 328 of file FromTableReordering.cpp.

328  {
329  for (auto& inbound_for_node : inbound_) {
330  inbound_for_node.erase(from);
331  }
332  }

Member Data Documentation

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

Definition at line 346 of file FromTableReordering.cpp.


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