RunArray
class is a base class for building classes which represent data that is associated with runs of text.
More...
#include <RunArrays.h>
Inheritance diagram for RunArray:
Public Member Functions | |
RunArray (const le_int32 *limits, le_int32 count) | |
Construct a RunArray object from a pre-existing array of limit indices. | |
RunArray (le_int32 initialCapacity) | |
Construct an empty RunArray object. | |
virtual | ~RunArray () |
The destructor; virtual so that subclass destructors are invoked as well. | |
le_int32 | getCount () const |
Get the number of entries in the limit indices array. | |
le_int32 | getLimit () const |
Get the last limit index. | |
le_int32 | getLimit (le_int32 run) const |
Get the limit index for a particular run of text. | |
le_int32 | add (le_int32 limit) |
Add a limit index to the limit indices array and return the run index where it was stored. | |
virtual UClassID | getDynamicClassID () const |
ICU "poor man's RTTI", returns a UClassID for the actual class. | |
Static Public Member Functions | |
static 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. | |
Protected Attributes | |
le_bool | fClientArrays |
Set by the constructors to indicate whether or not the client supplied the data arrays. |
RunArray
class is a base class for building classes which represent data that is associated with runs of text.
This class maintains an array of limit indices into the text, subclasses provide one or more arrays of data.
Definition at line 48 of file RunArrays.h.
|
Construct a
Definition at line 224 of file RunArrays.h. References RunArray(). Referenced by RunArray(). |
|
Construct an empty
Clients can add limit indices array using the
|
|
The destructor; virtual so that subclass destructors are invoked as well.
|
|
Add a limit index to the limit indices array and return the run index where it was stored.
If the array does not exist, it will be created by calling the
If the
Subclasses should not override this method. Rather they should provide a new
|
|
Get the number of entries in the limit indices array.
Definition at line 230 of file RunArrays.h. |
|
ICU "poor man's RTTI", returns a UClassID for the actual class.
Implements UObject. Reimplemented in FontRuns, LocaleRuns, and ValueRuns. Definition at line 152 of file RunArrays.h. |
|
Get the limit index for a particular run of text.
Definition at line 235 of file RunArrays.h. |
|
Get the last limit index. This is the number of characters in the text.
Definition at line 244 of file RunArrays.h. |
|
ICU "poor man's RTTI", returns a UClassID for this class.
Reimplemented in FontRuns, LocaleRuns, and ValueRuns. Definition at line 145 of file RunArrays.h. Referenced by ValueRuns::getDynamicClassID(), LocaleRuns::getDynamicClassID(), and FontRuns::getDynamicClassID(). |
|
Grow a data array to the given initial size.
This method will be called by the
Reimplemented in FontRuns, LocaleRuns, and ValueRuns. |
|
Create a data array with the given initial size.
This method will be called by the
Reimplemented in FontRuns, LocaleRuns, and ValueRuns. |
|
Set by the constructors to indicate whether or not the client supplied the data arrays.
If they were supplied by the client, the
Definition at line 192 of file RunArrays.h. |