NeKernel dev
Loading...
Searching...
No Matches
MutableArray.h File Reference
#include <CompilerKit/CompilerKit.h>
#include <NeKit/Array.h>
#include <NeKit/Config.h>

Go to the source code of this file.

Classes

class  Kernel::MutableLinkedList< T >
class  Kernel::NullableMutableArray< T, _PlaceHolderValue >
class  Kernel::MutableArray< T >

Namespaces

namespace  Kernel
 UPS inline definitions.

Macros

#define RTL_TRY_FIND_NODE(NAME, NODE)
#define RTL_TRY_FIND_NODE2(NAME, NODE)
#define RTL_TRY_REMOVE_NODE(NODE)

Macro Definition Documentation

◆ RTL_TRY_FIND_NODE

#define RTL_TRY_FIND_NODE ( NAME,
NODE )
Value:
auto* NAME = NODE; \
while (NAME) { \
if (NAME->fIndex == Index) return NAME->fVal; \
NAME = NAME->fNext; \
}

◆ RTL_TRY_FIND_NODE2

#define RTL_TRY_FIND_NODE2 ( NAME,
NODE )
Value:
auto* NAME = NODE; \
while (NAME) { \
if (NAME->fIndex == Index) return Ref<T>{NAME->fVal}; \
NAME = NAME->fNext; \
}
REF_TYPE * Ref
Definition System.h:28

◆ RTL_TRY_REMOVE_NODE

#define RTL_TRY_REMOVE_NODE ( NODE)
Value:
if (NODE && NODE->fIndex == Index) { \
NODE->fUsed = false; \
NODE->fIndex = 0; \
\
return true; \
}