Go to the source code of this file.
|
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_viewManager_createView (ViewManagerHandle managerHandle, AttributeSetId setType, LEG_Scope scope, const char *name, ViewHandle *view) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_viewManager_destoryView (ViewManagerHandle managerHandle, ViewHandle view) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_initialize (ViewHandle view) |
| |
| LEGIONRUNTIME_DLL const char * | legion_view_name (ViewHandle view) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_scope (ViewHandle view, LEG_Scope *scope) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_attributeSet (ViewHandle view, AttributeSetId *setType) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_count (ViewHandle view, UInt32 *count) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_instances (ViewHandle view, InstanceHandle **instances, UInt32 *count) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_reset (ViewHandle view, UInt32 *size) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_addInstanceAddedCallback (ViewHandle view, C_InstanceCallback func, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_removeInstanceAddedCallback (ViewHandle view, C_InstanceCallback cb, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_addInstanceMovedCallback (ViewHandle view, C_InstanceCallback cb, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_removeInstanceMovedCallback (ViewHandle view, C_InstanceCallback cb, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_addInstanceRemovedCallback (ViewHandle view, C_InstanceCallback cb, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_removeInstanceRemovedCallback (ViewHandle view, C_InstanceCallback cb, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_addInstanceUpdatedCallback (ViewHandle view, C_InstanceUpdateCallback cb, const int *cbFilterList, const int cbFilterListCount, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_removeInstanceUpdatedCallback (ViewHandle view, C_InstanceUpdateCallback cb, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_addPredicate (ViewHandle view, C_PredicateCallback cb, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_view_removePredicate (ViewHandle view, C_PredicateCallback cb, void *usr) |
| |
The C_InstanceCallback function prototype The callback functions are executed when new instance get added or an existing instance get removed.
The C_InstanceUpdateCallback function prototype The callback functions are executed when an existing instance is updated.
| typedef int(* C_PredicateCallback)(void *usr, InstanceHandle instance) |
The C_PredicateCallback function prototype The predicate callback are executes to check whether the instance passes the user defined predicate.
Add and register callback function to be called whenever new instances are added
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- See Also
- C_InstanceCallback
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Referenced by Legion::SetView< SET_TYPE >::SetView().
Add and register the callback function to be called whenever an instance is moved
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- See Also
- C_InstanceCallback
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Referenced by Legion::SetView< SET_TYPE >::SetView().
Add and register instance removed callback. Executed user provided function whenever an instance is removed
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- See Also
- C_InstanceCallback
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Referenced by Legion::SetView< SET_TYPE >::SetView().
Add and register instance update callback. Executed user provided function whenever an instance is updated
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- See Also
- C_InstanceUpdateCallback
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Referenced by Legion::SetView< SET_TYPE >::addInstanceUpdatedCallback().
Add and register predicate callback. Executed user provided function to check if an instance is passed the user defined predicate
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- See Also
- C_PredicateCallback
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Referenced by Legion::SetView< SET_TYPE >::SetView().
Get the attributeSet identifier from a view
- Parameters
-
| [in] | view | The view handle |
| [out] | setType | Return the attributeSet identifier |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get instance count of a view
- Parameters
-
| [in] | view | The view handle |
| [out] | count | Return the instance count |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Initialize a view object
- Parameters
-
| [in] | view | Pass in the view handle to initialize the view |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get instances of a view
- Parameters
-
| [in] | view | The view handle |
| [out] | instances | Return the instance handles |
| [out] | count | Return the count of instance handles |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Referenced by Legion::SetView< SET_TYPE >::rebuildInstanceList().
Get the view name from view handle
Remove and unregister the instance added callback function Do not executed user provided function whenever new instances are added
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Remove and unregister instance move callback. Do not executed user provided function whenever an instance is moved
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Remove and unregister instance removed callback. Do not executed user provided function whenever an instance is removed
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Remove and unregister instance updated callback. Do not executed user provided function whenever an instance is ipdated
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Referenced by Legion::SetView< SET_TYPE >::removeInstanceUpdatedCallback().
Remove and unregister predicate callback. Do not executed user provided function to check against user defined predicate
- Parameters
-
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
- Returns
- LEG_ReturnCode, 0 indicates success, non 0 error code indicates failure
Rebuild and reset the view
- Parameters
-
| [in] | view | The view handle |
| [out] | size | Return the number of instances after reset |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get the scope info from a view
- Parameters
-
| [in] | view | The view handle |
| [out] | scope | Return the scope of the view |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Creates a view object
- Parameters
-
| [in] | managerHandle | The handle of view manager |
| [in] | setType | The attributeSet type indentifier |
| [in] | scope | The scope of view, one of localView, remoteView, and all views |
| [out] | view | Return the view handle created |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Referenced by Legion::ViewManager::createSetView().
Delete a view object
- Parameters
-
| [in] | managerHandle | The handle of view manager |
| [in] | view | The view handle to be deleted |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure