Data Structures in C++
|
Base class for all data structures. More...
#include <DataStructure.hpp>
Public Member Functions | |
virtual int | getSize ()=0 |
Outputs the number of elements stored in the structure. More... | |
virtual std::string | getName ()=0 |
Provides the name of the data structure as a string representation. More... | |
virtual bool | isEmpty ()=0 |
Check whether the structure is empty. More... | |
virtual bool | isFull ()=0 |
Check whether the structure is full. More... | |
Base class for all data structures.
Definition at line 15 of file DataStructure.hpp.
|
pure virtual |
Provides the name of the data structure as a string representation.
Implemented in ProtectedLinkedList< T >, DynamicStack< T >, LinkedList< T >, StaticQueue< T >, StaticStack< T >, OrderedList< T >, DynamicQueue< T >, Stack< T >, and Queue< T >.
|
pure virtual |
Outputs the number of elements stored in the structure.
Implemented in ProtectedLinkedList< T >, StaticQueue< T >, StaticStack< T >, DynamicQueue< T >, and DynamicStack< T >.
|
pure virtual |
Check whether the structure is empty.
Implemented in ProtectedLinkedList< T >, StaticQueue< T >, StaticStack< T >, DynamicQueue< T >, and DynamicStack< T >.
|
pure virtual |
Check whether the structure is full.
Implemented in ProtectedLinkedList< T >, StaticQueue< T >, StaticStack< T >, DynamicQueue< T >, and DynamicStack< T >.