OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::LazyInstance< Self > Class Template Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Lazy.hpp>

Inheritance diagram for Slic3r::GUI::LazyInstance< Self >:
Collaboration diagram for Slic3r::GUI::LazyInstance< Self >:

Static Public Member Functions

static Self * if_built ()
static Self * ensure ()
static void when_built (std::function< void(Self &)> fn)

Static Private Attributes

static Lazy< Self > * s_lazy { nullptr }

Friends

class Lazy< Self >

Detailed Description

template<class Self>
class Slic3r::GUI::LazyInstance< Self >

Member Function Documentation

◆ ensure()

template<class Self>
Self * Slic3r::GUI::LazyInstance< Self >::ensure ( )
inlinestatic
186{ return s_lazy ? s_lazy->ensure() : nullptr; }
static Lazy< Self > * s_lazy
Definition Lazy.hpp:196

References s_lazy.

◆ if_built()

template<class Self>
Self * Slic3r::GUI::LazyInstance< Self >::if_built ( )
inlinestatic
183{ return s_lazy ? s_lazy->get() : nullptr; }

References s_lazy.

◆ when_built()

template<class Self>
void Slic3r::GUI::LazyInstance< Self >::when_built ( std::function< void(Self &)> fn)
inlinestatic
189 {
190 if (s_lazy)
191 s_lazy->when_built(std::move(fn));
192 }
Definition Lazy.hpp:180

◆ Lazy< Self >

template<class Self>
friend class Lazy< Self >
friend

References s_lazy.

Member Data Documentation

◆ s_lazy

template<class Self>
Lazy<Self>* Slic3r::GUI::LazyInstance< Self >::s_lazy { nullptr }
inlinestaticprivate

The documentation for this class was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Lazy.hpp