Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

database Class Reference

#include <database.h>

Collaboration diagram for database:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 database ()
 ~database ()
void borrartodo ()
bool agregar (tabla *&aux)
bool buscar (tabla *aux)
tablabuscar (char *nombre)
bool borrar (char *nombre)

Public Attributes

char * nombre
tablatablas

Detailed Description

Definition at line 10 of file database.h.


Constructor & Destructor Documentation

database::database  ) 
 

Definition at line 10 of file database.cpp.

References nombre, and tablas.

database::~database  ) 
 

Definition at line 16 of file database.cpp.

References tabla::next, nombre, and tablas.


Member Function Documentation

bool database::agregar tabla *&  aux  ) 
 

Definition at line 43 of file database.cpp.

References buscar(), tabla::next, and tablas.

Referenced by compilador::abrirtabla(), and compilador::an_CREATETABLE().

Here is the call graph for this function:

bool database::borrar char *  nombre  ) 
 

Definition at line 87 of file database.cpp.

References tabla::next, tabla::nombre, and tablas.

Referenced by compilador::an_DROPTABLE().

void database::borrartodo  ) 
 

Definition at line 28 of file database.cpp.

References tabla::next, nombre, and tablas.

Referenced by compilador::compilar(), compilador::compilar_archivo(), and compilador::compilar_sentencia().

tabla * database::buscar char *  nombre  ) 
 

Definition at line 75 of file database.cpp.

References tabla::next, tabla::nombre, and tablas.

bool database::buscar tabla aux  ) 
 

Definition at line 63 of file database.cpp.

References tabla::next, tabla::nombre, and tablas.

Referenced by agregar(), compilador::an_ALTERTABLE(), compilador::an_DELETE(), compilador::an_INSERT(), compilador::an_PACKTABLE(), compilador::an_SELECT(), and compilador::an_UPDATE().


Member Data Documentation

char* database::nombre
 

Definition at line 14 of file database.h.

Referenced by borrartodo(), database(), and ~database().

tabla* database::tablas
 

Definition at line 15 of file database.h.

Referenced by agregar(), borrar(), borrartodo(), buscar(), database(), and ~database().


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 15:51:11 2005 for TecnoDB by  doxygen 1.4.4