mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-19 19:27:52 -05:00
17 lines
354 B
C++
17 lines
354 B
C++
#include "ObjContainerReferenceable.h"
|
|
|
|
void ObjContainerReferenceable::AddReference(void* referencer)
|
|
{
|
|
m_references.insert(referencer);
|
|
}
|
|
|
|
bool ObjContainerReferenceable::RemoveReference(void* referencer)
|
|
{
|
|
return m_references.erase(referencer) > 0;
|
|
}
|
|
|
|
bool ObjContainerReferenceable::IsReferenced() const
|
|
{
|
|
return !m_references.empty();
|
|
}
|