mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
chore(ref): clean up includes
This commit is contained in:
parent
f395a2dc9d
commit
2c03a4a5df
4 changed files with 17 additions and 10 deletions
|
|
@ -2,5 +2,6 @@
|
||||||
#define COMMON_REF_HPP
|
#define COMMON_REF_HPP
|
||||||
|
|
||||||
#include "common/ref/TRefCnt.hpp"
|
#include "common/ref/TRefCnt.hpp"
|
||||||
|
#include "common/ref/TRefCntPtr.hpp"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef COMMON_T_REF_CNT_HPP
|
#ifndef COMMON_REF_T_REF_CNT_HPP
|
||||||
#define COMMON_T_REF_CNT_HPP
|
#define COMMON_REF_T_REF_CNT_HPP
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
|
@ -9,11 +9,4 @@ class TRefCnt {
|
||||||
uint32_t m_refcnt;
|
uint32_t m_refcnt;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
|
||||||
class TRefCntPtr {
|
|
||||||
public:
|
|
||||||
// Member variables
|
|
||||||
T* m_ptr;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
13
common/ref/TRefCntPtr.hpp
Normal file
13
common/ref/TRefCntPtr.hpp
Normal 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
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef COMMON_STRING_RC_STRING_HPP
|
#ifndef COMMON_STRING_RC_STRING_HPP
|
||||||
#define COMMON_STRING_RC_STRING_HPP
|
#define COMMON_STRING_RC_STRING_HPP
|
||||||
|
|
||||||
#include "common/ref/TRefCnt.hpp"
|
#include "common/Ref.hpp"
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
class RCString : public TRefCnt {
|
class RCString : public TRefCnt {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue