1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef REF_PTR_H
- #define REF_PTR_H
- #include "core/rid.h"
- class RefPtr {
- enum {
- DATASIZE = sizeof(void *)
- };
- mutable char data[DATASIZE];
- public:
- bool is_null() const;
- void operator=(const RefPtr &p_other);
- bool operator==(const RefPtr &p_other) const;
- RID get_rid() const;
- void unref();
- _FORCE_INLINE_ void *get_data() const { return data; }
- RefPtr(const RefPtr &p_other);
- RefPtr();
- ~RefPtr();
- };
- #endif
|