2017-04-26 02:50:03 +00:00
|
|
|
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
|
2017-04-28 18:57:26 +00:00
|
|
|
|
2017-04-26 02:50:03 +00:00
|
|
|
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);
|
|
|
|
|
2017-04-28 18:57:26 +00:00
|
|
|
namespace DB { struct NameAndTypePair; }
|
|
|
|
std::ostream & operator<<(std::ostream & stream, const DB::NameAndTypePair & what);
|
|
|
|
|
2017-04-26 02:50:03 +00:00
|
|
|
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
|
|
|
|
2017-04-28 18:57:26 +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; }
|
2017-04-28 18:57:26 +00:00
|
|
|
std::ostream & operator<<(std::ostream & stream, const DB::IColumn & what);
|
|
|
|
|
2017-06-22 15:57:37 +00:00
|
|
|
#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-28 18:57:26 +00:00
|
|
|
|
2017-04-26 15:14:28 +00:00
|
|
|
/// some operator<< should be declared before operator<<(... std::shared_ptr<>)
|
|
|
|
#include <common/iostream_debug_helpers.h>
|