-
Notifications
You must be signed in to change notification settings - Fork 0
/
diccionario.h
33 lines (29 loc) · 1000 Bytes
/
diccionario.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
#include <iostream>
#include "arreglo.h"
#include "simbolo.h"
using namespace std;
#ifndef DICCIONARIO_DEF
#define DICIONARIO_DEF
class diccionario
{
private:
arreglo * dic_;
int * size_;
unsigned short ult_;
public:
simbolo & obtener_simbolo(const unsigned short);
diccionario(const int &);
~diccionario();
const unsigned short buscar_simbolo(const unsigned short &, const char &);
unsigned short agregar_simbolo(const unsigned short &, const char &);
void asignar_simbolo(const unsigned short, const simbolo &);
void asignar_simbolo(const unsigned short, const unsigned short &, const char &);
unsigned short obtener_P(const unsigned short) const;
unsigned short obtener_ult_();
char obtener_S(const unsigned short) const;
void resetear_diccionario();
unsigned short obtener_indice(const unsigned short &);
void imprimir_indice (const unsigned short &, ostream *);
bool cargar_ASCII();
};
#endif