MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / ParentCache

Method ParentCache

source/matplot/util/contourc.cpp:255–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 }
254
255 ParentCache::ParentCache(long nx, long x_chunk_points, long y_chunk_points)
256 : _nx(nx), _x_chunk_points(x_chunk_points),
257 _y_chunk_points(y_chunk_points),
258 _lines(0), // Initialised when first needed.
259 _istart(0), _jstart(0) {
260 assert(_x_chunk_points > 0 && _y_chunk_points > 0 &&
261 "Chunk sizes must be positive");
262 }
263
264 ContourLine *ParentCache::get_parent(long quad) {
265 long index = quad_to_index(quad);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected