Buffer for SimulationInputs.
More...
◆ Buffer()
Creates a new Buffer.
- Parameters
-
cfg | Network project configuration. |
◆ Add()
Adds an input to the buffer.
- Parameters
-
input | Input to add. |
insertTime | Insert time for input . |
- Returns
- Whether the input was added.
◆ Clear()
◆ Contains()
bool Contains |
( |
Tick |
tick | ) |
|
Whether the buffer contains an input for tick .
- Parameters
-
- Returns
- Whether the buffer contains an input for tick .
◆ CopySortedTo()
Copies the buffer to an array and sorts it.
- Parameters
-
- Returns
- Number of elements copied.
◆ Get()
Gets the input for tick .
- Parameters
-
tick | Tick to get input for. |
- Returns
- Input for tick .
◆ GetInsertTime()
double? GetInsertTime |
( |
Tick |
tick | ) |
|
Gets the insert time for tick .
- Parameters
-
tick | Tick to get insert time for. |
- Returns
- Insert time for tick .
◆ GetLastUsedInputHeader()
Retrieves the last used input header data.
- Returns
- The last used input header data.
◆ Remove()
Removes an input for tick from the buffer.
- Parameters
-
tick | Tick to remove. |
removed | Removed input. |
- Returns
- Whether an input was removed.
◆ Count
Number of inputs in the buffer.
◆ Full
Whether the buffer is full.