Kerbal Space Program
1.12.4
|
Represents a node in a singly linked list. More...
Public Member Functions | |
void | Dispose () |
Traverses the node list that starts with this node, clears the value of each node, and releases the resulting node list to the pool. More... | |
void | DisposeInBackground () |
Relinquishes ownership of the node and adds it to the disposal queue. More... | |
void | TrimAndDispose () |
Detaches the node's tail, clears the node's value, and releases the node to the pool. More... | |
Static Public Member Functions | |
static Linked< T > | Borrow (T value) |
Returns a pooled list node with the specified value. More... | |
Public Attributes | |
Linked< T > | next |
The next node in the list. More... | |
T | value |
The value contained in the node. More... | |
Represents a node in a singly linked list.
|
inlinestatic |
Returns a pooled list node with the specified value.
|
inline |
Traverses the node list that starts with this node, clears the value of each node, and releases the resulting node list to the pool.
|
inline |
Relinquishes ownership of the node and adds it to the disposal queue.
|
inline |
Detaches the node's tail, clears the node's value, and releases the node to the pool.
Note: Nodes should generally not be released one at a time as it will incur much greater overhead than batching releases using LinkedHeadTail<T>s.
Linked<T> Smooth.Slinq.Collections.Linked< T >.next |
The next node in the list.
T Smooth.Slinq.Collections.Linked< T >.value |
The value contained in the node.