Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Util::StaticHolder< T, Deps > Class Template Reference

#include <statics.h>

Inheritance diagram for Inkscape::Util::StaticHolder< T, Deps >:
Inkscape::Util::DependencyRegisterer< Deps > Inkscape::Util::StaticHolderBase

Classes

struct  ConstructibleT
 

Public Member Functions

template<typename... Args>
T & get (Args &&... args)
 

Protected Member Functions

void destroy () override
 
bool active () const override
 

Private Attributes

std::optional< ConstructibleTopt
 

Additional Inherited Members

- Private Member Functions inherited from Inkscape::Util::StaticHolderBase
 StaticHolderBase (StaticHolderBase const &)=delete
 
StaticHolderBaseoperator= (StaticHolderBase const &)=delete
 
 StaticHolderBase ()
 

Detailed Description

template<typename T, typename Deps = Depends<>>
class Inkscape::Util::StaticHolder< T, Deps >

Definition at line 111 of file statics.h.

Member Function Documentation

◆ active()

template<typename T , typename Deps = Depends<>>
bool Inkscape::Util::StaticHolder< T, Deps >::active ( ) const
inlineoverrideprotectedvirtual

◆ destroy()

template<typename T , typename Deps = Depends<>>
void Inkscape::Util::StaticHolder< T, Deps >::destroy ( )
inlineoverrideprotectedvirtual

◆ get()

template<typename T , typename Deps = Depends<>>
template<typename... Args>
T & Inkscape::Util::StaticHolder< T, Deps >::get ( Args &&...  args)
inline

Definition at line 117 of file statics.h.

References Inkscape::Util::StaticHolder< T, Deps >::opt.

Member Data Documentation

◆ opt

template<typename T , typename Deps = Depends<>>
std::optional<ConstructibleT> Inkscape::Util::StaticHolder< T, Deps >::opt
private

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