|
Public Types |
| typedef RObject * | array_iterator |
Public Member Functions |
| | ObjectArrayBaseImpl (int size=0) |
| | creates an Array with given size
|
| | ObjectArrayBaseImpl (const acdk::lang::dmi::ClazzInfo *elemtype, int size) |
| | Creating generic ObjectArray with given elemtype as member types Used for DMI.
|
| | ~ObjectArrayBaseImpl () |
| virtual Object * | _cast (const acdk::lang::dmi::ClazzInfo *ci) |
| | for DMI implemented classes with multiple interface allow casts.
|
| int | length () const |
| | return the count of elements in this array
|
| array_iterator | begin () |
| | STL like array_iterator.
|
| array_iterator | end () |
| | STL like iterator.
|
| array_iterator | endCap () |
| | STL like iterator.
|
| | IN (RObject) getElement(int idx) |
| | return the element at idx position - Exceptions:
-
|
| | OUT (RObject) getElementRef(int idx) |
| | return the element at idx position as reference (left side value) - Exceptions:
-
|
| | OUT (RObject) operator[](int idx) |
| void | setElement (int idx, IN(RObject) value) |
| | set the element at idx position (method name in DMI is set) - Exceptions:
-
|
| void | set (int idx, NilRef nil) |
| | Set element at idx to Nil - Exceptions:
-
|
| void | append (IN(RObject) value) |
| | append value to this array
|
| | OUT (RObject) operator_bo(int idx) |
| | for DMI operator[](int idx) access
|
| void | concat (IN(RObjectArrayBaseImpl) other) |
| | concat other array to this array
|
| void | insert (int idx, IN(RObject) value) |
| | insert obj into idx possition - Exceptions:
-
|
| void | remove (int idx) |
| | removes element at idx position - Exceptions:
-
|
| int | find (IN(RObject) el) |
| | Find equals element (using el->equals()) If el == Nil find first element which also Nil.
|
| int | findFirst (IN(RObject) el) |
| | alias for find(IN(RObject) el)
|
| int | findLast (IN(RObject) el) |
| | find the element from starting with the last element using equals()
|
| int | findSame (IN(RObject) el) |
| | find same object instance (using == instead of equals())
|
| RObject | removeEqualElement (IN(RObject) el) |
| RObject | removeSameElement (IN(RObject) el) |
| | remove element which is same instance
|
| acdk::util::RIterator | iterator () |
| | creates a read only iterator from this array
|
| acdk::util::RList | asContainer (bool copy=false) |
| | create this as an container (ArrayList)
|
| int | capacity () const |
| | return the capacity of this array
|
| void | ensureCapacity (int newsize) |
| | make sure that internal storage capacity is at least newsize elements
|
| void | makeCapacity (int newsize) |
| virtual int | hashCode () |
| | return the hashCode of this array
|
| virtual bool | equals (IN(RObject) o) |
| | Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.
|
| void | resize (int newSize) |
| | hard resize of this array.
|
| RString | toString () |
| | return stringified representation [element, element] of this array
|
| RObject | clone () |
| RObject | clone (::acdk::lang::sys::Allocator *alc) |
| RObject | pop_back_element () |
| | remove element from back and return the removed value
|
| RObject | pop_front_element () |
| | remove element from front (first element) and return the removed value
|
| | IN (RObject) back_element() |
| | return the last element
|
| | IN (RObject) front_element() |
| | STL style function.
|
| void | push_front_element (IN(RObject) obj) |
| | STL style function.
|
| void | push_back_element (IN(RObject) obj) |
| | STL style function.
|
| | IN (RObject) peekElementBack(int idx) |
| | get the element from index beginning with last element
|
| const acdk::lang::dmi::ClazzInfo * | getElementClazzInfo () |
| void | setElementClazzInfo (const acdk::lang::dmi::ClazzInfo *ci) |
Static Public Member Functions |
| RObject | create_instance () |
| const ObjectArrayBaseImpl * | _tryCast (const acdk::lang::dmi::ClazzInfo *toClazz, const ObjectArrayBaseImpl *other) |
| const::acdk::lang::dmi::ClazzMethodInfo * | dmiConstructor (::acdk::lang::Object *This, IN(acdk::lang::RString) fname,::acdk::lang::dmi::ScriptVar &ret,::acdk::lang::dmi::ScriptVarArray &args,::acdk::lang::dmi::DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const::acdk::lang::dmi::ClazzInfo *clazzinfo, const::acdk::lang::dmi::ClazzMethodInfo *methinf) |
Protected Member Functions |
| void | _init (int size) |
| void | _dispose () |
| void | _checkIndexAccess (int idx) const |
| RObject * | _createData (int newsize) |
| void | _destroyData () |
| void | _makeCapacity (int newCap) |
| void | _makeSetSlot (int idx) const |
| void | _makeInsertSlot (int idx) |
| void | _makeAppendSlot () |
| RObject | _castAssignmentElement (IN(RObject) value) const |
| | throws ClassCastException if value is not assignable to array element type
|
Protected Attributes |
| array_iterator | _begin |
| int | _length |
| array_iterator | _endCap |
| const acdk::lang::dmi::ClazzInfo * | _elementClazzInfo |