ValueRuns
class associates integer values with runs of text.
More...
#include <RunArrays.h>
Inheritance diagram for ValueRuns::
Public Methods | |
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. More... | |
ValueRuns (le_int32 initialCapacity) | |
Construct an empty ValueRuns object. More... | |
virtual | ~ValueRuns () |
The destructor; virtual so that subclass destructors are invoked as well. More... | |
le_int32 | getValue (le_int32 run) const |
Get the integer value assoicated with the given run of text. More... | |
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. More... | |
virtual UClassID | getDynamicClassID () const |
ICU "poor man's RTTI", returns a UClassID for the actual class. More... | |
Static Public Methods | |
UClassID | getStaticClassID () |
ICU "poor man's RTTI", returns a UClassID for this class. More... | |
Protected Methods | |
virtual void | init (le_int32 capacity) |
Create a data array with the given initial size. More... | |
virtual void | grow (le_int32 capacity) |
Grow a data array to the given initial size. More... | |
Private Methods | |
ValueRuns () | |
ValueRuns (const ValueRuns &other) | |
ValueRuns & | operator= (const ValueRuns &) |
Private Attributes | |
const le_int32 * | fValues |
Static Private Attributes | |
const char | fgClassID |
The address of this static class variable serves as this class's ID for ICU "poor man's RTTI". More... |
ValueRuns
class associates integer values with runs of text.
Definition at line 514 of file RunArrays.h.
|
Construct a
Definition at line 635 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.
|
|
Definition at line 623 of file RunArrays.h. |
|
Definition at line 629 of file RunArrays.h. |
|
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 595 of file RunArrays.h. |
|
ICU "poor man's RTTI", returns a UClassID for this class.
Reimplemented from RunArray. Definition at line 602 of file RunArrays.h. |
|
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. |
|
Definition at line 612 of file RunArrays.h. |
|
Definition at line 620 of file RunArrays.h. |
|
The address of this static class variable serves as this class's ID for ICU "poor man's RTTI".
Reimplemented from RunArray. Definition at line 618 of file RunArrays.h. |