MUDA
Loading...
Searching...
No Matches
muda::ComputeGraphClosure Class Reference

Public Member Functions

auto clousure_id () const
 
auto type () const
 
auto name () const
 
const auto & var_usages () const
 
span< const ComputeGraphDependencydeps () const
 
virtual void graphviz_id (std::ostream &o, const ComputeGraphGraphvizOptions &options) const
 
virtual void graphviz_def (std::ostream &o, const ComputeGraphGraphvizOptions &options) const
 
virtual void graphviz_var_usages (std::ostream &o, const ComputeGraphGraphvizOptions &options) const
 

Protected Types

template<typename T >
using S = std::shared_ptr< T >
 

Protected Member Functions

 ComputeGraphClosure (ComputeGraph *graph, ClosureId clousure_id, std::string_view name, const std::function< void()> f)
 
void operator() ()
 
void set_deps_range (size_t begin, size_t count)
 

Protected Attributes

std::function< void()> m_closure
 
std::map< VarId, ComputeGraphVarUsage > m_var_usages
 
ClosureId m_clousure_id
 
uint64_t m_access_graph_index
 
ComputeGraphm_graph
 
std::string m_name
 
ComputeGraphNodeType m_type
 
size_t m_deps_begin = 0
 
size_t m_deps_count = 0
 
std::vector< ComputeGraphNodeBase * > m_graph_nodes
 

Friends

class details::ComputeGraphAccessor
 
class ComputeGraph
 
class ComputeGraphVarBase
 

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