Go to the documentation of this file. 1 #ifndef __IBITTYBUZZCLOSUREREGISTER_H_
2 #define __IBITTYBUZZCLOSUREREGISTER_H_
13 bbzheap_idx_t closureHeapIdx,
14 bbzheap_idx_t selfHeapIdx);
40 bbzheap_idx_t closureHeapIdx,
41 bbzheap_idx_t selfHeapIdx,
50 virtual std::optional<std::reference_wrapper<const BittyBuzzRegisteredClosure>>
57 virtual std::optional<std::reference_wrapper<const BittyBuzzRegisteredClosure>>
66 #endif // __IBITTYBUZZCLOSUREREGISTER_H_
bbzheap_idx_t m_closureHeapIdx
Definition: IBittyBuzzClosureRegister.h:17
uint16_t m_closureId
Definition: IBittyBuzzClosureRegister.h:16
virtual void clearClosures()=0
Clears all the registered closures.
A class to register buzz function/closures id and associate them with a string.
Definition: IBittyBuzzClosureRegister.h:24
bbzheap_idx_t m_selfHeapIdx
Definition: IBittyBuzzClosureRegister.h:18
virtual bool registerClosure(const char *functionName, bbzheap_idx_t closureHeapIdx, bbzheap_idx_t selfHeapIdx, const BittyBuzzFunctionDescription &description)=0
register a closure to the list
Description for a function, used for the FunctionDescriptionRequest/Response.
Definition: BittyBuzzFunctionDescription.h:11
BittyBuzzFunctionDescription m_description
Definition: IBittyBuzzClosureRegister.h:19
a class containing info of a registered closure
Definition: IBittyBuzzClosureRegister.h:9
virtual ~IBittyBuzzClosureRegister()=default
virtual uint16_t getRegisteredClosureLength() const =0
get the length/number of the registered closures
BittyBuzzRegisteredClosure(uint16_t closureId, BittyBuzzFunctionDescription description, bbzheap_idx_t closureHeapIdx, bbzheap_idx_t selfHeapIdx)
Definition: BittyBuzzClosureRegister.cpp:6
virtual std::optional< std::reference_wrapper< const BittyBuzzRegisteredClosure > > getRegisteredClosure(const char *functionName) const =0
get the id of a stored function by it's associated name