|
| StateIndexArray (uint8_t blockSizeExponent=15) |
|
void | clear () |
|
void | reserve (uint32_t numToReserve) |
|
ProbabilityStateType * | get (StateType index) |
|
void | put (StateType index, ProbabilityStateType *probabilityState) |
|
std::vector< StateType > | getPerimeterStates () |
|
uint32_t | getNumberTerminal () |
|
◆ clear()
template<typename StateType , typename ProbabilityStateType >
◆ get()
template<typename StateType , typename ProbabilityStateType >
Gets a pointer to the ProbabilityState stored in the array. If the index does not exist, or is greater than the amount stored, returns a nullptr
- Parameters
-
- Returns
- The ProbabilityState or nullptr if does not exist
◆ getNumberTerminal()
template<typename StateType , typename ProbabilityStateType >
Gets the actual number of terminal states in the map
◆ getPerimeterStates()
template<typename StateType , typename ProbabilityStateType >
Gets a vector of all of the terminal states in the stateIndexArray
- Returns
- A vector of all perimeter states
◆ put()
template<typename StateType , typename ProbabilityStateType >
Puts a ProbabilityState in at index and if needed, expands the array to accomodate
- Parameters
-
probabilityState | The state to emplace |
◆ reserve()
template<typename StateType , typename ProbabilityStateType >
Reserves a certain number of states into the StateIndexArray
- Parameters
-
numToReserve | The minimum number to reserve |
◆ sizeToActualSize()
template<typename StateType , typename ProbabilityStateType >
Gets a size that is a multiple of blockSize
- Parameters
-
- Returns
- The next size of a multiple of blockSize
The documentation for this class was generated from the following files:
- /home/josh/Documents/Work/stamina-cplusplus/src/stamina/util/StateIndexArray.h
- /home/josh/Documents/Work/stamina-cplusplus/src/stamina/util/StateIndexArray.cpp