19.2.3.24. WriteParams
-
class WriteParams
This class contains additional information of a CacheChange.
Public Functions
-
inline WriteParams &sample_identity(const SampleIdentity &sample_id)
Set the value of the sample_identity member.
- Parameters:
sample_id – New value for the sample_identity member.
- Returns:
Reference to the modified object in order to allow daisy chaining.
-
inline WriteParams &sample_identity(SampleIdentity &&sample_id)
Set the value of the sample_identity member.
- Parameters:
sample_id – New value for the sample_identity member.
- Returns:
Reference to the modified object in order to allow daisy chaining.
-
inline const SampleIdentity &sample_identity() const
Get the value of the sample_identity member.
- Returns:
Constant reference to the sample_identity member.
-
inline SampleIdentity &sample_identity()
Set the value of the sample_identity member.
- Returns:
Reference to the sample_identity member.
Set the value of the related_sample_identity member of this class.
- Parameters:
sample_id – New value for the related_sample_identity member.
- Returns:
Reference to the modified object in order to allow daisy chaining.
Set the related_sample_identity member of this class.
- Parameters:
sample_id – New value for the related_sample_identity member.
- Returns:
Reference to the modified object in order to allow daisy chaining.
Get the value of the related_sample_identity member.
- Returns:
Constant reference to the related_sample_identity member.
Set the value of the related_sample_identity member.
- Returns:
Reference to the related_sample_identity member.
-
inline Time_t source_timestamp() const
Get the value of the source_timestamp member.
- Returns:
Current value of the source_timestamp member.
-
inline Time_t &source_timestamp()
Set the value of the source_timestamp member.
- Returns:
Reference to the source_timestamp member.
-
inline WriteParams &source_timestamp(const Time_t ×tamp)
Set the source_timestamp member of this class.
- Parameters:
timestamp – New value for the source_timestamp member.
- Returns:
Reference to the modified object in order to allow daisy chaining.
-
inline WriteParams &source_timestamp(Time_t &×tamp)
Set the source_timestamp member of this class.
- Parameters:
timestamp – New value for the source_timestamp member.
- Returns:
Reference to the modified object in order to allow daisy chaining.
Public Static Functions
-
static inline WriteParams write_params_default() noexcept
Default value for methods receiving a WriteParams.
Will contain the following values on its members:
sample_identity: Invalid SampleIdentity
related_sample_identity: Invalid SampleIdentity
source_timestamp: Invalid Time_t
Note
This should not return a reference to the static value if this value is meant to be read and written from different threads.
-
inline WriteParams &sample_identity(const SampleIdentity &sample_id)