1 /* \file CoordCache.cpp
2 * This file is part of LyX, the document processor.
3 * Licence details can be found in the file COPYING.
7 * Full author contact details are available in file CREDITS.
12 #include "CoordCache.h"
15 #include "support/debug.h"
17 #include "support/lassert.h"
22 // just a helper to be able to set a breakpoint
23 void lyxbreaker(void const * data, const char * hint, int size)
25 LYXERR0("break on pointer: " << data << " hint: " << hint
26 << " size: " << size);
31 void CoordCache::clear()
38 void CoordCache::dump() const
40 if (getInsets().data_.empty()) {
41 LYXERR0("InsetCache is empty.");
45 LYXERR0("InsetCache contains:");
46 for (auto const & ccd : getInsets().data_) {
47 // Warning: it is not guaranteed that inset is a valid pointer
48 // (therefore it has type 'void *') (see bug #7376).
49 void const * inset = ccd.first;
50 Point const p = ccd.second.pos;
51 LYXERR0("Inset " << inset << " has point " << p.x_ << "," << p.y_);