Classes | |
class | const_iterator |
class | iterator |
Public Member Functions | |
void | UseFastHeap (CFastHeap *heap) |
CFastHeap * | GetFastHeap () const |
CFastArray () | |
CFastArray (const T *data, INDEXTYPE count) | |
CFastArray (const CFastArray &src) | |
bool | UsingFastAllocator () const |
void | SetGrowPolicy (GrowPolicy val) |
GrowPolicy | GetGrowPolicy () |
void | SetMinCapacity (INDEXTYPE newCapacity) |
void | SetCapacity (INDEXTYPE newCapacity) |
void | SetCount (INDEXTYPE newVal) |
INDEXTYPE | GetCapacity () const |
INDEXTYPE | GetCount () const |
void | Clear () |
void | ClearAndKeepCapacity () |
__declspec (property(get=GetCount)) INDEXTYPE Count | |
const T & | ElementAt (INDEXTYPE index) const |
T & | ElementAt (INDEXTYPE index) |
const T & | operator[] (INDEXTYPE index) const |
T & | operator[] (INDEXTYPE index) |
T * | GetData () |
const T * | GetData () const |
void | Add (const T &value) |
void | Insert (INDEXTYPE indexAt, const T &value) |
void | AddRange (const T *data, INDEXTYPE count) |
void | InsertRange (INDEXTYPE indexAt, const T *data, INDEXTYPE count) |
void | CopyRangeTo (CFastArray &dest, INDEXTYPE srcOffset, INDEXTYPE count) const |
void | CopyTo (CFastArray &dest) const |
void | CopyFrom (const CFastArray &src) |
void | CopyFrom (const T *from, INDEXTYPE fromCount) |
void | RemoveRange (INDEXTYPE index, INDEXTYPE count) |
void | RemoveAt (INDEXTYPE index) |
bool | RemoveOneByValue (const T &value) |
CFastArray & | operator= (const CFastArray &src) |
INDEXTYPE | FindByValue (const T &value) |
bool | Equals (const CFastArray &rhs) const |
void | clear () |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
iterator | erase (iterator iter) |
T | PopBack () |
void | RemoveAndPullLast (intptr_t index) |
Friends | |
class | iterator |
class | const_iterator |
Array class
Performance increase function for primitive type
Major characteristics
T | Clause type of array |
RAWTYPE | To check if the type is safe even if array element is processed as “raw memory copy”. int is safe but std.string is not safe. In case element type of array is not related to constructor, destructor and copy assignment operator, you can set it as “true”. If setting it as “true”, constructor, destructor and copy assignment will not be called for progression of construction, destruction and copy of array element that internally occurs when inserting & deleting & changing size. Therefore, processing speed will be improved. Default is “false”. |
INDEXTYPE | It is strongly recommended to use the maximum size of array and one of index types like int32,int64 and intPtr. Casting load between int32 and int64 should be considered, so using the appropriate one is recommended. For example, packet size should be int32 because it does not exceed 2GB and if it is only for local process, intPtr is recommended. int64 is appropriate when int32 cannot deal with accurate value like network statistics. |
|
inline |
Default constructor
|
inline |
TODO:translate needed. Constructor that duplicates external data
|
inline |
TODO:translate needed. Constructor that duplicates external data
Proud::CFastArray< T, RAWTYPE, INDEXTYPE >::__declspec | ( | property(get=GetCount) | ) |
Array size
|
inline |
Add at the end
|
inline |
TODO:translate needed. Add array at the end of array
|
inline |
Acts similar as same name method of STL
|
inline |
Acts similar as same name method of STL
|
inline |
Clean up array. Same as ClearAndKeepCapacity
|
inline |
Clean up
|
inline |
Clean up array. Same as Clear
|
inline |
TODO:translate needed. Change size of dest with count then copy a part of src or all with dest
|
inline |
dest | copy array to dest. |
|
inline |
Array item that pointed by index
|
inline |
Array item that pointed by index
|
inline |
Acts similar as same name method of STL
|
inline |
Acts similar as same name method of STL
|
inline |
rhs | Checks if this contains same as rhs |
|
inline |
TODO:translate needed. Acts similar as same name method of STL
|
inline |
value | check if there is an array that has the same value as “value”. |
|
inline |
TODO:translate needed.
|
inline |
Array size
|
inline |
Gets array buffer pointer
|
inline |
Gets array buffer pointer
|
inline |
Gets designated fast heap. If not designated then returns NULL.
|
inline |
Getting existing grow policy
|
inline |
Move back item that pointed by indexAt then add value to place that pointed by indexAt
|
inline |
TODO:translate needed. Add array to middle of array. Move back part that pointed by indexAt then add to the gap
|
inline |
Copy assignment operator
|
inline |
Array item that pointed by index
|
inline |
Array item that pointed by index
|
inline |
TODO:translate needed.
|
inline |
TODO:translate needed. Moves the last clause to where index point then eliminates the last clause It is effective to use this instead of Remove to remove mid-part of a collection of no meaningful orders.
|
inline |
index | Remove index th item |
|
inline |
value | Seek same value as value from the first then remove it |
|
inline |
TODO:translate needed. Remove from index th list as many as count
|
inline |
Balances the buffer(capacity) possessed by array
|
inline |
TODO:translate needed. Balalnces the size of array
|
inline |
TODO:translate needed. grow policy setting
|
inline |
TODO:translate needed.
|
inline |