VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
vitroio::sdk::impl::ScopedPtr< T > Class Template Reference

#include <scoped_ptr.h>

Inheritance diagram for vitroio::sdk::impl::ScopedPtr< T >:
Collaboration diagram for vitroio::sdk::impl::ScopedPtr< T >:

Public Types

typedef Callback< void(void *)> Deleter
 

Public Member Functions

 ScopedPtr (T *ptr, Deleter deleter=Deleter(NULL))
 
 ~ScopedPtr ()
 
T * get ()
 
const T * get () const
 
T * operator-> ()
 
T & operator* ()
 
 operator bool () const
 

Member Typedef Documentation

◆ Deleter

template<typename T >
typedef Callback<void(void*)> vitroio::sdk::impl::ScopedPtr< T >::Deleter

Constructor & Destructor Documentation

◆ ScopedPtr()

template<typename T >
vitroio::sdk::impl::ScopedPtr< T >::ScopedPtr ( T *  ptr,
Deleter  deleter = Deleter(NULL) 
)
inlineexplicit

◆ ~ScopedPtr()

template<typename T >
vitroio::sdk::impl::ScopedPtr< T >::~ScopedPtr ( )
inline

Member Function Documentation

◆ get() [1/2]

template<typename T >
T * vitroio::sdk::impl::ScopedPtr< T >::get ( )
inline

◆ get() [2/2]

template<typename T >
const T * vitroio::sdk::impl::ScopedPtr< T >::get ( ) const
inline

◆ operator bool()

template<typename T >
vitroio::sdk::impl::ScopedPtr< T >::operator bool ( ) const
inline

◆ operator*()

template<typename T >
T & vitroio::sdk::impl::ScopedPtr< T >::operator* ( )
inline

◆ operator->()

template<typename T >
T * vitroio::sdk::impl::ScopedPtr< T >::operator-> ( )
inline