#include <LBObj.h>
Public Member Functions | |
LBObj (const LDObjHandle &_h, void *usr_ptr=NULL, bool _migratable=true, bool _asyncArrival=false) | |
~LBObj () | |
void | Clear (void) |
void | IncrementTime (LBRealType walltime, LBRealType cputime) |
void | StartTimer (void) |
void | StopTimer (LBRealType *walltime, LBRealType *cputime) |
void | getTime (LBRealType *w, LBRealType *c) |
void | setTiming (LBRealType cputime) |
LDOMHandle & | parentOM () |
const LDObjHandle & | GetLDObjHandle () const |
void | SetMigratable (bool mig) |
void | setPupSize (size_t obj_pup_size) |
void | UseAsyncMigrate (bool async) |
LDObjData & | ObjData () |
void | lastKnownLoad (LBRealType *w, LBRealType *c) |
void * | getLocalUserData () |
void * | getDBUserData (int idx) |
Private Attributes | |
void * | localUserData |
LDObjData | data |
double | startWTime |
LBRealType | lastWallTime |
double | startCTime |
LBRealType | lastCpuTime |
Friends | |
class | LBDB |
Definition at line 13 of file LBObj.h.
LBObj::LBObj | ( | const LDObjHandle & | _h, | |
void * | usr_ptr = NULL , |
|||
bool | _migratable = true , |
|||
bool | _asyncArrival = false | |||
) | [inline] |
Definition at line 18 of file LBObj.h.
References LDObjData::asyncArrival, Clear(), data, LDObjData::handle, lastCpuTime, lastWallTime, localUserData, LDObjData::migratable, startCTime, and startWTime.
void LBObj::StartTimer | ( | void | ) | [inline] |
Definition at line 43 of file LBObj.h.
References startCTime, and startWTime.
Referenced by LDCollectStatsOn(), and LDObjectStart().
void LBObj::StopTimer | ( | LBRealType * | walltime, | |
LBRealType * | cputime | |||
) | [inline] |
Definition at line 49 of file LBObj.h.
References startCTime, and startWTime.
Referenced by LDObjectStop().
void LBObj::getTime | ( | LBRealType * | w, | |
LBRealType * | c | |||
) | [inline] |
Definition at line 65 of file LBObj.h.
References LDObjData::cpuTime, data, and LDObjData::wallTime.
Referenced by LDGetObjLoad().
void LBObj::setTiming | ( | LBRealType | cputime | ) | [inline] |
Definition at line 74 of file LBObj.h.
References LDObjData::cpuTime, data, and LDObjData::wallTime.
Referenced by LBDatabase::EstObjLoad().
LDOMHandle& LBObj::parentOM | ( | ) | [inline] |
Definition at line 82 of file LBObj.h.
References data, LDObjData::handle, and LDObjHandle::omhandle.
Referenced by LBDB::MetaLBCallLBOnChares(), and LBDB::MetaLBResumeWaitingChares().
const LDObjHandle& LBObj::GetLDObjHandle | ( | ) | const [inline] |
Definition at line 83 of file LBObj.h.
References data, and LDObjData::handle.
Referenced by LDGetObjHandle(), LBDB::MetaLBCallLBOnChares(), and LBDB::MetaLBResumeWaitingChares().
void LBObj::SetMigratable | ( | bool | mig | ) | [inline] |
Definition at line 84 of file LBObj.h.
References data, and LDObjData::migratable.
Referenced by LDMigratable(), and LDNonMigratable().
void LBObj::setPupSize | ( | size_t | obj_pup_size | ) | [inline] |
Definition at line 85 of file LBObj.h.
References data, pup_encodeSize, and LDObjData::pupSize.
Referenced by LDSetPupSize().
void LBObj::UseAsyncMigrate | ( | bool | async | ) | [inline] |
Definition at line 88 of file LBObj.h.
References LDObjData::asyncArrival, and data.
Referenced by LDAsyncMigrate().
LDObjData& LBObj::ObjData | ( | ) | [inline] |
Definition at line 89 of file LBObj.h.
References data.
Referenced by LBDB::GetObjData(), and controlPointManager::gotoNextPhase().
void LBObj::lastKnownLoad | ( | LBRealType * | w, | |
LBRealType * | c | |||
) | [inline] |
Definition at line 90 of file LBObj.h.
References lastCpuTime, and lastWallTime.
Referenced by LDQueryKnownObjLoad().
void* LBObj::getLocalUserData | ( | ) | [inline] |
Definition at line 98 of file LBObj.h.
References localUserData.
Referenced by LDObjUserData().
void* LBObj::getDBUserData | ( | int | idx | ) | [inline] |
Definition at line 100 of file LBObj.h.
References data, and LDObjData::getUserData().
Referenced by LDDBObjUserData().
void* LBObj::localUserData [private] |
LDObjData LBObj::data [private] |
Definition at line 107 of file LBObj.h.
Referenced by Clear(), LBDB::ClearLoads(), getDBUserData(), GetLDObjHandle(), LBDB::GetObjData(), getTime(), IncrementTime(), LBObj(), ObjData(), parentOM(), SetMigratable(), setPupSize(), setTiming(), and UseAsyncMigrate().
double LBObj::startWTime [private] |
LBRealType LBObj::lastWallTime [private] |
Definition at line 110 of file LBObj.h.
Referenced by LBDB::ClearLoads(), lastKnownLoad(), and LBObj().
double LBObj::startCTime [private] |
LBRealType LBObj::lastCpuTime [private] |
Definition at line 113 of file LBObj.h.
Referenced by LBDB::ClearLoads(), lastKnownLoad(), and LBObj().