Jopnal Engine  alpha 0.4
Simple Component Based 2D/3D Game Engine
Public Member Functions | Protected Member Functions | Friends | List of all members
jop::SafeReferenceable< T > Class Template Reference

#include <SafeReferenceable.hpp>

Public Member Functions

WeakReference< T > getReference () const
 Get a weak reference to the bound object. More...
 

Protected Member Functions

 SafeReferenceable (T *ref)
 Constructor. More...
 
 SafeReferenceable (SafeReferenceable< T > &&other)
 Move constructor. More...
 
SafeReferenceableoperator= (SafeReferenceable< T > &&other)
 Move assignment operator. More...
 
 ~SafeReferenceable ()
 Protected destructor. More...
 

Friends

class WeakReference< T >
 

Detailed Description

template<typename T>
class jop::SafeReferenceable< T >

Definition at line 36 of file SafeReferenceable.hpp.

Constructor & Destructor Documentation

template<typename T>
jop::SafeReferenceable< T >::SafeReferenceable ( T *  ref)
protected

Constructor.

Parameters
refPointer to the object to bind
template<typename T>
jop::SafeReferenceable< T >::SafeReferenceable ( SafeReferenceable< T > &&  other)
protected

Move constructor.

Parameters
otherThe object to move
template<typename T>
jop::SafeReferenceable< T >::~SafeReferenceable ( )
protected

Protected destructor.

Member Function Documentation

template<typename T>
WeakReference<T> jop::SafeReferenceable< T >::getReference ( ) const

Get a weak reference to the bound object.

Returns
New weak reference to the bound object
template<typename T>
SafeReferenceable& jop::SafeReferenceable< T >::operator= ( SafeReferenceable< T > &&  other)
protected

Move assignment operator.

Parameters
otherThe object to move

Friends And Related Function Documentation

template<typename T>
friend class WeakReference< T >
friend

Definition at line 69 of file SafeReferenceable.hpp.


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