chore(ref): clean up includes

This commit is contained in:
fallenoak 2022-12-28 08:56:54 -06:00
parent f395a2dc9d
commit 2c03a4a5df
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
4 changed files with 17 additions and 10 deletions

View file

@ -2,5 +2,6 @@
#define COMMON_REF_HPP
#include "common/ref/TRefCnt.hpp"
#include "common/ref/TRefCntPtr.hpp"
#endif

View file

@ -1,5 +1,5 @@
#ifndef COMMON_T_REF_CNT_HPP
#define COMMON_T_REF_CNT_HPP
#ifndef COMMON_REF_T_REF_CNT_HPP
#define COMMON_REF_T_REF_CNT_HPP
#include <cstdint>
@ -9,11 +9,4 @@ class TRefCnt {
uint32_t m_refcnt;
};
template <class T>
class TRefCntPtr {
public:
// Member variables
T* m_ptr;
};
#endif

13
common/ref/TRefCntPtr.hpp Normal file
View file

@ -0,0 +1,13 @@
#ifndef COMMON_REF_T_REF_CNT_PTR_HPP
#define COMMON_REF_T_REF_CNT_PTR_HPP
#include <cstdint>
template <class T>
class TRefCntPtr {
public:
// Member variables
T* m_ptr;
};
#endif

View file

@ -1,7 +1,7 @@
#ifndef COMMON_STRING_RC_STRING_HPP
#define COMMON_STRING_RC_STRING_HPP
#include "common/ref/TRefCnt.hpp"
#include "common/Ref.hpp"
#include <cstdlib>
class RCString : public TRefCnt {