Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Smooth.Slinq.Collections.Linked< T > Class Template Reference

Represents a node in a singly linked list. More...

Inheritance diagram for Smooth.Slinq.Collections.Linked< T >:

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...
 
value
 The value contained in the node. More...
 

Detailed Description

Represents a node in a singly linked list.

Member Function Documentation

static Linked<T> Smooth.Slinq.Collections.Linked< T >.Borrow ( value)
inlinestatic

Returns a pooled list node with the specified value.

void Smooth.Slinq.Collections.Linked< T >.Dispose ( )
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.

void Smooth.Slinq.Collections.Linked< T >.DisposeInBackground ( )
inline

Relinquishes ownership of the node and adds it to the disposal queue.

void Smooth.Slinq.Collections.Linked< T >.TrimAndDispose ( )
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.

Member Data Documentation

The next node in the list.

The value contained in the node.


The documentation for this class was generated from the following file: