aboutsummaryrefslogtreecommitdiff
path: root/People.h
diff options
context:
space:
mode:
Diffstat (limited to 'People.h')
-rw-r--r--People.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/People.h b/People.h
index 4dcae96..1f9f869 100644
--- a/People.h
+++ b/People.h
@@ -1,6 +1,6 @@
#pragma once
-#include <vector>
+#include <list>
#include <string>
#include "Artist.h"
@@ -15,16 +15,15 @@ public:
std::string to_string();
public:
- void add_artist(ArtistData data);
+ void add_artist(const ArtistData & data);
void remove_artist(Artist & artist);
- Artist & get_artist(size_t index);
- size_t artists_size();
+ std::list<Artist *> get_artists();
void update();
private:
- std::vector<Artist *> artists;
+ std::list<Artist *> artists;
Museum & museum;
};