camcom 1.0.0-pre2
 
Loading...
Searching...
No Matches
camcom::genicam::GObjectGuard< T > Class Template Reference

#include <aravis_raii.hpp>

Public Member Functions

 GObjectGuard ()=default
 
 GObjectGuard (T *p)
 
 ~GObjectGuard ()
 
 GObjectGuard (const GObjectGuard &)=delete
 
GObjectGuardoperator= (const GObjectGuard &)=delete
 
 GObjectGuard (GObjectGuard &&o) noexcept
 
GObjectGuardoperator= (GObjectGuard &&o) noexcept
 
T * get () const
 
T * release ()
 
void reset (T *p=nullptr)
 
 operator bool () const
 

Detailed Description

template<typename T>
class camcom::genicam::GObjectGuard< T >

RAII wrapper for GObject-derived types (g_object_unref on destruction). Works with ArvDevice, ArvStream, ArvBuffer, GInetAddress, etc.

Constructor & Destructor Documentation

◆ GObjectGuard() [1/4]

template<typename T>
camcom::genicam::GObjectGuard< T >::GObjectGuard ( )
default

◆ GObjectGuard() [2/4]

template<typename T>
camcom::genicam::GObjectGuard< T >::GObjectGuard ( T * p)
inlineexplicit

◆ ~GObjectGuard()

template<typename T>
camcom::genicam::GObjectGuard< T >::~GObjectGuard ( )

◆ GObjectGuard() [3/4]

template<typename T>
camcom::genicam::GObjectGuard< T >::GObjectGuard ( const GObjectGuard< T > & )
delete

◆ GObjectGuard() [4/4]

template<typename T>
camcom::genicam::GObjectGuard< T >::GObjectGuard ( GObjectGuard< T > && o)
inlinenoexcept

Member Function Documentation

◆ get()

template<typename T>
T * camcom::genicam::GObjectGuard< T >::get ( ) const
inline

◆ operator bool()

template<typename T>
camcom::genicam::GObjectGuard< T >::operator bool ( ) const
inlineexplicit

◆ operator=() [1/2]

template<typename T>
GObjectGuard & camcom::genicam::GObjectGuard< T >::operator= ( const GObjectGuard< T > & )
delete

◆ operator=() [2/2]

template<typename T>
GObjectGuard & camcom::genicam::GObjectGuard< T >::operator= ( GObjectGuard< T > && o)
inlinenoexcept

◆ release()

template<typename T>
T * camcom::genicam::GObjectGuard< T >::release ( )
inline

◆ reset()

template<typename T>
void camcom::genicam::GObjectGuard< T >::reset ( T * p = nullptr)

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