Go to the source code of this file.
|
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_createSimulationDatabase (const ConfigHandle config, DatabaseHandle *dbHandle) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_destroySimulationDatabase (DatabaseHandle db) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_viewManager (DatabaseHandle db, ViewManagerHandle *viewManagerHandle) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_eventManager (DatabaseHandle db, EventManagerHandle *eventManagerHandle) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_controlManager (DatabaseHandle db, ControlManagerHandle *controlManagerHandle) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_reserve (DatabaseHandle db, AttributeSetId setType, UInt32 count) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_capacity (DatabaseHandle db, AttributeSetId setType, UInt32 *count) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_beginFrame (DatabaseHandle db, double simTime) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_endFrame (DatabaseHandle db) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_inFrame (DatabaseHandle db, LEG_Bool *inFrame) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_simTime (DatabaseHandle db, double *simTime) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_currentFrame (DatabaseHandle db, UInt64 *frameCount) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_clientId (DatabaseHandle db, UInt32 *clientId) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_setClientId (DatabaseHandle db, UInt32 clientId) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_addBeginFrameCallback (DatabaseHandle db, C_BeginFrameCallback func, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_addEndFrameCallback (DatabaseHandle db, C_EndFrameCallback func, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_removeBeginFrameCallback (DatabaseHandle db, C_BeginFrameCallback func, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_removeEndFrameCallback (DatabaseHandle db, C_EndFrameCallback func, void *usr) |
| |
| LEGIONRUNTIME_DLL AttributeSetId | legion_db_registerAttributeSet (DatabaseHandle db, const LEG_AttributeSetDescriptor *setDesc) |
| |
| LEGIONRUNTIME_DLL AttributeSetId | legion_db_findAttributeSetId (DatabaseHandle db, const char *setName) |
| |
| LEGIONRUNTIME_DLL AttributeId | legion_db_registerAttribute (DatabaseHandle db, AttributeSetId setId, const LEG_AttributeDescriptor *set) |
| |
| LEGIONRUNTIME_DLL AttributeIndex | legion_db_findAttributeIndexByName (DatabaseHandle db, AttributeSetId setId, const char *attributeName) |
| |
| LEGIONRUNTIME_DLL AttributeIndex | legion_db_findAttributeIndexById (DatabaseHandle db, AttributeSetId setId, UInt32 attrId) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_createInstance (DatabaseHandle db, AttributeSetId setId, InstanceHandle *handle) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_db_destroyInstance (DatabaseHandle db, InstanceHandle inst) |
| |
| LEGIONRUNTIME_DLL UInt32 | legion_db_setTypeForInstance (InstanceHandle inst) |
| |
| LEGIONRUNTIME_DLL GlobalId | legion_db_getGlobalId (InstanceHandle inst) |
| |
| LEGIONRUNTIME_DLL ClientId | legion_db_getClientId (InstanceHandle inst) |
| |
| LEGIONRUNTIME_DLL UInt32 | legion_db_isValid (InstanceHandle inst) |
| |
| LEGIONRUNTIME_DLL UInt64 | legion_db_getInstanceId (DatabaseHandle db, GlobalId globalId) |
| |
| typedef void(* C_BeginFrameCallback)(void *usr, double simTime) |
Begin frame callback function
| typedef void(* C_EndFrameCallback)(void *usr) |
End frame callback function
Add and register a callback function to get invoked by database at DB begin frame
- Parameters
-
| [in] | db | The database handle |
| [in] | func | A callback fuction to be registered |
| [in] | usr | User data passed to the callback function |
- See Also
- C_BeginFrameCallback
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Add and register a callback function to get invoked by database at DB end frame
- Parameters
-
| [in] | db | The database handle |
| [in] | func | A callback fuction to be registered |
| [in] | usr | User data passed to the callback function |
- See Also
- C_EndFrameCallback
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Legion database begin frame call, one of the most impartant function
- Parameters
-
| [in] | db | The database handle |
| [in] | simTime | The simulation time |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Reserve database for attribute set
- Parameters
-
| [in] | db | The database handle |
| [in] | setType | An unique identifier of attributeSet |
| [out] | count | Return the capacity reserved for this type of attributeSet |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get client id
- Parameters
-
| [in] | db | The database handle |
| [out] | clientId | Return client identifier |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get control manager
- Parameters
-
| [in] | db | The database handle |
| [out] | controlManagerHandle | Return control manager handle |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Create an instance of attributeSet
- Parameters
-
| [in] | db | The database handle |
| [in] | setId | The attributeSet identifier |
| [out] | handle | Return the instance handle of newly created attributeSet instance |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Referenced by Legion::SimulationDatabase::createInstance().
Create simulation database
- Parameters
-
| [in] | config | The configuration handle |
| [out] | type | Return the database handle created |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get the current frame number
- Parameters
-
| [in] | db | The database handle |
| [out] | frameCount | Return the current frame number |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Delete an instance of attributeSet
- Parameters
-
| [in] | db | The database handle |
| [in] | setId | The attributeSet identifier |
| [in] | handle | The instance handle of attributeSet to delete |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Delete simulation database
- Parameters
-
| [in] | db | The database handle |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Legion database end frame call, one of the most impartant function
- Parameters
-
| [in] | db | The database handle |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get event manager
- Parameters
-
| [in] | db | The database handle |
| [out] | eventManagerHandle | Return event manager handle |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get unique attribute identifier using the attributeSet id and attribuye id
- Parameters
-
| [in] | db | The database handle |
| [in] | setId | The attributeSet identifier |
| [in] | attributeId | The attribute identifier |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get unique attribute identifier using the attributeSet id and attribuye name
- Parameters
-
| [in] | db | The database handle |
| [in] | setId | The attributeSet identifier |
| [in] | attributeName | The attribute name |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get unique attributeSet identifier using the attributeSet name
- Parameters
-
| [in] | db | The database handle |
| [in] | setName | The attributeSet name |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get the owning client identifier of an instance
- Parameters
-
| [in] | handle | The instance handle |
- Returns
- ClientId Return client id of this instance
Get the Global identifier of an instance
- Parameters
-
| [in] | handle | The instance handle |
- Returns
- GlobalId Return the global identifier
Get instance identifier from instance's gloable Id
- Parameters
-
| [in] | db | The database handle |
| [in] | GlobalId | The global identifier of an instance |
- Returns
- UInt64 Return instance id
Check if it's in a frame, in between the DB beginFrame and endFrame calls
- Parameters
-
| [in] | db | The database handle |
| [out] | inFrame | Return true if it's inFrame, false if it's not |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Check if an instance handle is valid
Get unique attribute identifier using the attributeSet id and attribuye name
- Parameters
-
| [in] | db | The database handle |
| [in] | setId | The attributeSet identifier |
| [in] | attributeName | The attribute name |
- See Also
- LEG_AttributeDescriptor
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Register attribute set descriptor
- Parameters
-
| [in] | db | The database handle |
| [in] | setDesc | The attributeSet descriptor |
- See Also
- LEG_AttributeSetDescriptor
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Remove and unregister the callback function from getting invoked by database at DB begin frame
- Parameters
-
| [in] | db | The database handle |
| [in] | func | A callback fuction to be registered |
| [in] | usr | User data passed to the callback function |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Remove and unregister the callback function from getting invoked by database at DB end frame
- Parameters
-
| [in] | db | The database handle |
| [in] | func | A callback fuction to be registered |
| [in] | usr | User data passed to the callback function |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Reserve database for attribute set
- Parameters
-
| [in] | db | The database handle |
| [in] | setType | An unique identifier of attributeSet |
| [in] | count | The capacity count to reserve |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Set client id
- Parameters
-
| [in] | db | The database handle |
| [out] | clientId | Return client identifier |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get the attributeSet identifier of an instance
- Parameters
-
| [in] | handle | The instance handle |
- Returns
- UInt32 Returns the attributeSet identifier
Get the current simulation time
- Parameters
-
| [in] | db | The database handle |
| [out] | simTime | Return simulation time |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get view manager
- Parameters
-
| [in] | db | The database handle |
| [out] | viewManagerHandle | Return view manager handle |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure