C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
One-dimensional array of pointers with counting of references. More...
#include <templ_ifc_array.h>
Classes | |
class | iterator |
A constant iterator (new functions can be added as necessary) More... | |
Public Types | |
typedef Type * | stored_type |
A name of the pointer to the object. | |
Public Member Functions | |
IFC_Array () | |
Constructor. | |
IFC_Array (const IFC_Array &init) | |
Copy constructor. | |
IFC_Array (size_t i_upper, uint16 i_delta) | |
Constructor. | |
~IFC_Array () | |
Destructor. | |
void | Add (stored_type) |
Add an element with increase of the reference counter. | |
iterator | Begin () const |
An iterator of the beginning. | |
iterator | End () const |
An iterator of the end. | |
void | AddAt (stored_type, size_t) |
Insert an element before the specified one. | |
void | AddAfter (stored_type, size_t) |
Insert an element after the specified one. | |
void | SetAt (stored_type, size_t) |
Set a new value for the i-th element. | |
void | Exchange (size_t, size_t) |
Swap values of two elements of an array. | |
stored_type | RemoveObj (stored_type) |
Remove a first founded element from an array. | |
stored_type | RemoveInd (size_t) |
Delete an element from array by the index. | |
void | Flush () |
Clear the array. | |
const_reference | operator[] (size_t idx) const |
indexed access (returns an element of an array but not the reference to it) | |
void | clear () |
Set the number of elements to null. | |
IFC_Array (IFC_Array< Type > &&) | |
Constructor of an array moving. | |
IFC_Array< Type > & | operator= (IFC_Array< Type > &&) |
Operator of an array moving. | |
One-dimensional array of pointers with counting of references.
One-dimensional array of pointers with counting of references.
Objects should have functions AddRef and Release.