/* ---------------------------------------------------------------------- */ static void fill_grid(mxArray *G, struct processed_grid *grid) /* ---------------------------------------------------------------------- */ { double *pr; pr = mxGetPr(mxGetField(G, 0, "cartDims")); pr[0] = grid->dimensions[0]; pr[1] = grid->dimensions[1]; pr[2] = grid->dimensions[2]; fill_nodes(mxGetField(G, 0, "nodes"), grid); fill_faces(mxGetField(G, 0, "faces"), grid); fill_cells(mxGetField(G, 0, "cells"), grid); }
result_t HeapSnapshotProxy::getNodeById(int32_t id, obj_ptr<HeapGraphNode_base>& retVal) { fill_nodes(); std::map<int32_t, int32_t>::iterator it; it = _nodes.find(id); if (it == _nodes.end()) return CALL_RETURN_NULL; Variant v; m_nodes->_indexed_getter(it->second, v); retVal = (HeapGraphNode_base*)v.object(); return 0; }
result_t HeapSnapshotProxy::get_nodes(obj_ptr<List_base>& retVal) { fill_nodes(); retVal = m_nodes; return 0; }