Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

symbol_data Class Reference

Simplifies the use of three basic data types in an array situation. It does the conversion as needed and can be told to change size. More...

#include <ParseTree.h>

List of all members.

Public Methods

 symbol_data (SymbolTableElement::symtype new_type, int new_num)
 ~symbol_data (void)
void convert (SymbolTableElement::symtype totype)

Public Attributes

SymbolTableElement::symtype type
double * dval
 array of floating point numbers. More...

int * ival
 array of integer numbers. More...

char ** sval
 array of strings. More...

int num
 number of array elements. More...


Detailed Description

Simplifies the use of three basic data types in an array situation. It does the conversion as needed and can be told to change size.

Definition at line 29 of file ParseTree.h.


Constructor & Destructor Documentation

symbol_data::symbol_data SymbolTableElement::symtype    new_type,
int    new_num
 

Definition at line 1377 of file ParseTree.C.

References dval, ival, NULL, num, sval, SymbolTableElement::symtype, and type.

symbol_data::~symbol_data void   
 

Definition at line 1388 of file ParseTree.C.


Member Function Documentation

void symbol_data::convert SymbolTableElement::symtype    totype
 

Definition at line 1393 of file ParseTree.C.

References dval, SymbolTableElement::IS_FLOAT, SymbolTableElement::IS_INT, SymbolTableElement::IS_STRING, ival, NULL, num, sval, SymbolTableElement::symtype, and type.


Member Data Documentation

double* symbol_data::dval
 

array of floating point numbers.

Definition at line 41 of file ParseTree.h.

Referenced by convert, same_double, and symbol_data.

int* symbol_data::ival
 

array of integer numbers.

Definition at line 42 of file ParseTree.h.

Referenced by convert, same_int, and symbol_data.

int symbol_data::num
 

number of array elements.

Definition at line 44 of file ParseTree.h.

Referenced by convert, and symbol_data.

char** symbol_data::sval
 

array of strings.

Definition at line 43 of file ParseTree.h.

Referenced by convert, same_string, and symbol_data.

SymbolTableElement::symtype symbol_data::type
 

Definition at line 40 of file ParseTree.h.

Referenced by convert, and symbol_data.


The documentation for this class was generated from the following files:
Generated on Wed Apr 24 02:45:12 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002