Class List

Synopsis

#include <lib/base/list.hpp>

template <typename T>
class List

Description

Linked List.

Template Parameters

T -

Mentioned in

Methods

List
~List
clear
getArray
getBegin
getEnd
getIteratorBegin
getIteratorEnd
getLen
popBegin
popEnd
pushAfter
pushBefore
pushBegin
pushEnd
removeItemAndGoBack
removeItemAndGoFoward

Source

Lines 50-77 in lib/base/list.hpp.

template <typename T>
class List
{
protected:
    ListNode<T> *begin;
    ListNode<T> *end;
    uint32_t counter;

public:
    List();
    void pushBegin(T data); //tested
    void pushEnd(T data);  //tested
    void pushBefore(T data, Iterator<T> iterator); //tested
    void pushAfter(T data, Iterator<T> iterator); //tested
    bool popBegin(); //tested
    bool popEnd(); //tested
    void clear(); //tested
    T getBegin(); //tested
    T getEnd(); //tested
    uint32_t getLen(); //tested
    Iterator<T> getIteratorBegin(); //tested
    Iterator<T> getIteratorEnd(); //tested
    bool removeItemAndGoFoward(Iterator<T> &iterator); //tested
    bool removeItemAndGoBack(Iterator<T> &iterator); //tested
    T *getArray();

    virtual ~List();
};





Add Discussion as Guest

Log in