Drake
 All Classes Files Functions Variables
SharedDataHandle Class Reference

a utility class to make it convenient to make a piece of data behave like a handle class example usage: mex_model_ptr = SharedDataHandle(mex_model_ptr); now mex_model_ptr continues to act like it did before, but will internally be accessing the shared data structure. More...

Inheritance diagram for SharedDataHandle:
Collaboration diagram for SharedDataHandle:

Public Member Functions

function SharedDataHandle (data, deleteFcn)
 
function getData (obj)
 
function delete (obj)
 
function setData (obj, data)
 
function setField (obj, fieldname, val)
 typecheck(obj.data,'struct'); More...
 
function getField (obj, fieldname)
 typecheck(obj.data,'struct'); More...
 

Public Attributes

Property data
 

Detailed Description

a utility class to make it convenient to make a piece of data behave like a handle class example usage: mex_model_ptr = SharedDataHandle(mex_model_ptr); now mex_model_ptr continues to act like it did before, but will internally be accessing the shared data structure.

Constructor & Destructor Documentation

function SharedDataHandle ( data  ,
deleteFcn   
)
Return values
obj

Member Function Documentation

function delete ( obj  )
function getData ( obj  )
Return values
data
function getField ( obj  ,
fieldname   
)

typecheck(obj.data,'struct');

Return values
d
function setData ( obj  ,
data   
)
function setField ( obj  ,
fieldname  ,
val   
)

typecheck(obj.data,'struct');

Member Data Documentation

Property data

The documentation for this class was generated from the following file: