OHOS::List< T >
Overview
Related Modules:
Description:
Defines a linked list template class, which implements the data structure of bidirectional linked list and provides basic functions such as adding, deleting, inserting, clearing, popping up, and obtaining the size of the linked list.
Since:
1.0
Version:
1.0
Summary
Public Member Functions
List () |
A default constructor used to create a List instance. The initial size is 0. |
~List () |
A destructor used to delete the List instance. |
Front () const |
|
Back () const |
|
PushBack (T data) |
|
PushFront (T data) |
|
PopBack () |
|
PopFront () |
|
Inserts data before a specified node, which follows the inserted data node. |
|
Clear () |
|
Head () const |
ListNode< T > |
Tail () const |
ListNode< T > |
Begin () const |
ListNode< T > |
End () const |
const ListNode< T > |
ListNode< T > Obtains the address of the node following the specified node. |
|
IsEmpty () const |
|
Size () const |
|
operator new (size_t size) |
|
operator delete (void p) |