#include <list.h>
Public Member Functions | |
List (void) | |
virtual void | pushBack (const T element)=0 |
virtual void | popBack (void)=0 |
virtual void | pushFront (const T element)=0 |
virtual void | popFront (void)=0 |
virtual void | insert (const T element, unsigned int index)=0 |
virtual void | remove (unsigned int index)=0 |
seal::List< T >::List | ( | void | ) | [inline] |
Default constructor. Does nothing.
virtual void seal::List< T >::pushBack | ( | const T | element | ) | [pure virtual] |
In a concrete derived class, this function will append (or push) an element to the back (or end) of the data structure.
Implemented in seal::LinkedList< T >, seal::Vector< T >, seal::LinkedList< seal::BinTreeNode< T > * >, and seal::Vector< seal::Array1D< T > >.
virtual void seal::List< T >::popBack | ( | void | ) | [pure virtual] |
In a concrete derived class, this function will pop an element from the back (or end) of the data structure.
Implemented in seal::LinkedList< T >, seal::Vector< T >, seal::LinkedList< seal::BinTreeNode< T > * >, seal::Vector< seal::Vector >, and seal::Vector< seal::Array1D< T > >.
virtual void seal::List< T >::pushFront | ( | const T | element | ) | [pure virtual] |
In a concrete derived class, this function will append (or push) an element to the front (or begining) of the data structure.
Implemented in seal::LinkedList< T >, seal::Vector< T >, seal::LinkedList< seal::BinTreeNode< T > * >, and seal::Vector< seal::Array1D< T > >.
virtual void seal::List< T >::popFront | ( | void | ) | [pure virtual] |
In a concrete derived class, this function will pop an element from the front (or begining) of the data structure.
Implemented in seal::LinkedList< T >, seal::Vector< T >, seal::LinkedList< seal::BinTreeNode< T > * >, seal::Vector< seal::Vector >, and seal::Vector< seal::Array1D< T > >.
virtual void seal::List< T >::insert | ( | const T | element, | |
unsigned int | index | |||
) | [pure virtual] |
In a concrete derived clas, this function will insert an element at specified index in the data structure.
element | The element to be inserted. | |
index | The index where the element should be inserted. |
Implemented in seal::LinkedList< T >, seal::Vector< T >, seal::LinkedList< seal::BinTreeNode< T > * >, and seal::Vector< seal::Array1D< T > >.
virtual void seal::List< T >::remove | ( | unsigned int | index | ) | [pure virtual] |
In a concrete derived class, this function will remove the element at the specified index.
index | The index of the element which should be removed. |
Implemented in seal::LinkedList< T >, seal::Vector< T >, seal::LinkedList< seal::BinTreeNode< T > * >, seal::Vector< seal::Vector >, and seal::Vector< seal::Array1D< T > >.