Class xbLinkList and xbLinkListOrd
Chapter Updated 07/02/25
| Method | Description |
|---|---|
| xbLinkList() | Constructor |
| ~xbLinkList() | Destructor |
| xbLinkListNode | Return the head node |
| xbLinkListNode | Return the last node |
| xbLinkListNode | Return the node for a given number |
| void Clear() | Clear the linked list |
| xbUInt32 GetNodeCnt() const | Retrun the number of nodes in the linked list |
| xbInt16 InsertAtEnd( const xbNodeType &xbLLN ) | Insert a node at the end os the list |
| xbInt16 InsertAtEnd( const xbNodeType &ntKey, xbLinkListNode | Insert a keyed node at the end of the list |
| xbInt16 InsertAtFront( const xbNodeType &xbLLN ) | Insert a node in the beginning of the list |
| xbInt16 RemoveByVal( const xbNodeType &xbLLN ) | Remove a node for a given value |
| xbInt16 RemoveFromEnd() | Remove a node from the front of the list |
| xbInt16 RemoveFromEnd( xbNodeType &xbLLN ) | Remove a node from the end of the list, returning data |
| xbInt16 RemoveFromFront( xbNodeType &xbLLN ) | Remove a node from the front of the list, returning node data |
| xbInt16 SearchFor( const xbNodeType &xbLLN ) | Search for a node |
| Method | Description |
|---|---|
| xbLinkListOrd() | Constructor |
| ~xbLinkListOrd() | Destructor |
| void Clear() | Clear the linked list |
| xbLinkListNode | Return the head node |
| xbLinkListNode | Return the end node |
| xbLinkListNode | Return node for a given key |
| xbInt16 GetDataForKey( const xbNodeType &ntKey, xbString &sData ) | Get the node for a given key |
| xbBool GetDupKeys() | Get the dup key setting. xbTrue - allow dup keys xbFalse - dup keys not allowed |
| xbUInt32 GetNodeCnt() const xbUInt32 GetNodeCnt( const xbString &sNodeKey ) const | Get the node count |
| xbInt16 InsertKey( const xbNodeType &ntKey ) xbInt16 InsertKey( const xbNodeType &ntKey, const xbString &sData ) xbInt16 InsertKey( const xbNodeType &ntKey, xbUInt32 ulData ) | Insert into list |
| xbBool KeyExists( const xbNodeType &ntKey ) const | Check for existence of key |
| xbInt16 RemoveKey( const xbNodeType &ntKey ) | Remove a node from the list, based on key |
| xbInt16 RemoveFromEnd( xbNodeType &ntKey ) | Remove node from end of list |
| xbInt16 RemoveFromFront( xbNodeType &ntKey ) xbInt16 RemoveFromFront() | Remove node from front of list |
| void SetDupKeys( xbBool bAllowDupKeys ) | Set dup key setting xbTrue - allow dup keys xbFalse - dup keys not allowed |
| xbInt16 UpdateForKey( const xbNodeType &ntKey, const xbString &sData ) | Update node for a given key |
