OpenM++ runtime library (libopenm)
|
sub-value run state for all modeling threads, identified by (run id, sub-value id) pair More...
#include <modelRunState.h>
Public Member Functions | |
tuple< bool, RunState > | get (int i_runId, int i_subId) |
find sub-value run state, return false and empty sub-value run state if not exist | |
void | add (int i_runId, int i_subId) |
add new or replace existing sub-value run state | |
void | add (int i_runId, int i_subId, RunState i_state) |
add new or replace existing sub-value run state | |
ModelStatus | updateStatus (int i_runId, int i_subId, ModelStatus i_status, bool i_isFinalUpdate=true) |
update sub-value status if not already set as one of final status values, return actual status or undefined if not found | |
bool | updateProgress (int i_runId, int i_subId, int i_count, double i_value) |
set modeling progress count and value, return false if not exist | |
const map< pair< int, int >, RunState > | saveUpdated (bool i_isNow=false) |
return updated sub-values run state since previous call. More... | |
IRowBaseVec | saveToRowVector (int i_runId) |
copy updated run states into output vector of (run id, sub-value id, run state), last element is process run state | |
const RunState | fromRowVector (const IRowBaseVec &i_src) |
append or replace existing run states from received vector of (run id, sub-value id, run state) and return child process state | |
sub-value run state for all modeling threads, identified by (run id, sub-value id) pair
const map< pair< int, int >, RunState > RunStateHolder::saveUpdated | ( | bool | i_isNow = false | ) |
return updated sub-values run state since previous call.
it return non empty results not more often than OM_STATE_SAVE_TIME unless i_isNow is true.