This struct stores a list of information objects of arbitrary types, by publicly inheriting type BoxesMA. In addition, the CallerInfo is attached, which usually refers to the place (and thread) tat constructed an instance of this type.
Finally, a type identifier is available with field Type.
Note that while message data might be passed with construction, informational data may be added, changed or removed during the life-cycle of an instance using the inherited interface of class TBoxes.
Inside ALib, the struct is used with types Exception and Report.
Definition at line 32 of file message.hpp.
#include <message.hpp>
Public Field Index: | |
CallerInfo | CI |
The source code location that this message relates to. | |
Enum | Type |
Public Method Index: | |
template<typename... TBoxables> | |
Message (const CallerInfo &ci, MonoAllocator &monoAllocator, const Enum &type, TBoxables &&... args) | |
Public Method Index: inherited from TBoxes< MonoAllocator > | |
TBoxes () | |
Defaulted default constructor, usable only with heap allocation. | |
TBoxes (MonoAllocator &pAllocator) | |
TBoxes (TBoxes &)=delete | |
Deleted copy constructor. | |
TBoxes & | Add () |
TBoxes & | Add (const Box &box) |
TBoxes & | Add (const Box(&boxArray)[TExtend]) |
TBoxes & | Add (const TBoxes< TAllocatorArgs > &boxes) |
TBoxes & | Add (TBoxables &&... args) |
void | AddArray (const Box *boxArray, integer length) |
void | CallAll (TArgs &&... args) |
void | CallAll (TArgs &&... args) const |
void | CloneAll () |
TBoxes & | operator+= (TBoxable &&src) |
TBoxes & | operator<< (TBoxable &&src) |
TBoxes & | operator= (TBoxes &)=delete |
void | Reserve (integer newCapacity) |
integer | Size () const |
Additional Inherited Members | |
Public Type Index: inherited from TBoxes< MonoAllocator > | |
using | AllocatorType |
The allocator type that TAllocator specifies. | |
Protected Type Index: inherited from TBoxes< MonoAllocator > | |
using | vectorBase |
The allocator type that TAllocator specifies. | |
CallerInfo CI |
The source code location that this message relates to.
Definition at line 34 of file message.hpp.
Enum Type |
A type identifier, defined with construction by providing an element of an arbitrary enumeration type.
Definition at line 35 of file message.hpp.
|
inline |
Constructor.
ci | Information about the scope of invocation. |
monoAllocator | The allocator to store the arguments in. |
type | The message type. |
args | Variadic, templated list of arguments. |
Definition at line 43 of file message.hpp.