drop array
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user