MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::ClosedCollector< M > Class Template Reference

Transitively collects all closed mutables (Def::is_closed) in a World. More...

#include <mim/phase/phase.h>

Inheritance diagram for mim::ClosedCollector< M >:
[legend]

Public Member Functions

 ClosedCollector (World &world)
 
virtual void visit (M *mut)
 
- Public Member Functions inherited from mim::ClosedMutPhase< Def >
 ClosedMutPhase (World &world, std::string_view name, bool dirty, bool elide_empty)
 
void start () override
 Actual entry.
 
- Public Member Functions inherited from mim::Phase
 Phase (World &world, std::string_view name, bool dirty)
 
virtual ~Phase ()=default
 
Worldworld ()
 
std::string_view name () const
 
bool is_dirty () const
 
virtual void run ()
 Entry point and generates some debug output; invokes Phase::start.
 

Static Public Member Functions

static Vector< M * > collect (World &world)
 Wrapper to directly receive all closed mutables as Vector.
 
- Static Public Member Functions inherited from mim::Phase
template<class P , class... Args>
static void run (Args &&... args)
 Runs a single Phase.
 

Public Attributes

Vector< M * > muts
 

Additional Inherited Members

- Protected Member Functions inherited from mim::ClosedMutPhase< Def >
virtual void visit (Def *)=0
 
Defroot () const
 
- Protected Member Functions inherited from mim::Phase
void set_name (std::string name)
 

Detailed Description

template<class M = Def>
class mim::ClosedCollector< M >

Transitively collects all closed mutables (Def::is_closed) in a World.

Definition at line 180 of file phase.h.

Constructor & Destructor Documentation

◆ ClosedCollector()

template<class M = Def>
mim::ClosedCollector< M >::ClosedCollector ( World & world)
inline

Definition at line 182 of file phase.h.

Member Function Documentation

◆ collect()

template<class M = Def>
static Vector< M * > mim::ClosedCollector< M >::collect ( World & world)
inlinestatic

Wrapper to directly receive all closed mutables as Vector.

Definition at line 188 of file phase.h.

References mim::ClosedCollector< M >::muts, mim::Phase::run(), and mim::Phase::world().

◆ visit()

template<class M = Def>
virtual void mim::ClosedCollector< M >::visit ( M * mut)
inlinevirtual

Definition at line 185 of file phase.h.

References mim::ClosedCollector< M >::muts.

Member Data Documentation

◆ muts

template<class M = Def>
Vector<M*> mim::ClosedCollector< M >::muts

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