|
| | Record (std::string name, Fields &... fields) |
| | Constructs a Record, a field that contains a tuple of other fields.
|
|
const std::string & | get_name () const |
| | Gets the name of the record.
|
|
TypeId | get_type () const |
| | Gets the TypeId of the record.
|
|
const auto & | get_value () const |
| | Gets the value stored by the record.
|
|
template<std::size_t I> |
| const auto & | get () const |
| | Gets the field at a specified index of the held tuple.
|
|
VDP::Packet | serialize_schema () const |
| | Serializes the record's schema in the form of a VDP::Packet.
|
| VDP::Packet | serialize_data () const |
| | Serializes the record's data in the form of a VDP::Packet.
|
|
size_t | apply_update (VDP::PacketSpan pac_in) |
| | Deserializes a packet of data and applies it to the Record's fields.
|
| std::string | data_to_string (std::size_t depth=0) const |
| | Converts a record's held data to a human readable string.
|
| std::string | schema_to_string (std::size_t depth=0) const |
| | converts a record's schema to a human readable string
|
template<typename... Fields>
class VDP::Record< Fields >
Record proto.
Defines a record A record owns a tuple of references to existing fields or records.