Public Member Functions

el7::scripting::Library Class Reference

#include <Library.h>

Inheritance diagram for el7::scripting::Library:
cyber::libs::app el7::scripting::libs::math el7::scripting::libs::std pl7::libs::d3d

List of all members.

Public Member Functions

 Library (void)
virtual ~Library (void)
 Library (const cl7::string_type &name)
 Library (const Library &rhs)
Libraryoperator= (const Library &rhs)
void swap (Library &rhs)
const cl7::string_typeget_name () const
ExternFunctionfind (const cl7::string_type &function_name) const
bool add (ExternFunction *function)
bool add (const cl7::string_type &definition, BaseFunction::Callback callback)
bool remove (const cl7::string_type &function_name)
void clear ()

Detailed Description

Represents a symbol-to-function-map.


Constructor & Destructor Documentation

el7::scripting::Library::Library ( void   ) 

Default constructor.

el7::scripting::Library::~Library ( void   )  [virtual]

Destructor.

el7::scripting::Library::Library ( const cl7::string_type name  ) 

Explicit contructor.

el7::scripting::Library::Library ( const Library rhs  ) 

Copy contructor.


Member Function Documentation

bool el7::scripting::Library::add ( ExternFunction function  ) 

Adds a given function name of the associated function object. If the given function name already exists, the function fails and returns false.

bool el7::scripting::Library::add ( const cl7::string_type definition,
BaseFunction::Callback  callback 
)

Adds a given function name and a new associated function object. If the given function name already exists, the function fails and returns false. The function name is encoded within the given function definition.

void el7::scripting::Library::clear (  ) 

Removes all function names and associated function objects.

ExternFunction * el7::scripting::Library::find ( const cl7::string_type function_name  )  const

Searches for the function object of the given name. If the name is not found, the function returns null, a pointer to the function object otherwise.

const cl7::string_type& el7::scripting::Library::get_name (  )  const [inline]

Returns the name of this function library.

Library & el7::scripting::Library::operator= ( const Library rhs  ) 

Copy assignment operator.

bool el7::scripting::Library::remove ( const cl7::string_type function_name  ) 

Removes the given function name and its corresponding function object.

void el7::scripting::Library::swap ( Library rhs  ) 

Swap operation.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines