This repository has been archived by the owner on Aug 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
list.h
95 lines (87 loc) · 1.84 KB
/
list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#ifndef LIST_H
#define LIST_H
#include<vector>
#include<unistd.h>
#include<iostream>
#include<curses.h>
#include<cstring>
#include<string>
#include<fstream>
#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
extern bool thisFile;
extern bool Dash;
extern bool addDash;
extern char vi;
class List{
public:
List();
~List();
void insert(char c, int dd);
void insertEnd(bool b);
void insertLine(char string[100]);
void print(bool inV);
void insertF(char c);
void deleteSingle();
private:
class Node{
public:
Node(char c, Node *next)
{m_c = c; m_next = next;}
char m_c;
Node *m_next;
};
Node *m_head;
};
class listLine{
public:
listLine(){full = false;inView = false;}
void insert(char string[100]);
void insertChord(char chord[22]);
void print();
bool isFull();
void insertLine(char string[100], int gS);
void addToView();
void removeFromView();
void deleteSingle();
private:
bool full;
bool inView;
List EString;
List bString;
List gString;
List dString;
List aString;
List eString;
};
class megaList{
public:
megaList(){m_head=NULL;m_tail=NULL;cS=1;numInView=0;view_head=NULL;view_tail=NULL;}
~megaList();
void insert(char string[100], bool file);
void print();
void fileInsert();
int curString();
void incCurString();
void shiftDown();
void shiftUp();
void viewCount();
void deleteSingle();
private:
class listLineNode{
public:
listLineNode(listLine *lLine, listLineNode *next)
{m_lLine = lLine; m_next = next;}
listLine *m_lLine;
listLineNode *m_next;
listLineNode *m_prev;
};
listLineNode *m_head;
listLineNode *m_tail;
listLineNode *view_head;
listLineNode *view_tail;
int cS;
int numInView;
};
#endif