aboutsummaryrefslogtreecommitdiff
path: root/dw/outofflowmgr.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-04-19 22:56:03 +0200
committerSebastian Geerken <devnull@localhost>2013-04-19 22:56:03 +0200
commite7a6d151187e6905a9be8400c80118b7983c40f3 (patch)
tree6471c2e1dbde26696d4510d24458646eb44c7bbf /dw/outofflowmgr.hh
parentac2616a2749d3b51a1c5a2d73e143a36d48222f7 (diff)
Some debugging stuff.
Diffstat (limited to 'dw/outofflowmgr.hh')
-rw-r--r--dw/outofflowmgr.hh11
1 files changed, 8 insertions, 3 deletions
diff --git a/dw/outofflowmgr.hh b/dw/outofflowmgr.hh
index 718eed48..44afcefa 100644
--- a/dw/outofflowmgr.hh
+++ b/dw/outofflowmgr.hh
@@ -79,14 +79,18 @@ private:
*/
class SortedFloatsVector: private lout::container::typed::Vector<Float>
{
+ public:
+ enum Type { GB, CB };
+
private:
OutOfFlowMgr *oofm;
Side side;
+ Type type; // Only used for debugging; may be removed later.
public:
- inline SortedFloatsVector (OutOfFlowMgr *oofm, Side side) :
+ inline SortedFloatsVector (OutOfFlowMgr *oofm, Side side, Type type) :
lout::container::typed::Vector<Float> (1, false)
- { this->oofm = oofm; this->side = side; }
+ { this->oofm = oofm; this->side = side; this->type = type; }
int findFloatIndex (Textblock *lastGB, int lastExtIndex);
int find (Textblock *textblock, int y, int start, int end);
@@ -115,12 +119,13 @@ private:
int xCB, yCB; // relative to the containing block
int width, height;
int index; // position within "tbInfos"
+ Textblock *textblock; // for debugging; may be removed again
// These two lists store all floats generated by this textblock,
// as long as this textblock is not allocates.
SortedFloatsVector *leftFloatsGB, *rightFloatsGB;
- TBInfo (OutOfFlowMgr *oofm);
+ TBInfo (OutOfFlowMgr *oofm, Textblock *textblock);
~TBInfo ();
};