PH Logo
Logo intepreter modeled after UCB Logo.
Public Member Functions
phlogo::Thing Class Reference

#include <Thing.h>

List of all members.

Public Member Functions

 Thing (const std::string &s)
void set (pThing thing)
void set (const std::string &s)
void set (long num)
void set (double num)
List allocList ()
Array allocArray (int size)
List allocList (const tListArray &list)
Array allocArray (const tListArray &array)
std::string getWord ()
long getLong ()
double getDouble ()
List getList ()
Array getArray ()
long asLong ()
double asDouble ()
bool isWord ()
bool isLong ()
bool isDouble ()
bool isList ()
bool isArray ()
std::string str ()
std::string type ()

Detailed Description

List or a word.

Definition at line 27 of file Thing.h.


Member Function Documentation

List phlogo::Thing::allocList ( )

Allocate and return new reference objects.

Definition at line 43 of file Thing.cpp.

string phlogo::Thing::getWord ( )

return the thing as a word or a list.

Definition at line 130 of file Thing.cpp.

bool phlogo::Thing::isWord ( )

Work out if the thing is a word or a list otherwise it's an array.

Definition at line 80 of file Thing.cpp.

void phlogo::Thing::set ( pThing  thing)

Set the thing, or value semantic objects.

Definition at line 27 of file Thing.cpp.

string phlogo::Thing::str ( )

return the value of this as a string

Definition at line 190 of file Thing.cpp.

std::string phlogo::Thing::type ( )

teh name of the type, for debugging.

Definition at line 63 of file Thing.cpp.


The documentation for this class was generated from the following files:
 All Classes Functions