Structure CacheChange_t, contains information on a specific CacheChange.
More...
#include <CacheChange.hpp>
Structure CacheChange_t, contains information on a specific CacheChange.
◆ CacheChange_t() [1/3]
◆ CacheChange_t() [2/3]
◆ CacheChange_t() [3/3]
Constructor with payload size.
- Parameters
-
payload_size | Serialized payload size |
is_untyped | Flag to mark the change as untyped. |
◆ ~CacheChange_t()
◆ add_fragments()
bool add_fragments |
( |
const SerializedPayload_t & |
incoming_data, |
|
|
uint32_t |
fragment_starting_num, |
|
|
uint32_t |
fragments_in_submessage |
|
) |
| |
|
inline |
◆ contains_first_fragment()
bool contains_first_fragment |
( |
| ) |
|
|
inline |
Checks if the first fragment is present.
- Returns
- true when it contains the first fragment. In other case, false.
◆ copy()
Copy a different change into this one.
All the elements are copied, included the data, allocating new memory.
- Parameters
-
[in] | ch_ptr | Pointer to the change. |
- Returns
- True if correct.
◆ copy_not_memcpy()
Copy information form a different change into this one.
All the elements are copied except data.
- Parameters
-
[in] | ch_ptr | Pointer to the change. |
◆ get_missing_fragments()
Fills a FragmentNumberSet_t with the list of missing fragments.
- Parameters
-
[out] | frag_sns | FragmentNumberSet_t where result is stored. |
◆ getFragmentCount()
uint32_t getFragmentCount |
( |
| ) |
const |
|
inline |
Get the number of fragments this change is split into.
- Returns
- number of fragments.
◆ getFragmentSize()
uint16_t getFragmentSize |
( |
| ) |
const |
|
inline |
Get the size of each fragment this change is split into.
- Returns
- size of fragment (0 means change is not fragmented).
◆ is_fully_assembled()
bool is_fully_assembled |
( |
| ) |
|
|
inline |
Checks if all fragments have been received.
- Returns
- true when change is fully assembled (i.e. no missing fragments).
◆ operator=()
◆ setFragmentSize()
void setFragmentSize |
( |
uint16_t |
fragment_size, |
|
|
bool |
create_fragment_list = false |
|
) |
| |
|
inline |
Set fragment size for this change.
- Parameters
-
fragment_size | Size of fragments. |
create_fragment_list | Whether to create missing fragments list or not. |
◆ [union]
◆ inline_qos
CDR serialization of inlined QoS for this change.
◆ instanceHandle
Handle of the data associated with this change.
◆ is_untyped_
◆ isRead
Indicates if the cache has been read (only used in READERS)
◆ kind
Kind of change, default value ALIVE.
◆ reader_info
◆ sequenceNumber
SequenceNumber of the change.
◆ serializedPayload
Serialized Payload associated with the change.
◆ sourceTimestamp
◆ vendor_id
Vendor Id of the writer that generated this change.
◆ write_params
◆ writer_info
◆ writerGUID
GUID_t of the writer that generated this change.
The documentation for this struct was generated from the following file: