File: dimension.C

package info (click to toggle)
battleball 2.0-13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,016 kB
  • ctags: 3,097
  • sloc: cpp: 15,310; makefile: 48; csh: 34
file content (18 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 1997 Philip A. Hardin (pahardin@cs.utexas.edu)
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License v2 or later.


#include <iostream.h>
#include "dimension.h"



/************************************************************************/
ostream& operator<<(ostream& out, const dimension& d) {
  out << d.value << ":" << d.prop;
  if (d.prop != dimension::unique)
    return out << ":" << *(d.refDim);
  else 
    return out << "  ";
}