1 #ifndef WREPORT_BULLETIN_BITMAPS_H
2 #define WREPORT_BULLETIN_BITMAPS_H
4 #include <wreport/var.h>
23 std::vector<unsigned>
refs;
31 std::vector<unsigned>::const_reverse_iterator
iter;
82 void define(
const Var& bitmap,
const Subset& subset,
unsigned anchor_point);
std::vector< unsigned > refs
Arrays of variable indices corresponding to positions in the bitmap where data is present...
Definition: bitmaps.h:23
unsigned next()
Return the next variable offset for which the bitmap reports that data is present.
void reuse()
Reset the bitmap iterator, to reuse the bitmap another time.
A physical variable.
Definition: var.h:23
Associate a Data Present Bitmap to decoded variables in a subset.
Definition: bitmaps.h:14
bool eob() const
True if there is no bitmap or if the bitmap has been iterated until the end.
uint16_t Varcode
Holds the WMO variable code of a variable.
Definition: varinfo.h:57
Bitmap * current
Currently active bitmap.
Definition: bitmaps.h:71
unsigned next()
Return the next variable offset for which the bitmap reports that data is present.
std::vector< unsigned >::const_reverse_iterator iter
Iterator over refs.
Definition: bitmaps.h:31
Bitmap * last
Last bitmap used.
Definition: bitmaps.h:74
Represent a BUFR/CREX data subset as a list of decoded variables.
Definition: subset.h:13
Varcode pending_definitions
Nonzero if a Data Present Bitmap is expected.
Definition: bitmaps.h:68
bool active() const
Return true if there is an active bitmap.
Definition: bitmaps.h:95
Var bitmap
Bitmap being iterated.
Definition: bitmaps.h:17
Bitmap(const Var &bitmap, const Subset &subset, unsigned anchor)
Create a new bitmap.