WPILibC++ 2024.3.2
|
C++ wrapper around a HAL simulator value handle. More...
#include <hal/SimDevice.h>
Public Member Functions | |
SimValue ()=default | |
Default constructor that results in an "empty" object that is false in a boolean context. More... | |
SimValue (HAL_SimValueHandle val) | |
Wraps a simulated value handle as returned by HAL_CreateSimValue(). More... | |
operator bool () const | |
Determine if handle is empty. More... | |
operator HAL_SimValueHandle () const | |
Get the internal device handle. More... | |
HAL_Value | GetValue () const |
Gets the simulated value. More... | |
void | SetValue (const HAL_Value &value) |
Sets the simulated value. More... | |
Protected Attributes | |
HAL_SimValueHandle | m_handle = HAL_kInvalidHandle |
C++ wrapper around a HAL simulator value handle.
|
default |
Default constructor that results in an "empty" object that is false in a boolean context.
|
inline |
Wraps a simulated value handle as returned by HAL_CreateSimValue().
val | simulated value handle |
|
inline |
Gets the simulated value.
|
inlineexplicit |
Determine if handle is empty.
Should be used to optimize out code paths that are taken/not taken in simulation.
|
inline |
Get the internal device handle.
|
inline |
Sets the simulated value.
value | the value to set |
|
protected |