guit  0.1
 All Classes Functions Variables Typedefs Enumerations Friends
Public Member Functions | List of all members
guit::gprotect< T > Class Template Reference

Smart pointer that protects a GObject from autodeletion whithout owning it. More...

Inheritance diagram for guit::gprotect< T >:
guit::gptr< T >

Public Member Functions

void swap (gptr &b) noexcept
 swaps pointees.
 
unsigned int useCount () const noexcept
 returns number of references of pointee.
 
T * get () const noexcept
 returns pointee.
 
 operator T * () const noexcept
 implicit type conversion: returns pointee.
 
T * operator-> () const noexcept
 dereference: returns pointee.
 
T & operator* () const noexcept
 dereference: returns reference to pointee.
 
auto operator~ () const
 returns reference for Active Expressions (GExpr).
 
bool operator! () const noexcept
 returns false if pointee is null.
 
auto & operator++ (int) const
 increments then returns value of pointee.
 
auto & operator-- (int) const
 decrements then returns value of pointee.
 
auto & operator<< (const char *child) const
 adds Gadget or Prop to pointee.
 
template<typename C >
auto & operator<<= (C &from)
 binds pointee.
 
template<typename C >
auto & operator>> (C &to)
 create state transition.
 

Detailed Description

template<typename T>
class guit::gprotect< T >

Smart pointer that protects a GObject from autodeletion whithout owning it.

gprotect<> prevents gptr<> pointers from immediately destroying an object:


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