This struct stores a list of information objects of arbitrary types, by publicly inheriting type alib::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 the type Exception.
Definition at line 23 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 alib::boxing::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 alib::boxing::TBoxes< MonoAllocator > | |
| using | AllocatorType |
| The allocator type that TAllocator specifies. | |
| Protected Type Index: inherited from alib::boxing::TBoxes< MonoAllocator > | |
| using | vectorBase |
| The base type. | |
| CallerInfo alib::exceptions::Message::CI |
The source code location that this message relates to.
Definition at line 24 of file message.hpp.
| Enum alib::exceptions::Message::Type |
A type identifier, defined with construction by providing an element of an arbitrary enumeration type.
Definition at line 25 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 33 of file message.hpp.