-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauxiliares.h
45 lines (35 loc) · 1.18 KB
/
auxiliares.h
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
45
/**
* NOMBRE_DE_ARCHIVO:
* auxiliares.h
*
* DESCRIPCION:
* Funciones auxiliares del Arbol B+.
*
* AUTORES:
* Acuña Yeomans Eduardo
* Valle Ruiz Francisco Manuel
*/
#ifndef AUXILIARES_H_
#define AUXILIARES_H_
#include <iostream>
#include "tipos.h"
#include "arbol_b.h"
bool nodo_lleno(Nodo *n);
bool nodo_a_mitad(Nodo *n);
int buscar_hijo_en_nodo(Nodo *n, int k);
int buscar_llave_en_nodo(Nodo *n, int k);
Nodo *buscar_hoja(Nodo *n, int k);
Registro *crear_registro(int k);
void desplazar_en_hoja_a_la_izquierda(Nodo *n, int desde, int hasta, int e);
void desplazar_en_intermedio_a_la_izquierda(Nodo *n, int desde, int hasta, int e);
void desplazar_en_hoja_a_la_derecha(Nodo *n, int desde, int hasta, int e);
void desplazar_en_intermedio_a_la_derecha(Nodo *n, int desde, int hasta, int e);
void copiar_hoja(Nodo *origen, Nodo *destino, int desde, int hasta, int e);
void copiar_intermedio(Nodo *origen, Nodo *destino, int desde, int hasta, int e);
void eliminar_registros_en_nodo(Nodo *n);
void pintar_nodo(Nodo *n);
void pintar_nodo_sin_formato(Nodo *n);
void pintar_nivel(Nodo *n);
void pintar_nivel_detalle(Nodo *n);
void inspeccionar_nodo(Nodo *n);
#endif // AUXILIARES_H_