chunk/ostream: add params ostream operator

This commit is contained in:
Danny Robson 2020-12-06 08:59:34 +10:00
parent f2afa2a421
commit 7902ed93b8
2 changed files with 17 additions and 2 deletions

View File

@ -3,17 +3,30 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2019, Danny Robson <danny@nerdcruft.net>
* Copyright 2019-2020, Danny Robson <danny@nerdcruft.net>
*/
#include "ostream.hpp"
#include "params.hpp"
#include "region.hpp"
#include "match.hpp"
#include <ostream>
#include <iomanip>
///////////////////////////////////////////////////////////////////////////////
std::ostream&
emory::chunk::operator<< (std::ostream &os, params const &val)
{
return os << "{ bits: " << val.bits
<< ", window: " << val.window
<< ", minimum: " << val.minimum
<< " }";
}
///////////////////////////////////////////////////////////////////////////////
std::ostream&
emory::chunk::operator<< (std::ostream &os, region const &val)

View File

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2019, Danny Robson <danny@nerdcruft.net>
* Copyright 2019-2020, Danny Robson <danny@nerdcruft.net>
*/
#pragma once
@ -14,6 +14,8 @@
namespace emory::chunk {
std::ostream& operator<< (std::ostream&, params const&);
std::ostream& operator<< (std::ostream &, region const &);