MySQL 8.4.2
Source Code Documentation
Recovery_metadata_message_compressed_parts::Iterator Struct Reference

#include <recovery_metadata_message_compressed_parts.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 Iterator (Recovery_metadata_message *recovery_metadata_message, uint packet_count)
 Iterator constructor. More...
 
std::tuple< const unsigned char *, unsigned long long, unsigned long long > operator* ()
 The Recovery Metadata payload may contain multiple packets of compressed data. More...
 
Iteratoroperator++ ()
 The Recovery Metadata payload may contain multiple packets of compressed data. More...
 
Iterator operator++ (int)
 The Recovery Metadata payload may contain multiple packets of compressed data. More...
 
bool operator== (Iterator &b)
 The Recovery Metadata payload may contain multiple packets of compressed data. More...
 
bool operator!= (Iterator &b)
 The Recovery Metadata payload may contain multiple packets of compressed data. More...
 

Private Attributes

const unsigned char * m_payload_pos
 
unsigned long long m_payload_length {0}
 
unsigned long long m_payload_uncompressed_length {0}
 
uint m_count {0}
 
Recovery_metadata_messagem_recovery_metadata_message {nullptr}
 

Member Typedef Documentation

◆ difference_type

◆ iterator_category

Constructor & Destructor Documentation

◆ Iterator()

Recovery_metadata_message_compressed_parts::Iterator::Iterator ( Recovery_metadata_message recovery_metadata_message,
uint  packet_count 
)

Iterator constructor.

Parameters
[in]recovery_metadata_messagepointer to Recovery_metadata_message.
[in]packet_countNumber of packets of Compressed certification info.

Member Function Documentation

◆ operator!=()

The Recovery Metadata payload may contain multiple packets of compressed data.

The comparsion operator compare packets.

Return values
falseIf m_count or packet number of packets is equal.
trueIf m_count or packet number of packets is not equal.

◆ operator*()

std::tuple< const unsigned char *, unsigned long long, unsigned long long > Recovery_metadata_Iterator::operator* ( )

The Recovery Metadata payload may contain multiple packets of compressed data.

The dereference operator will return tuple of compressed payload, compressed payload length and length of payload before it was compressed i.e. uncompressed payload length for one of the packet.

Returns
the tuple of compressed payload, compressed payload length and uncompressed payload length.

◆ operator++() [1/2]

Recovery_metadata_Iterator & Recovery_metadata_Iterator::operator++ ( )

The Recovery Metadata payload may contain multiple packets of compressed data.

The prefix increment operator will increment pointer to compressed payload position so that it can point to next Recovery Metadata compressed data packet.

Returns
a reference to Iterator object.

◆ operator++() [2/2]

Recovery_metadata_Iterator Recovery_metadata_Iterator::operator++ ( int  )

The Recovery Metadata payload may contain multiple packets of compressed data.

The postfix increment operator will increment pointer to compressed payload position so that it can point to next Recovery Metadata compressed data packet.

Returns
a copy of Iterator before increment.

◆ operator==()

bool Recovery_metadata_Iterator::operator== ( Iterator b)

The Recovery Metadata payload may contain multiple packets of compressed data.

The comparsion operator compare packets.

Return values
falseIf m_count or packet number of packets is not equal.
trueIf m_count or packet number of packets is equal.

Member Data Documentation

◆ m_count

uint Recovery_metadata_message_compressed_parts::Iterator::m_count {0}
private

◆ m_payload_length

unsigned long long Recovery_metadata_message_compressed_parts::Iterator::m_payload_length {0}
private

◆ m_payload_pos

const unsigned char* Recovery_metadata_message_compressed_parts::Iterator::m_payload_pos
private

◆ m_payload_uncompressed_length

unsigned long long Recovery_metadata_message_compressed_parts::Iterator::m_payload_uncompressed_length {0}
private

◆ m_recovery_metadata_message

Recovery_metadata_message* Recovery_metadata_message_compressed_parts::Iterator::m_recovery_metadata_message {nullptr}
private

The documentation for this struct was generated from the following files: