#include <Mesh/DataStructures/statemap.h>
◆ StateMap() [1/2]
Create a state map from source to dest. States not present in both are not mapped.
◆ StateMap() [2/2]
Create a state map from source to dest. States not present in both are not mapped.
◆ copyStates()
void copyStates |
( |
const State & |
source, |
|
|
State & |
dest |
|
) |
| |
Copy all states from source to dest for which we have a mapping. Old values at the destination are overwritten. States not included in the mapping will retain the values they had before the call.
◆ getDoubles()
◆ getIntegers()
◆ getVectors()
◆ reorderStates()
void reorderStates |
( |
State & |
state, |
|
|
unsigned |
numDoubles, |
|
|
unsigned |
numIntegers |
|
) |
| |
- Parameters
-
state | The object whose states (scalar, vector and integer) should be re-ordered. |
numDoubles | The size of the doubles array in the state object. This must be the value returned from the getDoublesStateSize() function of the StateControl object to which state belongs. |
numIntegers | The size of the integers array in the state object. This must be the value returned from the getIntegerStateSize() function of the StateControl object to which state belongs. |
The re-ordering will preserve all state values (scalar, vector and integer).