|
Public Types |
typedef T | ElementType |
typedef BasicArray< T > | ArrayType |
typedef T * | iterator |
Public Member Functions |
| BasicArray (int count=0) |
| standard constructor.
|
| BasicArray (int count, T firstelem) |
| create array with given count of elements and fill with firstelem
|
| BasicArray (int count, T firstelem, T secelem) |
| create pair array count should be 2
|
| BasicArray (const T *t, int size) |
| construct basic array from native T pointer/array
|
template<class OT> | BasicArray (const BasicArray< OT > &other) |
| cast constructor
|
| BasicArray (const BasicArray< T > &other) |
| cast constructor
|
virtual | ~BasicArray () |
int | length () const |
| returns the length of the array
|
int | capacity () const |
| return the capacity (>= length) of the array
|
const T * | data () const |
| returns a native pointer to the underlying array storage
|
T * | data () |
| returns a native pointer to the underlying array storage
|
T & | set (int idx, const T &t) |
| sets element at given position - Exceptions:
-
|
const T & | get (int idx) const |
| get element at given position - Exceptions:
-
|
T & | get (int idx) |
| get element at given position - Exceptions:
-
|
T & | operator[] (int idx) const |
| get element at given position - Exceptions:
-
|
virtual bool | equals (IN(RBasicArray< T >) ta) |
| return true if size of arrays are equal and all elements are equal
|
virtual bool | equals (IN(::acdk::lang::RObject) o) |
| return true if object has same type of this array and size of arrays are equal and all elements are equal
|
virtual::acdk::lang::RObject | clone () |
| creates a copy of this array
|
virtual::acdk::lang::RObject | clone (::acdk::lang::sys::Allocator *alc) |
| creates a copy of this array
|
void | memset (T d) |
| set all elements of this array to given d
|
void | memset (T d, int offset, int l) |
| set all elements of this array to given d
|
void | memcpy (T *d, int offset, int len) |
| copy given native array pointer data from given offset and length into this array
|
void | ensureCapacity (int newSize) |
| ensure that this array has given newSize this method doesn't modify the size of the array
|
void | makeCapacity (int newSize) |
void | resize (int newSize) |
| resize this array to given size if newSize is > as length() the values of the new elements is undefined
|
void | append (T d) |
| append the given value to this array
|
void | insert (int idx, T newelem) |
| insert the given newelem into given idx
|
void | remove (int idx) |
| removes element at given position
|
void | concat (IN(RBasicArray< T >) s) |
| append all elements of given array to this array
|
::acdk::lang::RString | toString () |
| see in StringInline.h
|
int | hashCode () |
| get hascode of this array
|
iterator | begin () |
| native STL-like iterator
|
iterator | end () |
| native STL-like iterator
|
T | pop_back () |
| STL style function.
|
T | popBack () |
| STL style function.
|
T | pop_front () |
| STL style function.
|
T | popFront () |
| STL style function.
|
T | back () const |
| STL style function.
|
T | front () const |
| STL style function.
|
void | push_front (const T &t) |
| STL style function.
|
void | pushFront (const T &t) |
| STL style function.
|
void | push_back (const T &t) |
| STL style function.
|
void | pushBack (const T &t) |
| STL style function.
|
int | size () const |
| STL style function.
|
bool | empty () const |
| STL style function.
|
T | peekBack (int idx) |
| STL style function.
|
int | findFirst (const T &el) const |
| find the first element it is equal to given el return the index position of found element, return -1 if not found
|
int | findLast (const T &el) const |
| find the last element it is equal to given el return the index position of found element, return -1 if not found
|
const::acdk::lang::dmi::ClazzInfo * | getElementClazzInfo () |
| return the ClazzInfo of the element
|
virtual::acdk::lang::dmi::ClazzInfo * | getClazzInfo () |
| returns the ClazzInfo of this object instance must not be 0
|
virtual::acdk::lang::RClass | getClass () |
::acdk::lang::RClass | getMemberClass () |
Static Public Member Functions |
::acdk::lang::RObject | create_instance () |
::acdk::lang::RObject | create_arrayInstance (T dummy) |
acdk::lang::dmi::ClazzInfo * | clazzInfo () |
| return the ClazzInfo for this class will be re-implemented for each class by methods generated by acdkmc
|
::acdk::lang::RClass | GetClass () |
Protected Attributes |
T * | _data |
int | _length |
int | _capacity |