Unreal Snake Game 1.0.0
Public Member Functions | Private Types | Private Attributes | List of all members
SnakeGame::TLinkedList< ElementType > Class Template Reference

#include <List.h>

Inheritance diagram for SnakeGame::TLinkedList< ElementType >:
SnakeGame::TLinkedListBase< TLinkedList< ElementType >, ElementType, TLinkedListIterator >

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 SnakeGame::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 SnakeGame::TLinkedListBase< TLinkedList< ElementType >, ElementType, TLinkedListIterator >
typedef TLinkedListIterator< TLinkedList< ElementType >, ElementType > TIterator
 
typedef TLinkedListIterator< TLinkedList< ElementType >, const ElementType > TConstIterator
 

Detailed Description

template<class ElementType>
class SnakeGame::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)

Constructor & Destructor Documentation

◆ TLinkedList() [1/2]

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

Default constructor (empty list).

◆ TLinkedList() [2/2]

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

Creates a new linked list with a single element.

Parameters
InElementThe element to add to the list.

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