engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | 所有成员列表
TLinkedListBase< ContainerType, ElementType, IteratorType > 模板类 参考

Base linked list class, used to implement methods shared by intrusive/non-intrusive linked lists 更多...

#include <List.h>

+ 类 TLinkedListBase< ContainerType, ElementType, IteratorType > 继承关系图:

Public 类型

typedef IteratorType< ContainerType, ElementType > TIterator
 Used to iterate over the elements of a linked list.
 

Public 成员函数

FORCEINLINE bool IsLinked ()
 Returns whether element is currently linked. 更多...
 
FORCEINLINE void LinkAfter (ContainerType *After)
 Adds this element to the linked list, after the specified element 更多...
 
FORCEINLINE void LinkBefore (ContainerType *Before)
 Adds this element to a list, before the given element. 更多...
 
FORCEINLINE void LinkHead (ContainerType *&Head)
 Adds this element as the head of the linked list, linking the input Head pointer to this element, so that when the element is linked/unlinked, the Head linked list pointer will be correctly updated. 更多...
 
FORCEINLINE void LinkReplace (ContainerType *Replace)
 Adds this element to the linked list, replacing the specified element. 更多...
 
 TLinkedListBase ()
 Default constructor (empty list)
 
FORCEINLINE void Unlink ()
 Removes this element from the list in constant time. 更多...
 

详细描述

template<class ContainerType, class ElementType, template< class, class > class IteratorType>
class TLinkedListBase< ContainerType, ElementType, IteratorType >

Base linked list class, used to implement methods shared by intrusive/non-intrusive linked lists

成员函数说明

◆ IsLinked()

template<class ContainerType , class ElementType , template< class, class > class IteratorType>
FORCEINLINE bool TLinkedListBase< ContainerType, ElementType, IteratorType >::IsLinked ( )
inline

Returns whether element is currently linked.

返回
true if currently linked, false otherwise

◆ LinkAfter()

template<class ContainerType , class ElementType , template< class, class > class IteratorType>
FORCEINLINE void TLinkedListBase< ContainerType, ElementType, IteratorType >::LinkAfter ( ContainerType *  After)
inline

Adds this element to the linked list, after the specified element

参数
AfterThe link to insert this element after.

◆ LinkBefore()

template<class ContainerType , class ElementType , template< class, class > class IteratorType>
FORCEINLINE void TLinkedListBase< ContainerType, ElementType, IteratorType >::LinkBefore ( ContainerType *  Before)
inline

Adds this element to a list, before the given element.

参数
BeforeThe link to insert this element before.

◆ LinkHead()

template<class ContainerType , class ElementType , template< class, class > class IteratorType>
FORCEINLINE void TLinkedListBase< ContainerType, ElementType, IteratorType >::LinkHead ( ContainerType *&  Head)
inline

Adds this element as the head of the linked list, linking the input Head pointer to this element, so that when the element is linked/unlinked, the Head linked list pointer will be correctly updated.

If Head already has an element, this functions like LinkBefore.

参数
HeadPointer to the head of the linked list - this pointer should be the main reference point for the linked list

◆ LinkReplace()

template<class ContainerType , class ElementType , template< class, class > class IteratorType>
FORCEINLINE void TLinkedListBase< ContainerType, ElementType, IteratorType >::LinkReplace ( ContainerType *  Replace)
inline

Adds this element to the linked list, replacing the specified element.

This is equivalent to calling LinkBefore(Replace); Replace->Unlink();

参数
ReplacePointer to the element to be replaced

◆ Unlink()

template<class ContainerType , class ElementType , template< class, class > class IteratorType>
FORCEINLINE void TLinkedListBase< ContainerType, ElementType, IteratorType >::Unlink ( )
inline

Removes this element from the list in constant time.

This function is safe to call even if the element is not linked.


该类的文档由以下文件生成: