|
WPILibC++
2020.3.2
|
The LimitedClassedHandleResource class is a way to track handles. More...
#include <LimitedClassedHandleResource.h>
Public Member Functions | |
| LimitedClassedHandleResource (const LimitedClassedHandleResource &)=delete | |
| LimitedClassedHandleResource & | operator= (const LimitedClassedHandleResource &)=delete |
| THandle | Allocate (std::shared_ptr< TStruct > toSet) |
| std::shared_ptr< TStruct > | Get (THandle handle) |
| void | Free (THandle handle) |
| void | ResetHandles () override |
Public Member Functions inherited from hal::HandleBase | |
| HandleBase (const HandleBase &)=delete | |
| HandleBase & | operator= (const HandleBase &)=delete |
Friends | |
| class | LimitedClassedHandleResourceTest |
Additional Inherited Members | |
Static Public Member Functions inherited from hal::HandleBase | |
| static void | ResetGlobalHandles () |
Protected Attributes inherited from hal::HandleBase | |
| int16_t | m_version |
The LimitedClassedHandleResource class is a way to track handles.
This version allows a limited number of handles that are allocated sequentially.
| THandle | The Handle Type (Must be typedefed from HAL_Handle) |
| TStruct | The struct type held by this resource |
| size | The number of resources allowed to be allocated |
| enumValue | The type value stored in the handle |