Gyoto
|
Reference-counting pointers. More...
#include <GyotoError.h>
#include <GyotoUtils.h>
#include <stddef.h>
#include <iostream>
#include <typeinfo>
Go to the source code of this file.
Classes | |
class | Gyoto::SmartPointee |
Can be pointed to by a SmartPointer. More... | |
class | Gyoto::SmartPointer< T > |
Pointers performing reference counting. More... |
Namespaces | |
namespace | Gyoto |
Namespace for the Gyoto library. |
Reference-counting pointers.
Template class Gyoto::SmartPointer<T> performs reference counting on its pointee and makes sure the pointed to object is actually deleted when the number of references to it drops to zero. The pointed-to object must inherit from Gyoto::SmartPointee for this to work and be referenced to only by SmartPointers.