Go to the documentation of this file.
6 #include "detail/MemoryItem.h"
70 return !(*
this == other);
79 template <
class _DataT = NoData,
class _MetadataT = EntityInstanceMetadata>
155 template <
class AronDtoT>
159 return AronDtoT::FromAron(
_data);
162 template <
class AronDtoT>
167 instance.data() = dataAs<AronDtoT>();
177 return "entity instance";
virtual ~NoData()=default
EntityInstanceDataPtr DataT
Base class of memory classes on different levels.
DataT _data
The data. May be nullptr.
EntityInstanceBase< AronDtoT, MetadataT > withDataAs() const
base::EntityInstanceMetadata EntityInstanceMetadata
Client-side working memory entity instance metadata.
EntityInstanceBase(const MemoryID &id)
static std::string getLevelName()
MetadataT _metadata
The metadata.
AronDtoT dataAs() const
Get the data converted to a generated Aron DTO class.
bool operator==(const NoData &other)
const MetadataT & metadata() const
void setMetadata(const MetadataT &metadata)
const std::string & to_string(const std::string &s)
Data of a single entity instance.
EntityInstanceBase(int index, const MemoryID &parentID={})
Represents a point in time.
void setData(const DataT &data)
std::string getKeyString() const
std::ostream & operator<<(std::ostream &os, const EntityInstanceMetadata &rhs)
const DataT & data() const
bool operator!=(const NoData &other)
static DateTime Invalid()
Default data of an entity instance (empty).