prime/include/rstl/rc_ptr.hpp
Luke Street eb6819f1fd Continue work on CActor::UpdateAnimation; lots of headers n stuff
Former-commit-id: 85284f76408b91c78134fb192c8d3ac5cc685f99
2022-08-14 14:38:41 -04:00

31 lines
457 B
C++

#ifndef _RSTL_RC_PTR_HPP
#define _RSTL_RC_PTR_HPP
#include "types.h"
template < typename T >
class CRefData {
public:
T* x0_ptr;
unsigned int x4_refCount;
};
namespace rstl {
template < typename T >
class rc_ptr {
CRefData< T >* x0_refData;
public:
~rc_ptr();
T* get() { return x0_refData->x0_ptr; }
T* operator->() { return get(); }
};
template < typename T >
class ncrc_ptr : public rc_ptr< T > {
// TODO
};
} // namespace rstl
#endif