HiveMind
|
#include <cstdint>
Go to the source code of this file.
Namespaces | |
BittyBuzzUserFunctions | |
Namespace to regroup the user functions, ie: custom functions that will be available in the buzz script. The functions needs to be registered using bbzvm_function_register. | |
Functions | |
void | BittyBuzzUserFunctions::log () |
Logs to the default output Signature log(args...) More... | |
void | BittyBuzzUserFunctions::registerClosure () |
register a new function, exposing it to the remote composant of the swarm Signature register_closure(fname, closure, args_desc) More... | |
void | BittyBuzzUserFunctions::callHostFunction () |
calls a function to a host Signature call_host_function(agent_id, fname, params) More... | |
void | BittyBuzzUserFunctions::callBuzzFunction () |
calls a function to a buzz Signature call_buzz_function(agent_id, fname, params) More... | |
void | BittyBuzzUserFunctions::isNil () |
Checks if a variable is nil Signature isnil(arg1) More... | |
void | BittyBuzzUserFunctions::isInt () |
Checks if a variable is an int Signature isint(arg1) More... | |
void | BittyBuzzUserFunctions::isFloat () |
Checks if a variable is a float. More... | |
void | BittyBuzzUserFunctions::isString () |
Checks if a variable is a float Signature istable(arg1) More... | |
void | BittyBuzzUserFunctions::isTable () |
Checks if a variable is a table Signature istable(arg1) More... | |
void | BittyBuzzUserFunctions::isClosure () |
Checks if a variable is a function closure Signature isclosure(arg1) More... | |
void | BittyBuzzUserFunctions::isLambdaClosure () |
Checks if a variable is a lambda, unamed closure Signature islambda_closure(arg1) More... | |
void | BittyBuzzUserFunctions::toInt () |
Casts a type to int Signature int(arg1) More... | |
void | BittyBuzzUserFunctions::toFloat () |
Casts a type to float Signature float(arg1) More... | |
void | BittyBuzzUserFunctions::delay () |
wait for a certain delay Signature delay(arg1) Warning this function make the whole VM sleep which can prevents the VM to processes messages from it's host or the swarm. Eventually the queue can overflow, you should use the executor to execute something every X steps. It is not recommended to use. More... | |
Variables | |
int16_t | BittyBuzzUserFunctions::g_vmStepDelayMs = 0 |
The delay between each call of the step function in buzz. More... | |