+ xo-alloc + xo-object + xo-alloc docs + GC utests
This commit is contained in:
parent
8970f51dbd
commit
5f46b51f12
32 changed files with 2903 additions and 82 deletions
28
include/xo/alloc/Forwarding.hpp
Normal file
28
include/xo/alloc/Forwarding.hpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* Forwarding.hpp
|
||||
*
|
||||
* author: Roland Conybeare, Jul 2025
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Object.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace gc {
|
||||
class Forwarding : public Object {
|
||||
public:
|
||||
Forwarding() = default;
|
||||
|
||||
// inherited from Object..
|
||||
#ifdef NOT_USING
|
||||
virtual bool _is_forwarded() const override final { return true; }
|
||||
#endif
|
||||
virtual Object * _destination() override final { return destination_.ptr(); }
|
||||
|
||||
private:
|
||||
gp<Object> destination_;
|
||||
};
|
||||
} /*namespace gc*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end Forwarding.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue