AData Class Reference
This is a value container.
More...
#include <AData.h>
List of all members.
|
Public Types |
| enum | VALUE_TYPE {
bool_TYPE = -100,
uint32_TYPE,
int32_TYPE,
float_TYPE,
double_TYPE,
string_TYPE,
charstar_TYPE,
pointer_TYPE,
variable_TYPE,
arrayelement_TYPE,
arrayelementptr_TYPE,
variablearrayindex_TYPE,
arrayindex_TYPE,
array_TYPE,
unset_TYPE
} |
| | These codes decribe the things that can possibily be stored in an AData object. More...
|
Public Member Functions |
|
| AData (int32 typecode) |
| | Constructor that specifies the type that will be held.
|
|
| AData () |
| | Empty constructor - contents filled in later.
|
|
| AData (void *pointer, const char *typestring) |
| | Constructor for an AData object holding a pointer to an object.
|
|
| ~AData () |
| | Destructor - cleans up the type string and anything else we allocated.
|
|
const char * | get_string () const |
| | Gets the string in this container.
|
|
void | set_string (string str) |
| | Sets the string in this container.
|
|
bool | is_string () const |
| | Does this contain a string?
|
|
void | setType (int32 typecode) |
| | Sets the type of value stored in this container.
|
|
int32 | getType () const |
| | Gets the type of the value stored in this container.
|
|
void | setNext (AData *next) |
| | Sets the next AData object if this object is part of a list.
|
|
AData * | getNext () const |
| | Gets the next AData object if this object is part of a list.
|
|
const char * | getTypeString () const |
| | Returns the type string.
|
|
void | setTypeString (const char *str) |
| | Sets the type string.
|
|
string | get_type_name () |
| | Return a string with the data type.
|
|
const char * | getForVariable () const |
| | Return the variable name.
|
|
void | setForVariable (const char *str) |
| | Set the variable name.
|
|
void | print_value (ostream &outputstream) const |
| | Print the value of the datum according to its type.
|
|
void | copy_memory_to_value (void *address) |
| | Copies the value at the address given by casting to the current type.
|
|
void | copy_value_to_memory (void *address) |
| | Writes the value to the address given by casting to the current type.
|
|
void | copy (const AData *data) |
| | Copies the contents of the object passed in.
|
Friends |
|
class | boost::serialization::access |
Detailed Description
This is a value container.
It is used to store variables and method arguments in CLI. A built-in types (various sizes, signed and unsigned) are supported, as are string (C++ string class), char*, and pointers to instances of classes declared using the perl script extracted annotations.
- See also:
- Symtab
SimpleExpr
Expr
CliArgList
GlobalTable
Member Enumeration Documentation
These codes decribe the things that can possibily be stored in an AData object.
These values are used to set the type field.
The documentation for this class was generated from the following file:
- /home/weinberg/src/BIE/include/AData.h