ValueRuns
class associates integer values with runs of text.
More...
#include <RunArrays.h>
Inheritance diagram for ValueRuns:
Public Member Functions | |
ValueRuns (const le_int32 *values, const le_int32 *limits, le_int32 count) | |
Construct a ValueRuns object from pre-existing arrays of values and limit indices. | |
ValueRuns (le_int32 initialCapacity) | |
Construct an empty ValueRuns object. | |
virtual | ~ValueRuns () |
The destructor; virtual so that subclass destructors are invoked as well. | |
le_int32 | getValue (le_int32 run) const |
Get the integer value assoicated with the given run of text. | |
le_int32 | add (le_int32 value, le_int32 limit) |
Add an integer value and limit index pair to the data arrays and return the run index where the data was stored. | |
virtual UClassID | getDynamicClassID () const |
ICU "poor man's RTTI", returns a UClassID for the actual class. | |
Static Public Member Functions | |
UClassID | getStaticClassID () |
ICU "poor man's RTTI", returns a UClassID for this class. | |
Protected Member Functions | |
virtual void | init (le_int32 capacity) |
Create a data array with the given initial size. | |
virtual void | grow (le_int32 capacity) |
Grow a data array to the given initial size. |
ValueRuns
class associates integer values with runs of text.
Definition at line 546 of file RunArrays.h.
|
Construct a
Definition at line 669 of file RunArrays.h. |
|
Construct an empty
Clients can add value and limit indices arrays using the
|
|
The destructor; virtual so that subclass destructors are invoked as well.
|
|
Add an integer value and limit index pair to the data arrays and return the run index where the data was stored.
This method calls
If the
Subclasses should not override this method. Rather they should provide a new
|
|
ICU "poor man's RTTI", returns a UClassID for the actual class.
Reimplemented from RunArray. Definition at line 636 of file RunArrays.h. References RunArray::getStaticClassID(), and UClassID. |
|
ICU "poor man's RTTI", returns a UClassID for this class.
Reimplemented from RunArray. Definition at line 629 of file RunArrays.h. References UClassID. |
|
Get the integer value assoicated with the given run of text.
Use
|
|
Grow a data array to the given initial size.
This method will be called by the
Reimplemented from RunArray. |
|
Create a data array with the given initial size.
This method will be called by the
Reimplemented from RunArray. |