ARB
Public Member Functions | List of all members
Token Class Reference

#include <aisc_token.h>

Inheritance diagram for Token:
Inheritance graph
[legend]
Collaboration diagram for Token:
Collaboration graph
[legend]

Public Member Functions

 Token (const char *key_, const char *val_)
 
 Token (const char *key_, TokenListBlock *block_)
 
 ~Token ()
 
void append (Token *tok)
 
void set_parent (TokenList *list)
 
const charget_key () const
 
bool is_block () const
 
const TokenListBlockget_content () const
 
bool has_value () const
 
const charget_value () const
 
const Tokennext_token () const
 
const TokenListparent_list () const
 
const Tokenparent_block_token () const
 

Detailed Description

Definition at line 38 of file aisc_token.h.

Constructor & Destructor Documentation

Token::Token ( const char key_,
const char val_ 
)
inline

Definition at line 50 of file aisc_token.h.

References NULp.

Token::Token ( const char key_,
TokenListBlock block_ 
)
inline

Definition at line 147 of file aisc_token.h.

References aisc_assert.

Token::~Token ( )
inline

Definition at line 159 of file aisc_token.h.

Member Function Documentation

void Token::append ( Token tok)
inline

Definition at line 61 of file aisc_token.h.

Referenced by TokenList::append().

void Token::set_parent ( TokenList list)
inline

Definition at line 62 of file aisc_token.h.

References aisc_assert.

Referenced by TokenList::append().

const char* Token::get_key ( ) const
inline

Definition at line 64 of file aisc_token.h.

Referenced by dump_token_recursive(), get_var_string(), and TokenMatcher::matchesKeyOf().

bool Token::is_block ( ) const
inline
const TokenListBlock* Token::get_content ( ) const
inline

Definition at line 67 of file aisc_token.h.

References aisc_assert.

Referenced by Data::find_qualified_token().

bool Token::has_value ( ) const
inline

Definition at line 69 of file aisc_token.h.

References is_block().

Referenced by dump_token_recursive(), get_value(), and get_var_string().

const char* Token::get_value ( ) const
inline

Definition at line 70 of file aisc_token.h.

References aisc_assert, and has_value().

Referenced by dump_token_recursive(), get_var_string(), and TokenMatcher::matchesValueOf().

const Token* Token::next_token ( ) const
inline

Definition at line 72 of file aisc_token.h.

Referenced by nextToken(), and write_aisc().

const TokenList* Token::parent_list ( ) const
inline

Definition at line 73 of file aisc_token.h.

Referenced by dump_token_recursive(), Data::find_token(), nextToken(), and parent_block_token().

const Token * Token::parent_block_token ( ) const
inline

Member Data Documentation

TokenListBlock* Token::sub

Definition at line 45 of file aisc_token.h.

char* Token::val

Definition at line 46 of file aisc_token.h.


The documentation for this class was generated from the following file: