Pol  Revision:cb584c9
Pol::Bscript::UserFunction Class Reference

#include <userfunc.h>

Public Types

typedef std::vector< unsigned > Addresses
typedef std::vector< UserParamParameters

Public Member Functions

 UserFunction ()
 ~UserFunction ()

Static Public Member Functions

static unsigned int instances ()
static void show_instances ()

Public Attributes

CompilerContext ctx
std::string declaration
bool emitted
bool exported
Addresses forward_callers
char * function_body
std::string name
Parameters parameters
unsigned position

Protected Member Functions

void register_instance ()
void unregister_instance ()

Static Protected Attributes

static std::set< UserFunction * > _instancelist
static unsigned int _instances

Detailed Description

Definition at line 33 of file userfunc.h.

Member Typedef Documentation

typedef std::vector<unsigned> Pol::Bscript::UserFunction::Addresses

Definition at line 43 of file userfunc.h.

Definition at line 40 of file userfunc.h.

Constructor & Destructor Documentation

Pol::Bscript::UserFunction::UserFunction ( )

Definition at line 43 of file userfunc.cpp.

References ~UserFunction().

Pol::Bscript::UserFunction::~UserFunction ( )

Referenced by UserFunction().

Member Function Documentation

unsigned int Pol::Bscript::UserFunction::instances ( )

Definition at line 39 of file userfunc.cpp.

References _instances.

void Pol::Bscript::UserFunction::register_instance ( )

Definition at line 29 of file userfunc.cpp.

References _instancelist, and _instances.

void Pol::Bscript::UserFunction::show_instances ( )

Definition at line 20 of file userfunc.cpp.

References _instancelist, and ERROR_PRINT.

void Pol::Bscript::UserFunction::unregister_instance ( )

Definition at line 34 of file userfunc.cpp.

References _instancelist, and _instances.

Member Data Documentation

std::set< UserFunction * > Pol::Bscript::UserFunction::_instancelist

Definition at line 58 of file userfunc.h.

Referenced by register_instance(), show_instances(), and unregister_instance().

unsigned int Pol::Bscript::UserFunction::_instances

Definition at line 57 of file userfunc.h.

Referenced by instances(), register_instance(), and unregister_instance().

std::string Pol::Bscript::UserFunction::declaration
bool Pol::Bscript::UserFunction::emitted

Definition at line 49 of file userfunc.h.

Referenced by Pol::Bscript::Compiler::emit_functions().

char* Pol::Bscript::UserFunction::function_body

Definition at line 47 of file userfunc.h.

Referenced by Pol::Bscript::Compiler::forward_read_function().

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