Internal temporary container for cutting and splicing nodes. More...
#include <CSCompositeSkipList.h>
Public Member Functions | |
| node_type * | Alloc (unsigned int level) |
| Allocate a dummy node. O(1) | |
| void | Free (node_type *item) |
| Delete a node. O(1) | |
| XTmpContainer (double probability, unsigned int maxLevel) | |
| Constructor O(1) | |
| ~XTmpContainer () | |
| Destructor O(n) | |
| size_type | size () const |
| Returns the size of the list. O(1) | |
| bool | empty () const |
| Returns true if the list's size is 0. O(1) | |
Public Attributes | |
| unsigned int | maxLevel |
| Maximum number of levels possible for forward pointers. | |
| unsigned int | level |
| The maximum number of levels for forward pointers currently in use on any given node. | |
| node_type * | head |
| Start node. | |
| node_type * | tail |
| End node. | |
| double | probability |
| Probability to go to the next level. | |
| size_type | items |
| Number of items in the list. | |
Internal temporary container for cutting and splicing nodes.
You should not be seeing this. Close your eyes!
| size_type | Type for unsigned variables relating te sizes. |
| node_type | Type for internal nodes that contain elements. |
| XTmpContainer< size_type, node_type >::XTmpContainer | ( | double | probability, |
| unsigned int | maxLevel | ||
| ) | [inline] |
Constructor O(1)
| probability | Probability for number of levels in a new node. |
| maxLevel | Maxmimum number of levels for this list. |
| XTmpContainer< size_type, node_type >::~XTmpContainer | ( | ) | [inline] |
Destructor O(n)
Clears list.
| node_type* XTmpContainer< size_type, node_type >::Alloc | ( | unsigned int | level | ) | [inline] |
Allocate a dummy node. O(1)
| level | Number of levels for this node. |
| void XTmpContainer< size_type, node_type >::Free | ( | node_type * | item | ) | [inline] |
Delete a node. O(1)
| item | Node to delete. |
| size_type XTmpContainer< size_type, node_type >::size | ( | ) | const [inline] |
Returns the size of the list. O(1)
| bool XTmpContainer< size_type, node_type >::empty | ( | ) | const [inline] |
Returns true if the list's size is 0. O(1)
1.7.3