Albert
Loading...
Searching...
No Matches
albert::Dependency< T > Class Template Reference

#include <albert/plugindependency.h>

Inheritance diagram for albert::Dependency< T >:
[legend]

Detailed Description

template<class T>
class albert::Dependency< T >

Base class for StrongDependency and WeakDependency.

Client code should not use this class directly.

Public Member Functions

 operator T () const
 
 operator bool () const
 
const T * operator-> () const
 
T * operator-> ()
 
const T * get () const
 
T * get ()
 

Protected Member Functions

 Dependency (ExtensionRegistry &registry, const QString &id)
 

Protected Attributes

T * dependency = nullptr
 

Constructor & Destructor Documentation

◆ Dependency()

template<class T >
albert::Dependency< T >::Dependency ( ExtensionRegistry registry,
const QString &  id 
)
inlineexplicitprotected

Member Function Documentation

◆ get() [1/2]

template<class T >
T * albert::Dependency< T >::get ( )
inline

◆ get() [2/2]

template<class T >
const T * albert::Dependency< T >::get ( ) const
inline

◆ operator bool()

template<class T >
albert::Dependency< T >::operator bool ( ) const
inline

◆ operator T()

template<class T >
albert::Dependency< T >::operator T ( ) const
inline

◆ operator->() [1/2]

template<class T >
T * albert::Dependency< T >::operator-> ( )
inline

◆ operator->() [2/2]

template<class T >
const T * albert::Dependency< T >::operator-> ( ) const
inline

Member Data Documentation

◆ dependency

template<class T >
T* albert::Dependency< T >::dependency = nullptr
protected

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