#include <script3.h>
Inheritance diagram for ost::ScriptSymbols:
Collaboration diagram for ost::ScriptSymbols:
Public Types
enum
symType {
symNORMAL = 0,
symCONST,
symDYNAMIC,
symFIFO,
symSEQUENCE,
symSTACK,
symCOUNTER,
symPOINTER,
symREF,
symARRAY,
symASSOC,
symINITIAL,
symNUMBER,
symLOCK,
symPROPERTY,
symORIGINAL,
symMODIFIED,
symTIMER,
symBOOL
}
typedef bool(ScriptInterp::*
Method )(void)
typedef long(*
Function )(long *args, unsigned prec)
typedef void(*
Init )(void)
Public Member Functions
const char *
cstring (const char *str)
unsigned
gather (
Symbol **idx, unsigned max, const char *prefix, const char *suffix)
Symbol *
find (const char *id, unsigned short size=0)
Symbol *
make (const char *id, unsigned short size)
Return the total number of pages that have been allocated for this memory pool.
More...
Static Public Member Functions
static bool
use (const char *name)
static unsigned
getIndex (const char *id)
Data Fields
Static Public Attributes
Protected Member Functions
virtual void *
first (size_t size)
Allocate first workspace from paged memory.
More...
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...
Clean for memory cleanup before exiting.
More...
Protected Attributes
Static Protected Attributes
Detailed Description
Member Typedef Documentation
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 |
Member Enumeration Documentation
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.
Constructor & Destructor Documentation
ost::ScriptSymbols::ScriptSymbols
(
)
ost::ScriptSymbols::~ScriptSymbols
(
)
Member Function Documentation
static void ost::Script::addConditional
(
const char *
name,
)
staticinherited |
static void ost::Script::addFunction
(
const char *
name,
unsigned
count,
)
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,
)
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,
)
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 |
Field Documentation
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:
Generated on Dec 21, 2017 for
commoncpp2-1.8.1,
ccrtp-1.7.2,
libzrtpcpp-2.3.4,
ccscript3-1.1.7,
ccaudio2-1.0.0 and
bayonne2-2.3.2
(after installation in /usr/local/)
by
doxygen 1.8.6