This is the reference documentation of sub-namespace boxing of the ALib C++ Library, which holds types of library module ALib Boxing.
Extensive documentation for this module is provided with ALib Module Boxing - Programmer's Manual.
Nested Namespaces: | |
namespace | compatibility |
namespace | detail |
This namespace implements internals of namespace alib::boxing. | |
Type Index: | |
class | Box |
struct | DbgBoxing |
struct | Enum |
struct | FAppend |
struct | FClone |
struct | FEquals |
struct | FHashcode |
struct | FIsLess |
struct | FIsNotNull |
struct | FIsTrue |
union | Placeholder |
struct | T_Boxer |
struct | T_SizeInPlaceholder |
struct | T_SuppressCharArrayBoxing |
class | TBoxes |
struct | TMappedTo |
struct | TMappedToArrayOf |
struct | TT_IsCustomized |
struct | TT_IsLocked |
struct | TT_IsNotBoxable |
struct | TT_IsUnboxable |
Function Index: | |
void | Bootstrap () |
template<typename TFDecl , typename TMapping > | |
void | BootstrapRegister (typename TFDecl::Signature function) |
template<typename TFDecl > | |
void | BootstrapRegisterDefault (typename TFDecl::Signature function) |
void | Shutdown () |
ALIB_API void Bootstrap | ( | ) |
This method needs to be called with bootstrapping a process. It mainly registers default and type-specific implementations of the built-in box-functions. In addition, in debug-compilations, static vtables are registered.
The standard bootstrap code of ALib, hence the (overloaded) functions alib::Bootstrap will call this function.
Multiple invocations of this method are forbidden.
Definition at line 708 of file boxing.cpp.
|
inline |
Registers box-function function of type TFDecl for boxes of mapped type TMapping.
TFDecl | The type of function to register. |
TMapping | The mapped type that boxes store, which are to be equipped with a specialized function implementation. Must be either one of TMappedTo<T> or TMappedToArrayOf<T>. |
function | Pointer to the function implementation. |
Definition at line 112 of file boxing.hpp.
|
inline |
Registers a default implementation of a box-function, which is invoked if no type-specific implementation is registered for a mapped type.
TFDecl | The type of function to register. |
function | Pointer to the function's default implementation. |
Definition at line 148 of file boxing.hpp.
ALIB_API void Shutdown | ( | ) |
Frees resources and shuts down module ALib Boxing. Multiple invocations of this method are forbidden. The standard bootstrap code of ALib, hence the (overloaded) functions alib::Shutdown will call this function.
Definition at line 701 of file boxing.cpp.