ClickHouse/dbms/src/Common/iostream_debug_helpers.h

49 lines
1.8 KiB
C++
Raw Normal View History

#pragma once
#include <iostream>
namespace DB { class IBlockInputStream; }
std::ostream & operator<<(std::ostream & stream, const DB::IBlockInputStream & what);
namespace DB { class Field; }
std::ostream & operator<<(std::ostream & stream, const DB::Field & what);
namespace DB { struct NameAndTypePair; }
std::ostream & operator<<(std::ostream & stream, const DB::NameAndTypePair & what);
namespace DB { class IDataType; }
std::ostream & operator<<(std::ostream & stream, const DB::IDataType & what);
namespace DB { class IStorage; }
std::ostream & operator<<(std::ostream & stream, const DB::IStorage & what);
namespace DB { class TableStructureReadLock; }
std::ostream & operator<<(std::ostream & stream, const DB::TableStructureReadLock & what);
2017-04-26 15:14:28 +00:00
namespace DB { class IFunction; }
std::ostream & operator<<(std::ostream & stream, const DB::IFunction & what);
namespace DB { class Block; }
std::ostream & operator<<(std::ostream & stream, const DB::Block & what);
namespace DB { struct ColumnWithTypeAndName; }
std::ostream & operator<<(std::ostream & stream, const DB::ColumnWithTypeAndName & what);
2017-04-28 19:50:42 +00:00
namespace DB { class IColumn; }
std::ostream & operator<<(std::ostream & stream, const DB::IColumn & what);
#include <Client/Connection.h>
std::ostream & operator<<(std::ostream & stream, const DB::Connection::Packet & what);
2017-08-04 16:59:25 +00:00
#include <Common/PODArray.h>
template <typename T, size_t INITIAL_SIZE, typename TAllocator, size_t pad_right_>
std::ostream & operator<<(std::ostream & stream, const DB::PODArray<T, INITIAL_SIZE, TAllocator, pad_right_> & what) {
stream << "PODArray(size = " << what.size() << ", capacity = " << what.capacity() << ")";
dumpContainer(stream, what);
return stream;
};
2017-04-26 15:14:28 +00:00
/// some operator<< should be declared before operator<<(... std::shared_ptr<>)
#include <common/iostream_debug_helpers.h>