Gyoto
Classes | Namespaces
GyotoSmartPointer.h File Reference

Reference-counting pointers. More...

#include "GyotoUtils.h"
#include <pthread.h>
#include <GyotoError.h>
#include <stddef.h>
#include <iostream>
#include <typeinfo>
#include <string>
#include <vector>

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.
 

Detailed Description

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.

class Gyoto::Metric : public Gyoto::SmartPointee {...};
SmartPointer<Gyoto::Metric::Generic> ObjPtr (new Gyoto::Metric(...));
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:81
Access to metrics.
Definition: GyotoAstrobj.h:46