|
|
| CheapSorter (void) |
| | Construct a zero reference.
|
| |
|
| CheapSorter (const CheapSorter &op2) |
| | Copy constructor.
|
| |
|
| CheapSorter (const vector< uintb > &refs) |
| | Construct from an array of integers.
|
| |
| bool | operator< (const CheapSorter &op2) const |
| | Lexicographic comparison. More...
|
| |
| void | apply (vector< uintb > &refs) const |
| | Convert the reference back to a formal array of integers. More...
|
| |
| void | saveXml (ostream &s) const |
| | Serialize the reference to an XML element. More...
|
| |
| void | restoreXml (const Element *el) |
| | Deserialize the reference from an XML element. More...
|
| |
A cheap (efficient) placeholder for a reference to a constant pool record.
A reference can be an open-ended number of (1 or more) integers. In practice, the most integers we see in a reference is two. So this is a slightly more efficient container than an open-ended vector. The field a is the first integer, the field b is the second integer, or zero if there is no second integer. The references are ordered lexicographically. The class also serves to serialize/deserialize references from XML