Files
watrbx-game-engine/App/util/Handle.cpp
T
2025-09-18 17:55:52 -04:00

31 lines
601 B
C++

#include "stdafx.h"
#include "Util/Handle.h"
#include "Util/Utilities.h"
#include "RbxAssert.h"
#include <limits>
#include "boost/lexical_cast.hpp"
#include "reflection/Object.h"
namespace RBX {
InstanceHandle::InstanceHandle(Reflection::DescribedBase* target)
:target(shared_from(target))
{
}
bool InstanceHandle::operatorLess(const InstanceHandle& other) const
{
return target < other.target;
}
bool InstanceHandle::empty() const {
return !target;
}
void InstanceHandle::linkTo(shared_ptr<Reflection::DescribedBase> target) {
this->target = target;
}
} // end namespace RBX