-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArvore_Multiway.hpp
44 lines (34 loc) · 1.03 KB
/
Arvore_Multiway.hpp
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
42
43
44
//
// Arvore_Multiway.hpp
// Trabalho ED2
//
// Created by Yan Ferreira on 6/16/16.
// Copyright © 2016 Yan Ferreira. All rights reserved.
//
#ifndef Arvore_Multiway_hpp
#define Arvore_Multiway_hpp
#include "No_Multiway.hpp"
#include "Estrutura.hpp"
#endif /* Arvore_Multiway_hpp */
//Classe com a estrutura de árvore
class Arvore_Multiway: public Estrutura{
private:
//Atributos
//Instância de No_Multiway que aponta é a raiz da árvore
No_Multiway * root;
//Método interno para destruir a árvore
void desalocaNos(No_Multiway * raiz);
//Método interno para impressão
void imprimeAuxiliar(std::string palavra, No_Multiway * raiz, std::ofstream &file);
public:
//Métodos
//Construtor
Arvore_Multiway() {root = new No_Multiway(helper.TAM_ALFABETO); num_insercoes = 0;};
//@Override
bool busca(std::string search_string);
void insere(std::string insert_string);
void imprime(std::string file_name);
void imprimeAvaliacoes() {};
//Destrutor
~Arvore_Multiway();
};