trikRuntime
differentOwnerPointer.h File Reference
#include <QtCore/QSharedPointer>
Include dependency graph for differentOwnerPointer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  trikKernel::DifferentOwnerPointer< T >
 Smart pointer that can hold two different kinds of pointers: where ownership belongs to someone else and where ownership belongs to this object (some mix of shared pointer and weak pointer). More...
 

Namespaces

 trikKernel
 

Functions

template<typename T >
DifferentOwnerPointer< T > trikKernel::createDifferentOwnerPointer (T &foreignObject)
 Helper function that creates DifferentOwnerPointer that does not own object. More...
 
template<typename T >
DifferentOwnerPointer< T > trikKernel::createDifferentOwnerPointer (const QSharedPointer< T > &sharedObject)
 Helper function that creates DifferentOwnerPointer that shares object. More...
 
template<typename T >
DifferentOwnerPointer< T > trikKernel::createDifferentOwnerPointer (T *const ownObject)
 Helper function that creates DifferentOwnerPointer that owns object. More...