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

Smart pointer that owns a GObject. More...

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

Public Member Functions

void reset ()
 resets pointer.
 
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::gptr< T >

Smart pointer that owns a GObject.

GObject for details on automatic memory management.


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