#include <RexxCompoundTail.hpp>
Public Member Functions | |
RexxCompoundTail (RexxVariableDictionary *dictionary, RexxObject **tails, size_t tailCount) | |
RexxCompoundTail (RexxActivation *context, RexxObject **tails, size_t tailCount) | |
RexxCompoundTail (RexxObject **tails, size_t count) | |
RexxCompoundTail (RexxString *tails, size_t count) | |
RexxCompoundTail (RexxString *tailString) | |
RexxCompoundTail (const char *tailString) | |
RexxCompoundTail (size_t index) | |
RexxCompoundTail (RexxObject **tails, size_t count, bool resolve) | |
~RexxCompoundTail () | |
void | ensureCapacity (size_t needed) |
void | expandCapacity (size_t needed) |
void | append (const char *newData, size_t stringLen) |
void | append (char newData) |
RexxString * | createCompoundName (RexxString *) |
RexxString * | makeString () |
void | init () |
void | buildTail (RexxVariableDictionary *dictionary, RexxObject **tails, size_t tailCount) |
void | buildTail (RexxActivation *context, RexxObject **tails, size_t tailCount) |
void | buildTail (RexxObject **tails, size_t count) |
void | buildTail (RexxString *tail) |
void | buildTail (RexxString *tail, size_t index) |
void | buildTail (size_t index) |
void | buildTail (const char *index) |
void | buildUnresolvedTail (RexxObject **tails, size_t count) |
void | addDot () |
int | compare (RexxString *name) |
size_t | getLength () |
const char * | getTail () |
Protected Attributes | |
size_t | length |
size_t | remainder |
char * | tail |
char * | current |
char | buffer [MAX_SYMBOL_LENGTH] |
RexxString * | value |
RexxBuffer * | temp |
ProtectedObject | p |
Private Types | |
enum | { ALLOCATION_PAD = 100 } |
Definition at line 52 of file RexxCompoundTail.hpp.
|
private |
Enumerator | |
---|---|
ALLOCATION_PAD |
Definition at line 54 of file RexxCompoundTail.hpp.
|
inline |
Definition at line 57 of file RexxCompoundTail.hpp.
References buildTail(), and init().
|
inline |
Definition at line 63 of file RexxCompoundTail.hpp.
References buildTail(), and init().
|
inline |
Definition at line 69 of file RexxCompoundTail.hpp.
References buildTail(), and init().
|
inline |
Definition at line 74 of file RexxCompoundTail.hpp.
References buildTail(), and init().
|
inline |
Definition at line 80 of file RexxCompoundTail.hpp.
References buildTail(), and init().
|
inline |
Definition at line 86 of file RexxCompoundTail.hpp.
References buildTail(), and init().
|
inline |
Definition at line 92 of file RexxCompoundTail.hpp.
References buildTail(), and init().
|
inline |
Definition at line 99 of file RexxCompoundTail.hpp.
References buildTail(), buildUnresolvedTail(), and init().
|
inline |
Definition at line 111 of file RexxCompoundTail.hpp.
|
inline |
Definition at line 153 of file RexxCompoundTail.hpp.
References append().
Referenced by buildTail(), and buildUnresolvedTail().
|
inline |
Definition at line 124 of file RexxCompoundTail.hpp.
References current, ensureCapacity(), and remainder.
|
inline |
Definition at line 117 of file RexxCompoundTail.hpp.
References current, ensureCapacity(), and remainder.
Referenced by addDot(), RexxInteger::copyIntoTail(), and RexxString::copyIntoTail().
void RexxCompoundTail::buildTail | ( | const char * | t | ) |
Build a tail directly from a single character string value.
t | The pointer to the tail name (as an asciiz string); |
Definition at line 251 of file RexxCompoundTail.cpp.
void RexxCompoundTail::buildTail | ( | RexxActivation * | context, |
RexxObject ** | tails, | ||
size_t | tailCount | ||
) |
Definition at line 146 of file RexxCompoundTail.cpp.
References addDot(), RexxObject::copyIntoTail(), current, RexxString::getLength(), RexxInternalObject::getValue(), RexxString::getWritableData(), isInteger(), isString(), length, OREF_NULL, remainder, tail, and value.
void RexxCompoundTail::buildTail | ( | RexxObject ** | tails, |
size_t | count | ||
) |
Definition at line 204 of file RexxCompoundTail.cpp.
References addDot(), RexxString::copyIntoTail(), current, length, OREF_NULL, and tail.
void RexxCompoundTail::buildTail | ( | RexxString * | tail | ) |
Definition at line 232 of file RexxCompoundTail.cpp.
References RexxString::getLength(), RexxString::getWritableData(), length, remainder, tail, and value.
void RexxCompoundTail::buildTail | ( | RexxString * | tail, |
size_t | index | ||
) |
Definition at line 259 of file RexxCompoundTail.cpp.
References RexxString::copyIntoTail(), current, Numerics::formatWholeNumber(), RexxString::getLength(), RexxString::getStringData(), length, OREF_NULL, and remainder.
void RexxCompoundTail::buildTail | ( | RexxVariableDictionary * | dictionary, |
RexxObject ** | tails, | ||
size_t | tailCount | ||
) |
Definition at line 89 of file RexxCompoundTail.cpp.
References addDot(), RexxObject::copyIntoTail(), current, RexxString::getLength(), RexxInternalObject::getValue(), RexxString::getWritableData(), isInteger(), isString(), length, OREF_NULL, remainder, tail, and value.
Referenced by RexxCompoundTail().
void RexxCompoundTail::buildTail | ( | size_t | index | ) |
Definition at line 276 of file RexxCompoundTail.cpp.
References current, Numerics::formatWholeNumber(), length, and remainder.
void RexxCompoundTail::buildUnresolvedTail | ( | RexxObject ** | tails, |
size_t | count | ||
) |
Definition at line 53 of file RexxCompoundTail.cpp.
References addDot(), RexxObject::copyIntoTail(), RexxString::copyIntoTail(), current, isOfClass, length, OREF_NULL, RexxObject::stringValue(), and tail.
Referenced by RexxCompoundTail().
|
inline |
Definition at line 154 of file RexxCompoundTail.hpp.
References RexxString::getLength(), RexxString::getStringData(), length, and tail.
Referenced by RexxCompoundTable::findEntry().
RexxString * RexxCompoundTail::createCompoundName | ( | RexxString * | stem | ) |
Definition at line 319 of file RexxCompoundTail.cpp.
References RexxString::getLength(), RexxString::getStringData(), RexxString::getWritableData(), length, raw_string(), and tail.
Referenced by RexxStem::createCompoundName(), RexxStem::evaluateCompoundVariableValue(), RexxStem::getCompoundVariableValue(), RexxActivation::traceCompoundName(), and RexxActivation::traceCompoundValue().
|
inline |
Definition at line 115 of file RexxCompoundTail.hpp.
References expandCapacity(), and remainder.
Referenced by append().
void RexxCompoundTail::expandCapacity | ( | size_t | needed | ) |
Definition at line 289 of file RexxCompoundTail.cpp.
References ALLOCATION_PAD, buffer, current, RexxBuffer::expand(), RexxBuffer::getData(), length, new_buffer(), OREF_NULL, p, remainder, tail, and temp.
Referenced by ensureCapacity().
|
inline |
Definition at line 164 of file RexxCompoundTail.hpp.
References length.
Referenced by RexxActivation::traceCompoundValue().
|
inline |
Definition at line 165 of file RexxCompoundTail.hpp.
References tail.
Referenced by RexxActivation::traceCompoundValue().
|
inline |
Definition at line 134 of file RexxCompoundTail.hpp.
References buffer, current, length, MAX_SYMBOL_LENGTH, OREF_NULL, remainder, tail, temp, and value.
Referenced by RexxCompoundTail().
RexxString * RexxCompoundTail::makeString | ( | ) |
Definition at line 343 of file RexxCompoundTail.cpp.
References length, new_string(), tail, and value.
Referenced by RexxCompoundTable::findEntry().
|
protected |
Definition at line 173 of file RexxCompoundTail.hpp.
Referenced by expandCapacity(), and init().
|
protected |
Definition at line 172 of file RexxCompoundTail.hpp.
Referenced by append(), buildTail(), buildUnresolvedTail(), expandCapacity(), and init().
|
protected |
Definition at line 169 of file RexxCompoundTail.hpp.
Referenced by buildTail(), buildUnresolvedTail(), compare(), createCompoundName(), expandCapacity(), getLength(), init(), and makeString().
|
protected |
Definition at line 176 of file RexxCompoundTail.hpp.
Referenced by expandCapacity().
|
protected |
Definition at line 170 of file RexxCompoundTail.hpp.
Referenced by append(), buildTail(), ensureCapacity(), expandCapacity(), and init().
|
protected |
Definition at line 171 of file RexxCompoundTail.hpp.
Referenced by buildTail(), buildUnresolvedTail(), compare(), createCompoundName(), expandCapacity(), getTail(), init(), and makeString().
|
protected |
Definition at line 175 of file RexxCompoundTail.hpp.
Referenced by expandCapacity(), and init().
|
protected |
Definition at line 174 of file RexxCompoundTail.hpp.
Referenced by buildTail(), init(), and makeString().