Skip to content

Class muda::ComputeGraphClosure

ClassList > muda > ComputeGraphClosure

Public Functions

Type Name
auto clousure_id () const
span< const ComputeGraphDependency > deps () const
virtual void graphviz_def (std::ostream & o, const ComputeGraphGraphvizOptions & options) const
virtual void graphviz_id (std::ostream & o, const ComputeGraphGraphvizOptions & options) const
virtual void graphviz_var_usages (std::ostream & o, const ComputeGraphGraphvizOptions & options) const
auto name () const
auto type () const
const auto & var_usages () const
virtual ~ComputeGraphClosure () = default

Protected Types

Type Name
typedef std::shared_ptr< T > S

Protected Attributes

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

Protected Functions

Type Name
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)

Public Functions Documentation

function clousure_id

inline auto muda::ComputeGraphClosure::clousure_id () const

function deps

span< const ComputeGraphDependency > muda::ComputeGraphClosure::deps () const

function graphviz_def

virtual void muda::ComputeGraphClosure::graphviz_def (
    std::ostream & o,
    const ComputeGraphGraphvizOptions & options
) const

function graphviz_id

virtual void muda::ComputeGraphClosure::graphviz_id (
    std::ostream & o,
    const ComputeGraphGraphvizOptions & options
) const

function graphviz_var_usages

virtual void muda::ComputeGraphClosure::graphviz_var_usages (
    std::ostream & o,
    const ComputeGraphGraphvizOptions & options
) const

function name

inline auto muda::ComputeGraphClosure::name () const

function type

inline auto muda::ComputeGraphClosure::type () const

function var_usages

inline const auto & muda::ComputeGraphClosure::var_usages () const

function ~ComputeGraphClosure

virtual muda::ComputeGraphClosure::~ComputeGraphClosure () = default

Protected Types Documentation

typedef S

using muda::ComputeGraphClosure::S =  std::shared_ptr<T>;

Protected Attributes Documentation

variable m_access_graph_index

uint64_t muda::ComputeGraphClosure::m_access_graph_index;

variable m_closure

std::function<void()> muda::ComputeGraphClosure::m_closure;

variable m_clousure_id

ClosureId muda::ComputeGraphClosure::m_clousure_id;

variable m_deps_begin

size_t muda::ComputeGraphClosure::m_deps_begin;

variable m_deps_count

size_t muda::ComputeGraphClosure::m_deps_count;

variable m_graph

ComputeGraph* muda::ComputeGraphClosure::m_graph;

variable m_graph_nodes

std::vector<ComputeGraphNodeBase*> muda::ComputeGraphClosure::m_graph_nodes;

variable m_name

std::string muda::ComputeGraphClosure::m_name;

variable m_type

ComputeGraphNodeType muda::ComputeGraphClosure::m_type;

variable m_var_usages

std::map<VarId, ComputeGraphVarUsage> muda::ComputeGraphClosure::m_var_usages;

Protected Functions Documentation

function ComputeGraphClosure

inline muda::ComputeGraphClosure::ComputeGraphClosure (
    ComputeGraph * graph,
    ClosureId clousure_id,
    std::string_view name,
    const std::function< void()> f
) 

function operator()

inline void muda::ComputeGraphClosure::operator() () 

function set_deps_range

void muda::ComputeGraphClosure::set_deps_range (
    size_t begin,
    size_t count
) 

Friends Documentation

friend ComputeGraphAccessor

class muda::ComputeGraphClosure::ComputeGraphAccessor (
    details::ComputeGraphAccessor
) 


The documentation for this class was generated from the following file src/muda/compute_graph/compute_graph_closure.h