Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a8537c7b01
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (34 sloc) 0.929 kB
// xform-io.cc -- Debugging output for Xform type
//
// Copyright (C) 2010 Miles Bader <miles@gnu.org>
//
// This source code is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 3, or (at
// your option) any later version. See the file COPYING for more details.
//
// Written by Miles Bader <miles@gnu.org>
//
#include <ostream>
#include "nice-io.h"
#include "xform-io.h"
std::ostream&
snogray::operator<< (std::ostream &os, const Xform &xform)
{
// this syntax isn't the prettiest, but is kind of compatible with
// emacs calc, Lua, and C
os << "xform{{";
for (int row = 0; row < 4; row++)
{
if (row > 0)
os << "}, {";
for (int col = 0; col < 4; col++)
{
if (col > 0)
os << ", ";
output_nicely (os, xform (col, row));
}
}
os << "}}";
return os;
}
Jump to Line
Something went wrong with that request. Please try again.