[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: multidimensional data with user defined type
- From: Philipp Kraus <philipp.kraus@...>
- Date: Sun, 9 Jun 2013 13:27:57 +0200
I have got multidimensional cubes in C++ and would like to push them into LUA. I would like to create a structure in LUA like
data[i][j][n] = 123
The data can be any type (most numerical types). Also I have got std::maps with strings and cubes eg std::map <std::string, cube<doube,3> >
Is there a solution to get access to the data in LUA without copying? I would like to modify the data from the LUA script direct in the memory,
because the datablocks are very large.
I have found the user-defined type (pointer to my memory), but I have tested it with array (std::vector) only, so in my case I have complex data
structures, eg I would like to modify my std::map direct from LUA.
Hope for some ideas :-)