|
C3D Toolkit
Kernel - 118057, Vision - 2.14.7.1821
|
Sorted one-dimensional array of pointers to objects. More...
#include <templ_sfdp_array.h>
Inheritance diagram for SFDPArray< Type >:
Collaboration diagram for SFDPArray< Type >:Public Member Functions | |
| bool | Init (const SFDPArray< Type > &other) |
| Reset itself and copy 'other'. | |
| size_t | AddTry (Type &ent, Type *&found) |
| Try to add an element with sorting. More... | |
| bool | AddExact (Type &) |
| Add an element with sorting. More... | |
| bool | AddIfNotExist (Type &) |
| Add an element with sorting. More... | |
| void | AddSimple (Type &ent) |
| An access to the function of the base class - add an element to the end of the array. More... | |
| size_t | FindNearest (const Type &el, Type *&found) const |
| Find the index of the element using the comparison function. More... | |
| Type * | FindExact (const Type &el) const |
| Find the index of the element using the comparison function. More... | |
| bool | IsExist (const Type &el) const |
| Returns true, if the element was found, or false otherwise. More... | |
| size_t | SearchIt (size_t, SearchFunc, Type *&found) const |
| Find the index of the element using the search function. More... | |
| void | Sort (size_t minInd=SYS_MAX_T, size_t maxInd=SYS_MAX_T) |
| Sort an array using the comparison function. | |
Sorted one-dimensional array of pointers to objects.
Sorted one-dimensional array of pointers to objects.
There is no repeat adding. The array is useless without comparison function.
|
inline |
Try to add an element with sorting.
Try to add an element with sorting. If an object already exists, it is not added.
| [in] | ent | - An element to add. |
| [out] | found | - Added or found element. |
|
inline |
Add an element with sorting.
Add an element with sorting. An existed object cannot be added repeatedly.
|
inline |
Add an element with sorting.
Add an element with sorting. An existed object cannot be added repeatedly.
An access to the function of the base class - add an element to the end of the array.
An access to the function of the base class - add an element to the end of the array.
|
inline |
Find the index of the element using the comparison function.
Find the index of the element using the comparison function.
| [in] | el | - An element to find. |
| [out] | found | - The 'found' will contain the found element or the nearest to the required element. |
|
inline |
Find the index of the element using the comparison function.
Find the index of the element using the comparison function.
|
inline |
Returns true, if the element was found, or false otherwise.
Returns true, if the element was found, or false otherwise.
| size_t SFDPArray< Type >::SearchIt | ( | size_t | , |
| SearchFunc | , | ||
| Type *& | found | ||
| ) | const |
Find the index of the element using the search function.
Find the index of the element using the search function.
| [out] | found | - The 'found' will contain the found element or the nearest to the required element. |