drop array

This commit is contained in:
vrd
2023-01-02 20:24:17 +02:00
parent 6cbe64f927
commit 2ec892755f
7 changed files with 116 additions and 283 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
#pragma once
#include <climits>
#include "array.h"
#include <vector>
#include "person.h"
using person_id = U32;
@@ -58,7 +58,7 @@ public:
void printOldestAncestors(person_id id)const;//
private:
void commonAncestorRec(person_id id, const Array<char> &visited)const;
void commonAncestorRec(person_id id, std::vector<char> &visited)const;
void draw() const;
/* draw a line of people starting from person with id
@@ -74,8 +74,8 @@ private:
std::string treeName = "Unnamed";
unsigned numPeople = 0;
Array<Person> people; //The data for each member
Array<Array<Relation>> relations; //The relatives of each member
std::vector<Person> people; //The data for each member
std::vector<std::vector<Relation>> relations; //The relatives of each member
person_id focused_ = 0; /* the tree was draw based on this person */
person_id selected_ = 0;