61 uint32_t
Allocate(
const std::string& resourceDesc);
69 uint32_t
Allocate(uint32_t index,
const std::string& resourceDesc);
81 std::vector<bool> m_isAllocated;
The Resource class is a convenient way to track allocated resources.
Definition: Resource.h:27
void Free(uint32_t index)
Free an allocated resource.
uint32_t Allocate(uint32_t index, const std::string &resourceDesc)
Allocate a specific resource value.
virtual ~Resource()=default
Resource(uint32_t size)
Allocate storage for a new instance of Resource.
uint32_t Allocate(const std::string &resourceDesc)
Allocate a resource.
static void CreateResourceObject(std::unique_ptr< Resource > &r, uint32_t elements)
Factory method to create a Resource allocation-tracker if needed.
Definition: AprilTagPoseEstimator.h:15
::std::mutex mutex
Definition: mutex.h:17