#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Lazy.hpp>
Public Types | |
| using | Factory = std::function<T*()> |
Public Member Functions | |
| Lazy (std::string name, int order, Factory make) | |
| ~Lazy () override | |
| Lazy (const Lazy &)=delete | |
| Lazy & | operator= (const Lazy &)=delete |
| T * | get () const |
| T * | ensure () |
| void | when_built (std::function< void(T &)> fn) |
| const std::string & | name () const override |
| bool | built () const override |
| bool | pending () const override |
| int | prebuild_order () const override |
| bool | build_step () override |
Static Protected Member Functions | |
| static void | log_null_factory (const std::string &name) |
Private Member Functions | |
| bool | steps_remain () const |
| void | step () |
Static Private Member Functions | |
| static constexpr bool | registered () |
| static constexpr bool | staged () |
Private Attributes | |
| std::string | m_name |
| int | m_order |
| Factory | m_make |
| T * | m_object { nullptr } |
| std::atomic< bool > | m_complete { false } |
| bool | m_building { false } |
| bool | m_failed { false } |
| std::vector< std::function< void(T &)> > | m_deferred |
| using Slic3r::GUI::Lazy< T >::Factory = std::function<T*()> |
|
inline |
References m_make, m_name, m_order, name(), registered(), and Slic3r::GUI::LazyInstance< Self >::s_lazy.
Referenced by Lazy(), and operator=().
|
inlineoverride |
References registered(), and Slic3r::GUI::LazyInstance< Self >::s_lazy.
|
delete |
|
inlineoverridevirtual |
Implements Slic3r::GUI::LazyBase.
References built(), Slic3r::GUI::LazyBase::log_null_factory(), m_building, m_complete, m_deferred, m_failed, m_make, m_name, m_object, step(), and steps_remain().
Referenced by ensure().
|
inlineoverridevirtual |
Implements Slic3r::GUI::LazyBase.
References m_complete.
Referenced by build_step(), ensure(), get(), pending(), and when_built().
|
inline |
References build_step(), built(), get(), m_building, and Slic3r::GUI::LazyBase::OnDemandBuild::unit().
|
inline |
|
staticprotectedinherited |
References name().
Referenced by Slic3r::GUI::Lazy< T >::build_step().
|
inlineoverridevirtual |
Implements Slic3r::GUI::LazyBase.
References m_name.
Referenced by Lazy().
|
delete |
|
inlineoverridevirtual |
Reimplemented from Slic3r::GUI::LazyBase.
Reimplemented in Slic3r::GUI::LazyPage< Panel >, Slic3r::GUI::LazyPage< Slic3r::GUI::CalibrationPanel >, Slic3r::GUI::LazyPage< Slic3r::GUI::MonitorPanel >, Slic3r::GUI::LazyPage< Slic3r::GUI::MultiMachinePage >, Slic3r::GUI::LazyPage< Slic3r::GUI::PrinterWebView >, Slic3r::GUI::LazyPage< Slic3r::GUI::ProjectPanel >, Slic3r::GUI::LazyPage< Slic3r::GUI::WebViewPanel >, and Slic3r::GUI::LazyPage< Slic3r::PluginPage >.
References built(), and m_failed.
Referenced by Slic3r::GUI::LazyPage< Panel >::pending().
|
inlineoverridevirtual |
|
inlinestaticconstexprprivate |
|
inlinestaticconstexprprivate |
|
inlineprivate |
References m_object, and staged().
Referenced by build_step().
|
inlineprivate |
References m_object, and staged().
Referenced by build_step().
|
inline |
|
private |
Referenced by build_step(), and ensure().
|
private |
Referenced by build_step(), and built().
|
private |
Referenced by build_step(), and when_built().
|
private |
Referenced by build_step(), and pending().
|
private |
Referenced by Lazy(), and build_step().
|
private |
Referenced by Lazy(), build_step(), and name().
|
private |
Referenced by build_step(), get(), step(), steps_remain(), and when_built().
|
private |
Referenced by Lazy(), and prebuild_order().