#include <seadOffsetList.h>
Inherits sead::ListImpl.
Classes | |
| class | constIterator |
| class | iterator |
| class | reverseConstIterator |
| class | reverseIterator |
| class | reverseRobustIterator |
| class | robustIterator |
Public Member Functions | |
| OffsetList () | |
| void | initOffset (s32 offset) |
| void | clear () |
| void | unsafeClear () |
| void | pushBack (T *obj) |
| void | pushFront (T *obj) |
| T * | popBack () |
| T * | popFront () |
| void | insertBefore (const T *basis, T *obj) |
| void | insertAfter (const T *basis, T *obj) |
| void | erase (T *obj) |
| T * | front () const |
| T * | back () const |
| T * | prev (const T *obj) const |
| T * | next (const T *obj) const |
| T * | nth (s32 index) const |
| s32 | indexOf (const T *obj) const |
| bool | isNodeLinked (const T *obj) const |
| void | swap (T *obj1, T *obj2) |
| void | moveAfter (T *basis, T *obj) |
| void | moveBefore (T *basis, T *obj) |
| void | sort () |
| void | sort (CompareCallback cmp) |
| void | mergeSort () |
| void | mergeSort (CompareCallback cmp) |
| T * | find (const T *obj) const |
| T * | find (const T *obj, CompareCallback cmp) const |
| void | uniq () |
| void | uniq (CompareCallback cmp) |
| iterator | begin () const |
| iterator | end () const |
| iterator | toIterator (T *) const |
| constIterator | constBegin () const |
| constIterator | constEnd () const |
| constIterator | toConstIterator (const T *) const |
| robustIterator | robustBegin () |
| robustIterator | robustEnd () |
| robustIterator | toRobustIterator (T *) |
| reverseIterator | reverseBegin () const |
| reverseIterator | reverseEnd () const |
| reverseIterator | toReverseIterator (T *) const |
| reverseConstIterator | reverseConstBegin () const |
| reverseConstIterator | reverseConstEnd () const |
| reverseConstIterator | toReverseConstIterator (const T *) const |
| reverseRobustIterator | reverseRobustBegin () |
| reverseRobustIterator | reverseRobustEnd () |
| reverseRobustIterator | toReverseRobustIterator (T *) |
| Public Member Functions inherited from sead::ListImpl | |
| ListImpl () | |
| bool | isEmpty () const |
| s32 | size () const |
| void | reverse () |
| void | shuffle () |
| void | shuffle (Random *random) |
| bool | checkLinks () const |
Protected Member Functions | |
| ListNode * | objToListNode (const T *obj) const |
| T * | listNodeToObj (const ListNode *node) const |
| T * | listNodeToObjWithNullCheck (const ListNode *node) const |
| Protected Member Functions inherited from sead::ListImpl | |
| ListImpl (const ListImpl &) | |
| void | sort (s32 offset, CompareCallbackImpl cmp) |
| void | mergeSort (s32 offset, CompareCallbackImpl cmp) |
| void | pushBack (ListNode *n) |
| void | pushFront (ListNode *n) |
| ListNode * | popBack () |
| ListNode * | popFront () |
| void | insertBefore (ListNode *basis, ListNode *n) |
| void | insertAfter (ListNode *basis, ListNode *n) |
| void | erase (ListNode *n) |
| ListNode * | front () const |
| ListNode * | back () const |
| ListNode * | nth (s32 index) const |
| s32 | indexOf (const ListNode *n) const |
| void | swap (ListNode *n1, ListNode *n2) |
| void | moveAfter (ListNode *basis, ListNode *n) |
| void | moveBefore (ListNode *basis, ListNode *n) |
| ListNode * | find (const void *ptr, s32 offset, CompareCallbackImpl cmp) const |
| void | uniq (s32 offset, CompareCallbackImpl cmp) |
| void | clear () |
| void | unsafeClear () |
| ListImpl & | operator= (const ListImpl &) |
Static Protected Member Functions | |
| static s32 | compareT (const T *, const T *) |
| Static Protected Member Functions inherited from sead::ListImpl | |
| static void | mergeSortImpl (ListNode *front, ListNode *back, s32 num, s32 offset, CompareCallbackImpl cmp) |
Protected Attributes | |
| s32 | mOffset |
| Protected Attributes inherited from sead::ListImpl | |
| ListNode | mStartEnd |
| s32 | mCount |
Private Types | |
| typedef s32(* | CompareCallback) (const T *, const T *) |
Additional Inherited Members | |
| Protected Types inherited from sead::ListImpl | |
| using | CompareCallbackImpl = s32 (*)(const void* a, const void* b) |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| T * sead::OffsetList< T >::nth | ( | s32 | index | ) | const |
| s32 sead::OffsetList< T >::indexOf | ( | const T * | obj | ) | const |
| bool sead::OffsetList< T >::isNodeLinked | ( | const T * | obj | ) | const |
| void sead::OffsetList< T >::swap | ( | T * | obj1, |
| T * | obj2 ) |
| void sead::OffsetList< T >::moveAfter | ( | T * | basis, |
| T * | obj ) |
| void sead::OffsetList< T >::moveBefore | ( | T * | basis, |
| T * | obj ) |
| void sead::OffsetList< T >::sort | ( | ) |
| void sead::OffsetList< T >::sort | ( | CompareCallback | cmp | ) |
| void sead::OffsetList< T >::mergeSort | ( | ) |
| void sead::OffsetList< T >::mergeSort | ( | CompareCallback | cmp | ) |
| T * sead::OffsetList< T >::find | ( | const T * | obj | ) | const |
| T * sead::OffsetList< T >::find | ( | const T * | obj, |
| CompareCallback | cmp ) const |
| void sead::OffsetList< T >::uniq | ( | ) |
| void sead::OffsetList< T >::uniq | ( | CompareCallback | cmp | ) |
|
inline |
|
inline |
| iterator sead::OffsetList< T >::toIterator | ( | T * | ) | const |
|
inline |
|
inline |
| constIterator sead::OffsetList< T >::toConstIterator | ( | const T * | ) | const |
|
inline |
|
inline |
| robustIterator sead::OffsetList< T >::toRobustIterator | ( | T * | ) |
| reverseIterator sead::OffsetList< T >::reverseBegin | ( | ) | const |
| reverseIterator sead::OffsetList< T >::reverseEnd | ( | ) | const |
| reverseIterator sead::OffsetList< T >::toReverseIterator | ( | T * | ) | const |
| reverseConstIterator sead::OffsetList< T >::reverseConstBegin | ( | ) | const |
| reverseConstIterator sead::OffsetList< T >::reverseConstEnd | ( | ) | const |
| reverseConstIterator sead::OffsetList< T >::toReverseConstIterator | ( | const T * | ) | const |
| reverseRobustIterator sead::OffsetList< T >::reverseRobustBegin | ( | ) |
| reverseRobustIterator sead::OffsetList< T >::reverseRobustEnd | ( | ) |
| reverseRobustIterator sead::OffsetList< T >::toReverseRobustIterator | ( | T * | ) |
|
staticprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |