data_or_id
Description
This class acts as a helper for rpc calls and representing data on the remote.
Vars
Methods
data_or_id ( const id < T > & ) |
|
data_or_id ( data < T, Encoding > ) |
|
bool |
is_id ( ) |
bool |
is_data ( ) |
id < T > |
get_id ( ) |
data < T, Encoding > & |
get_data ( ) |
const data < T, Encoding > & |
get_data ( ) |
Vars Description
std::variant< id < T >, data < T, Encoding > > doi_
Variant representing the either id or data class.
Methods Description
data_or_id ( const id < T > & )
Constructor for instantiating.
data_or_id ( data < T, Encoding > )
Constructor for instantiating.
bool is_id ( )
Check if this class holds an id.
bool is_data ( )
Check if this class holds data.
Returns the id.
data < T, Encoding > & get_data ( )
Return a data reference.
const data < T, Encoding > & get_data ( )
Return a data reference.