retdec
|
A mixin providing metadata attached to objects. More...
#include <metadatable.h>
Public Member Functions | |
void | setMetadata (T data) |
Attaches new metadata. More... | |
T | getMetadata () const |
Returns the attached metadata. More... | |
bool | hasMetadata () const |
Are there any non-empty metadata? More... | |
Protected Member Functions | |
Metadatable () | |
Constructs a new metadatable object. More... | |
Private Attributes | |
T | data |
Attached metadata. More... | |
A mixin providing metadata attached to objects.
T | Type of metadata. |
|
inlineprotected |
Constructs a new metadatable object.
|
inline |
Returns the attached metadata.
|
inline |
Are there any non-empty metadata?
|
inline |
Attaches new metadata.
[in] | data | Metadata to be attached. |
|
private |
Attached metadata.