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 Methods | |
RunArray (const le_int32 *limits, le_int32 count) | |
Construct a RunArray object from a pre-existing array of limit indices. More... | |
RunArray (le_int32 initalCapacity) | |
Construct an empty RunArray object. More... | |
virtual | ~RunArray () |
The destructor; virtual so that subclass destructors are invoked as well. More... | |
le_int32 | getCount () const |
Get the number of entries in the limit indices array. More... | |
le_int32 | getLimit () const |
Get the last limit index. More... | |
le_int32 | getLimit (le_int32 run) const |
Get the limit index for a particular run of text. More... | |
le_int32 | add (le_int32 limit) |
Add a limit index to the limit indices array and return the run index where it 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... | |
Protected Attributes | |
le_bool | fClientArrays |
Set by the constructors to indicate whether or not the client supplied the data arrays. More... | |
Private Methods | |
le_int32 | ensureCapacity () |
RunArray () | |
RunArray (const RunArray &) | |
RunArray & | operator= (const RunArray &) |
Private Attributes | |
const le_int32 * | fLimits |
le_int32 | fCount |
le_int32 | fCapacity |
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... |
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 43 of file RunArrays.h.
|
Construct a
Definition at line 218 of file RunArrays.h. |
|
Construct an empty
Clients can add limit indices array using the
|
|
The destructor; virtual so that subclass destructors are invoked as well.
|
|
Definition at line 206 of file RunArrays.h. |
|
Definition at line 212 of file RunArrays.h. |
|
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 224 of file RunArrays.h. |
|
ICU "poor man's RTTI", returns a UClassID for the actual class.
Reimplemented from UObject. Reimplemented in FontRuns, LocaleRuns, and ValueRuns. Definition at line 139 of file RunArrays.h. |
|
Get the limit index for a particular run of text.
Definition at line 229 of file RunArrays.h. |
|
Get the last limit index. This is the number of characters in the text.
Definition at line 238 of file RunArrays.h. |
|
ICU "poor man's RTTI", returns a UClassID for this class.
Reimplemented in FontRuns, LocaleRuns, and ValueRuns. Definition at line 146 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. |
|
Definition at line 199 of file RunArrays.h. |
|
Definition at line 203 of file RunArrays.h. |
|
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 186 of file RunArrays.h. |
|
Definition at line 202 of file RunArrays.h. |
|
Definition at line 201 of file RunArrays.h. |
|
The address of this static class variable serves as this class's ID for ICU "poor man's RTTI".
Reimplemented in FontRuns, LocaleRuns, and ValueRuns. Definition at line 193 of file RunArrays.h. |