Smart pointer that protects a GObject from autodeletion whithout owning it. More...
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. | |
Smart pointer that protects a GObject from autodeletion whithout owning it.
gprotect<> prevents gptr<> pointers from immediately destroying an object: