Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TLinkedList< ElementType > Class Template Reference

#include <List.h>

+ Inheritance diagram for TLinkedList< ElementType >:
+ Collaboration diagram for TLinkedList< ElementType >:

Public Member Functions

 TLinkedList ()
 
 TLinkedList (const ElementType &InElement)
 
FORCEINLINE ElementType * operator-> ()
 
FORCEINLINE const ElementType * operator-> () const
 
FORCEINLINE ElementType & operator* ()
 
FORCEINLINE const ElementType & operator* () const
 
- Public Member Functions inherited from TLinkedListBase< TLinkedList< ElementType >, ElementType, TLinkedListIterator >
 TLinkedListBase ()
 
FORCEINLINE void Unlink ()
 
FORCEINLINE void LinkBefore (TLinkedList< ElementType > *Before)
 
FORCEINLINE void LinkAfter (TLinkedList< ElementType > *After)
 
FORCEINLINE void LinkReplace (TLinkedList< ElementType > *Replace)
 
FORCEINLINE void LinkHead (TLinkedList< ElementType > *&Head)
 
FORCEINLINE bool IsLinked ()
 
FORCEINLINE TLinkedList< ElementType > ** GetPrevLink () const
 
FORCEINLINE TLinkedList< ElementType > * GetNextLink () const
 
FORCEINLINE TLinkedList< ElementType > * Next ()
 

Private Types

typedef TLinkedListBase< TLinkedList< ElementType >, ElementType, TLinkedListIteratorSuper
 

Private Attributes

ElementType Element
 

Additional Inherited Members

- Public Types inherited from TLinkedListBase< TLinkedList< ElementType >, ElementType, TLinkedListIterator >
typedef TLinkedListIterator< TLinkedList< ElementType >, ElementType > TIterator
 
typedef TLinkedListIterator< TLinkedList< ElementType >, const ElementType > TConstIterator
 

Detailed Description

template<class ElementType>
class TLinkedList< ElementType >

Encapsulates a link in a single linked list with constant access time.

This linked list is non-intrusive, i.e. it stores a copy of the element passed to it (typically a pointer)

Definition at line 282 of file List.h.

Member Typedef Documentation

◆ Super

template<class ElementType >
typedef TLinkedListBase<TLinkedList<ElementType>, ElementType, TLinkedListIterator> TLinkedList< ElementType >::Super
private

Definition at line 284 of file List.h.

Constructor & Destructor Documentation

◆ TLinkedList() [1/2]

template<class ElementType >
TLinkedList< ElementType >::TLinkedList ( )
inline

Default constructor (empty list).

Definition at line 288 of file List.h.

◆ TLinkedList() [2/2]

template<class ElementType >
TLinkedList< ElementType >::TLinkedList ( const ElementType & InElement)
inlineexplicit

Creates a new linked list with a single element.

Parameters
InElementThe element to add to the list.

Definition at line 298 of file List.h.

Member Function Documentation

◆ operator*() [1/2]

template<class ElementType >
FORCEINLINE ElementType & TLinkedList< ElementType >::operator* ( )
inline

Definition at line 314 of file List.h.

◆ operator*() [2/2]

template<class ElementType >
FORCEINLINE const ElementType & TLinkedList< ElementType >::operator* ( ) const
inline

Definition at line 318 of file List.h.

◆ operator->() [1/2]

template<class ElementType >
FORCEINLINE ElementType * TLinkedList< ElementType >::operator-> ( )
inline

Definition at line 306 of file List.h.

◆ operator->() [2/2]

template<class ElementType >
FORCEINLINE const ElementType * TLinkedList< ElementType >::operator-> ( ) const
inline

Definition at line 310 of file List.h.

Member Data Documentation

◆ Element

template<class ElementType >
ElementType TLinkedList< ElementType >::Element
private

Definition at line 325 of file List.h.


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