1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

chore(codestyle): mark virtual methods as override

This commit is contained in:
Aleksei Antipovskii
2024-09-12 12:27:02 +02:00
committed by Leonid Fedorov
parent ad80ab40aa
commit 0ab03c7258
303 changed files with 4085 additions and 4886 deletions

View File

@ -81,7 +81,7 @@ class ByteStream : public Serializeable
/**
* ctor with a uint8_t array and len initializer
*/
inline ByteStream(const uint8_t* bp, const BSSizeType len);
inline ByteStream(const uint8_t* bp, BSSizeType len);
/**
* copy ctor
*/
@ -98,40 +98,40 @@ class ByteStream : public Serializeable
/**
* dtor
*/
inline virtual ~ByteStream();
inline ~ByteStream() override;
/**
* push a int8_t onto the end of the stream
*/
EXPORT ByteStream& operator<<(const int8_t b);
EXPORT ByteStream& operator<<(int8_t b);
/**
* push a uint8_t onto the end of the stream
*/
EXPORT ByteStream& operator<<(const uint8_t b);
EXPORT ByteStream& operator<<(uint8_t b);
/**
* push a int16_t onto the end of the stream. The byte order is whatever the native byte order is.
*/
EXPORT ByteStream& operator<<(const int16_t d);
EXPORT ByteStream& operator<<(int16_t d);
/**
* push a uint16_t onto the end of the stream. The byte order is whatever the native byte order is.
*/
EXPORT ByteStream& operator<<(const uint16_t d);
EXPORT ByteStream& operator<<(uint16_t d);
/**
* push a int32_t onto the end of the stream. The byte order is whatever the native byte order is.
*/
EXPORT ByteStream& operator<<(const int32_t q);
EXPORT ByteStream& operator<<(int32_t q);
/**
* push a uint32_t onto the end of the stream. The byte order is whatever the native byte order is.
*/
EXPORT ByteStream& operator<<(const uint32_t q);
EXPORT ByteStream& operator<<(uint32_t q);
/**
* push an int64_t onto the end of the stream. The byte order is whatever the native byte order is.
*/
EXPORT ByteStream& operator<<(const int64_t o);
EXPORT ByteStream& operator<<(int64_t o);
/**
* push an uint64_t onto the end of the stream. The byte order is whatever the native byte order is.
*/
EXPORT ByteStream& operator<<(const uint64_t o);
EXPORT ByteStream& operator<<(uint64_t o);
/**
* push an int128_t onto the end of the stream. The byte order is whatever the native byte order is.
*/
@ -145,17 +145,17 @@ class ByteStream : public Serializeable
* push a float onto the end of the stream. The byte order is
* whatever the native byte order is.
*/
EXPORT ByteStream& operator<<(const float f);
EXPORT ByteStream& operator<<(float f);
/**
* push a double onto the end of the stream. The byte order is
* whatever the native byte order is.
*/
EXPORT ByteStream& operator<<(const double d);
EXPORT ByteStream& operator<<(double d);
/**
* push a long double onto the end of the stream. The byte
* order is whatever the native byte order is.
*/
EXPORT ByteStream& operator<<(const long double d);
EXPORT ByteStream& operator<<(long double d);
/**
* push a std::string onto the end of the stream.
*/
@ -428,12 +428,12 @@ class ByteStream : public Serializeable
/**
* Serializeable interface
*/
EXPORT void serialize(ByteStream& bs) const;
EXPORT void serialize(ByteStream& bs) const override;
/**
* Serializeable interface
*/
EXPORT void deserialize(ByteStream& bs);
EXPORT void deserialize(ByteStream& bs) override;
/**
* memory allocation chunk size
@ -455,7 +455,7 @@ class ByteStream : public Serializeable
/**
* pushes one uint8_t onto the end of the stream
*/
void add(const uint8_t b);
void add(uint8_t b);
/**
* adds another BlockSize bytes to the internal buffer
*/
@ -527,7 +527,7 @@ static const uint8_t BS_BLOB = 9;
static const uint8_t BS_SERIALIZABLE = 10;
static const uint8_t BS_UUID = 11;
inline ByteStream::ByteStream(const uint8_t* bp, const BSSizeType len) : fBuf(0), fMaxLen(0)
inline ByteStream::ByteStream(const uint8_t* bp, BSSizeType len) : fBuf(nullptr), fMaxLen(0)
{
load(bp, len);
}
@ -560,7 +560,7 @@ inline void ByteStream::reset()
{
delete[] fBuf;
fMaxLen = 0;
fCurInPtr = fCurOutPtr = fBuf = 0;
fCurInPtr = fCurOutPtr = fBuf = nullptr;
}
inline void ByteStream::restart()
{
@ -669,7 +669,6 @@ void deserializeVector(ByteStream& bs, std::vector<T>& v)
}
}
template <typename T>
void serializeInlineVector(ByteStream& bs, const std::vector<T>& v)
{
@ -703,7 +702,6 @@ void deserializeInlineVector(ByteStream& bs, std::vector<T>& v)
}
}
inline void deserializeVector(ByteStream& bs, std::vector<int64_t>& v)
{
deserializeInlineVector<int64_t>(bs, v);