#include <script3.h>
|
enum | scrAccess {
scrPUBLIC,
scrPROTECTED,
scrPRIVATE,
scrFUNCTION,
scrLOCAL
} |
|
typedef enum scrAccess | scrAccess |
|
enum | symType {
symNORMAL = 0,
symCONST,
symDYNAMIC,
symFIFO,
symSEQUENCE,
symSTACK,
symCOUNTER,
symPOINTER,
symREF,
symARRAY,
symASSOC,
symINITIAL,
symNUMBER,
symLOCK,
symPROPERTY,
symORIGINAL,
symMODIFIED,
symTIMER,
symBOOL
} |
|
typedef enum symType | symType |
|
typedef bool(ScriptInterp::* | Method )(void) |
|
typedef const char
*(ScriptCommand::* | Check )(Line *line, ScriptImage *img) |
|
typedef bool(* | Cond )(ScriptInterp *interp, const char *v) |
|
typedef long(* | Function )(long *args, unsigned prec) |
|
typedef const char *(* | Meta )(ScriptInterp *interp, const char *token) |
|
typedef const char *(* | Parse )(ScriptCompiler *img, const char *token) |
|
typedef void(* | Init )(void) |
|
typedef struct ost::Script::_symbol | Symbol |
|
typedef struct ost::Script::_array | Array |
|
|
void | purge (void) |
|
virtual void * | first (size_t size) |
| Allocate first workspace from paged memory. More...
|
|
char * | first (char *str) |
| Allocate a string from the memory pager pool and copy the string into it's new memory area. More...
|
|
virtual void * | alloc (size_t size) |
| Allocate memory from either the currently active page, or allocate a new page for the object. More...
|
|
char * | alloc (const char *str) |
| Allocate a string from the memory pager pool and copy the string inti it's new memory area. More...
|
|
void | clean (void) |
| Clean for memory cleanup before exiting. More...
|
|
Definition at line 310 of file script3.h.
typedef const char*(ScriptCommand::* ost::Script::Check)(Line *line, ScriptImage *img) |
|
inherited |
typedef bool(* ost::Script::Cond)(ScriptInterp *interp, const char *v) |
|
inherited |
typedef long(* ost::Script::Function)(long *args, unsigned prec) |
|
inherited |
typedef void(* ost::Script::Init)(void) |
|
inherited |
typedef const char*(* ost::Script::Meta)(ScriptInterp *interp, const char *token) |
|
inherited |
typedef bool(ScriptInterp::* ost::Script::Method)(void) |
|
inherited |
typedef const char*(* ost::Script::Parse)(ScriptCompiler *img, const char *token) |
|
inherited |
Enumerator |
---|
scrPUBLIC |
|
scrPROTECTED |
|
scrPRIVATE |
|
scrFUNCTION |
|
scrLOCAL |
|
Definition at line 113 of file script3.h.
Enumerator |
---|
symNORMAL |
|
symCONST |
|
symDYNAMIC |
|
symFIFO |
|
symSEQUENCE |
|
symSTACK |
|
symCOUNTER |
|
symPOINTER |
|
symREF |
|
symARRAY |
|
symASSOC |
|
symINITIAL |
|
symNUMBER |
|
symLOCK |
|
symPROPERTY |
|
symORIGINAL |
|
symMODIFIED |
|
symTIMER |
|
symBOOL |
|
Definition at line 123 of file script3.h.
ost::ScriptSymbols::ScriptSymbols |
( |
| ) |
|
ost::ScriptSymbols::~ScriptSymbols |
( |
| ) |
|
static void ost::Script::addConditional |
( |
const char * |
name, |
|
|
Cond |
test |
|
) |
| |
|
staticinherited |
static void ost::Script::addFunction |
( |
const char * |
name, |
|
|
unsigned |
count, |
|
|
Function |
i |
|
) |
| |
|
staticinherited |
virtual void* MemPager::alloc |
( |
size_t |
size | ) |
|
|
protectedvirtualinherited |
Allocate memory from either the currently active page, or allocate a new page for the object.
- Parameters
-
size | size of memory to allocate. |
- Returns
- pointer to allocated memory.
Reimplemented in SharedMemPager.
char* MemPager::alloc |
( |
const char * |
str | ) |
|
|
protectedinherited |
Allocate a string from the memory pager pool and copy the string inti it's new memory area.
This checks only the last active page for available space before allocating a new page.
- Parameters
-
str | string to allocate and copy into paged memory pool. |
- Returns
- copy of string from allocated memory.
static bool ost::Script::append |
( |
Symbol * |
sym, |
|
|
const char * |
value |
|
) |
| |
|
staticinherited |
void MemPager::clean |
( |
void |
| ) |
|
|
protectedinherited |
Clean for memory cleanup before exiting.
static void ost::Script::clear |
( |
Symbol * |
sym | ) |
|
|
staticinherited |
static bool ost::Script::commit |
( |
Symbol * |
sym, |
|
|
const char * |
value |
|
) |
| |
|
staticinherited |
static unsigned ost::Script::count |
( |
Symbol * |
sym | ) |
|
|
staticinherited |
const char* ost::ScriptSymbols::cstring |
( |
const char * |
str | ) |
|
|
inline |
static const char* ost::Script::extract |
( |
Symbol * |
sym | ) |
|
|
staticinherited |
Symbol* ost::ScriptSymbols::find |
( |
const char * |
id, |
|
|
unsigned short |
size = 0 |
|
) |
| |
virtual void* MemPager::first |
( |
size_t |
size | ) |
|
|
protectedvirtualinherited |
Allocate first workspace from paged memory.
This method scans all currently allocated blocks for available space before adding new pages and hence is both slower and more efficient.
- Parameters
-
size | size of memory to allocate. |
- Returns
- pointer to allocated memory.
Reimplemented in SharedMemPager.
char* MemPager::first |
( |
char * |
str | ) |
|
|
protectedinherited |
Allocate a string from the memory pager pool and copy the string into it's new memory area.
This method allocates memory by first searching for an available page, and then allocating a new page if no space is found.
- Parameters
-
str | string to allocate and copy into paged memory pool. |
- Returns
- copy of string from allocated memory.
unsigned ost::ScriptSymbols::gather |
( |
Symbol ** |
idx, |
|
|
unsigned |
max, |
|
|
const char * |
prefix, |
|
|
const char * |
suffix |
|
) |
| |
unsigned ost::ScriptSymbols::gathertype |
( |
Symbol ** |
idx, |
|
|
unsigned |
max, |
|
|
const char * |
prefix, |
|
|
symType |
group |
|
) |
| |
static unsigned ost::Script::getIndex |
( |
const char * |
id | ) |
|
|
staticinherited |
int MemPager::getPages |
( |
void |
| ) |
|
|
inlineinherited |
Return the total number of pages that have been allocated for this memory pool.
- Returns
- number of pages allocated.
Definition at line 181 of file misc.h.
static bool ost::Script::isFunction |
( |
Name * |
scr | ) |
|
|
staticinherited |
static bool ost::Script::isPrivate |
( |
Name * |
scr | ) |
|
|
staticinherited |
static bool ost::Script::isScript |
( |
Name * |
scr | ) |
|
|
staticinherited |
static bool ost::Script::isSymbol |
( |
const char * |
id | ) |
|
|
staticinherited |
Symbol* ost::ScriptSymbols::make |
( |
const char * |
id, |
|
|
unsigned short |
size |
|
) |
| |
void ost::ScriptSymbols::purge |
( |
void |
| ) |
|
|
protected |
Symbol* ost::ScriptSymbols::setReference |
( |
const char * |
id, |
|
|
Symbol * |
target |
|
) |
| |
static unsigned ost::Script::storage |
( |
Symbol * |
sym | ) |
|
|
staticinherited |
static bool ost::Script::symindex |
( |
Symbol * |
sym, |
|
|
short |
offset |
|
) |
| |
|
staticinherited |
static bool ost::Script::use |
( |
const char * |
name | ) |
|
|
staticinherited |
const char* ost::Script::access_host |
|
staticinherited |
const char* ost::Script::access_pass |
|
staticinherited |
const char* ost::Script::access_user |
|
staticinherited |
const char* ost::Script::altplugins |
|
staticinherited |
const char* ost::Script::apps_extensions |
|
staticinherited |
const char* ost::Script::apps_prefix |
|
staticinherited |
unsigned ost::Script::autoStepping |
|
staticinherited |
char ost::Script::decimal |
|
staticinherited |
const char* ost::Script::etc_prefix |
|
staticinherited |
const char* ost::Script::exec_extensions |
|
staticinherited |
bool ost::Script::exec_funcs |
|
staticinherited |
const char* ost::Script::exec_prefix |
|
staticinherited |
const char* ost::Script::exec_token |
|
staticinherited |
const char* ost::Script::exit_token |
|
staticinherited |
bool ost::Script::fastStart |
|
staticinherited |
unsigned ost::Script::fastStepping |
|
staticinherited |
const char* ost::Script::log_prefix |
|
staticinherited |
size_t ost::Script::pagesize |
|
staticinherited |
const char* ost::Script::plugins |
|
staticinherited |
unsigned ost::Script::symlimit |
|
staticinherited |
unsigned ost::Script::symsize |
|
staticinherited |
bool ost::Script::use_definitions |
|
staticinherited |
bool ost::Script::use_funcs |
|
staticinherited |
bool ost::Script::use_macros |
|
staticinherited |
bool ost::Script::use_merge |
|
staticinherited |
bool ost::Script::use_prefix |
|
staticinherited |
bool ost::Script::useBigmem |
|
staticinherited |
const char* ost::Script::var_prefix |
|
staticinherited |
The documentation for this class was generated from the following file: