Iterator class.
More...
#include <dequeue_list.h>
template<typename T>
class dequeue_list< T >::Iterator
Iterator class.
◆ Iterator()
template<typename T>
dequeue_list< T >::Iterator::Iterator |
( |
const std::shared_ptr< node > & | q | ) |
|
|
inlineexplicitnoexcept |
Construct a new Iterator object.
- Parameters
-
◆ back()
back function
- Returns
- T the back of the dequeue
◆ begin()
pointer to the front of the dequeue
- Returns
- Iterator
◆ dequeue_list() [1/2]
Copy constructor for dequeue list class.
- Parameters
-
q | the dequeue we want to copy |
◆ dequeue_list() [2/2]
Construct a new dequeue list object.
- Parameters
-
◆ end()
pointer to the end of the dequeue
- Returns
- Iterator
◆ front()
top function
- Returns
- T the top of the dequeue
◆ operator!=()
operator != for type Iterator
- Parameters
-
- Returns
- true if curr_root == it.curr_root
-
false otherwise
◆ operator*()
operator * for type Iterator
- Returns
- T the value of the node
◆ operator++() [1/2]
◆ operator++() [2/2]
◆ operator=() [1/2]
operator = for dequeue list class
- Parameters
-
q | the dequeue we want to copy |
- Returns
- dequeue_list&
◆ operator=() [2/2]
= operator for Iterator type
- Parameters
-
current | smart pointer of type node |
- Returns
- Iterator&
◆ push_back()
push_back function
- Parameters
-
key | the key to be pushed back |
◆ push_front()
push_front function
- Parameters
-
key | the key to be pushed front |
◆ size()
size functon
- Returns
- size_t the size of the stack
The documentation for this class was generated from the following file: