-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlphabetNode.h
More file actions
41 lines (31 loc) · 898 Bytes
/
AlphabetNode.h
File metadata and controls
41 lines (31 loc) · 898 Bytes
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
//
// Created by Kyle on 7/27/2020.
//
#ifndef PROJECT3_ALPHABETNODE_H
#define PROJECT3_ALPHABETNODE_H
#include <map>
namespace _AlphabetNode {
class AlphabetNode {
private:
unsigned int count;
char letter;
AlphabetNode* parent;
std::map<char, AlphabetNode*> subletters;
void selfToAncestorsString(std::string *);
public:
AlphabetNode();
AlphabetNode(char, AlphabetNode*);
AlphabetNode(AlphabetNode *pNode);
~AlphabetNode();
char getLetter() const;
unsigned int getCount() const;
void incCount();
void decCount();
AlphabetNode* getSubletter(char);
AlphabetNode* addSubletter(char);
void delSubletter(char);
std::map<char, AlphabetNode*>* getSubletters();
std::string getRootToSelfString();
};
}
#endif //PROJECT3_ALPHABETNODE_H