-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSet.h
More file actions
37 lines (30 loc) · 689 Bytes
/
Copy pathSet.h
File metadata and controls
37 lines (30 loc) · 689 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
#ifndef SET_H
#define SET_H
#include <cstddef>
#include <string>
#include "Node.h"
// This is the Set class you need to implement.
// You don't need to use mCount if you don't want to.
// Do not edit this file.
class Set {
Node* mRoot;
size_t mCount;
public:
Set();
Set(const Set& other);
Set(Set&& other);
~Set();
size_t clear();
bool contains(const std::string& value) const;
size_t count() const;
void debug();
size_t insert(const std::string& value);
void print() const;
size_t remove(const std::string& value);
bool swivel(const std::string& value);
// Used by the autograder:
const Node* root() const {
return mRoot;
}
};
#endif