clan::UserDataOwner Class Reference

Helper class to store any shared_ptr as user data on an object. More...

#include <userdata.h>

Public Member Functions

 UserDataOwner ()
 
 ~UserDataOwner ()
 
template<typename T >
std::shared_ptr< T > get_data ()
 
template<typename T >
void set_data (const std::shared_ptr< T > &data)
 

Detailed Description

Helper class to store any shared_ptr as user data on an object.

Constructor & Destructor Documentation

clan::UserDataOwner::UserDataOwner ( )
inline
clan::UserDataOwner::~UserDataOwner ( )
inline

Member Function Documentation

template<typename T >
std::shared_ptr<T> clan::UserDataOwner::get_data ( )
inline
template<typename T >
void clan::UserDataOwner::set_data ( const std::shared_ptr< T > &  data)
inline

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