#include <object.h>
Public Types | |
typedef notboost::shared_ptr< Object > | PtrType |
typedef std::vector< PtrType > | ArrayType |
typedef std::map< std::string, PtrType > | HashType |
typedef Token | TokenType |
enum | obj_types { type_notalloc = 0, type_scalar, type_array, type_hash, type_token } |
Public Methods | |
Object () | |
Object (obj_types t) throw (tptexception) | |
Object (const Object &obj) throw (tptexception) | |
Object (const std::string &s) | |
Object (const char *str) | |
Object (const ArrayType &a) | |
Object (const HashType &h) | |
Object (const TokenType &tok) | |
~Object () | |
void | deallocate () |
Object & | operator= (const std::string &s) |
Object & | operator= (const ArrayType &a) |
Object & | operator= (const HashType &h) |
Object & | operator= (const TokenType &tok) |
Object & | operator= (const Object &obj) throw (tptexception) |
Object & | operator= (obj_types t) throw (tptexception) |
operator bool () | |
bool | exists (const std::string &key) |
obj_types | gettype () const |
void | settype (obj_types t) throw (tptexception) |
std::string & | scalar () throw (tptexception) |
ArrayType & | array () throw (tptexception) |
HashType & | hash () throw (tptexception) |
TokenType & | token () throw (tptexception) |
Use Object::gettype() to determine the type of object before calling the corresponding method: Object::scalar(), Object::array(), Object::hash().
|
Construct an object of the specified type.
|
|
Construct a copy of another object.
|
|
Construct an object of a scalar std::string.
|
|
Construct an object of a scalar std::string from a char*.
|
|
Construct an object of a array of objects.
|
|
Construct an object of a hash of objects.
|
|
Construct an object of a token of objects.
|
|
Get this object's array of objects
|
|
Deallocate this object and any objects it cointains.
|
|
Tell if a key exists in a hash table.
|
|
Get this object's hash of objects
|
|
Change an object's type to an empty object of the specified type.
|
|
Copy another object to this object.
|
|
Copy a token of objects to this object.
|
|
Copy a hash of objects to this object.
|
|
Copy an array of objects to this object.
|
|
Copy a scalar string to this object.
|
|
Get this object's string
|
|
Change an object's type to an empty object of the specified type.
|
|
Get this object's token
|