cis22c/03-lists/LinkedList.h
2024-04-28 11:54:46 -07:00

38 lines
614 B
C++

// Specification file for the LinkedList class
// Written By: Iurii Tatishchev
// Reviewed by: Iurii Tatishchev
// IDE: CLion
#ifndef LINKED_LIST_H
#define LINKED_LIST_H
#include "Park.h"
class LinkedList {
private:
struct Node {
Park park;
Node *next;
};
Node *head;
int length;
public:
LinkedList(); // constructor
~LinkedList(); // destructor
// Linked list operations
int getLength() const { return length; }
void insertNode(Park);
bool deleteNode(string);
void displayList() const;
bool searchList(string, Park &) const;
};
#endif