Code Search for Developers
 
 
  

Range.C from Magnus at Krugle


Show Range.C syntax highlighted

// Copyright (C) 1995 The New York Group Theory Cooperative
// See magnus/doc/COPYRIGHT for the full notice.

// Contents:     
//               
//
// Principal Author: Dmitry Pechkin
//
// Status: under trial.
//
// Revision History:
//
// TO DO:
//
//

#include "Range.h"
#include "global.h"
#include "CONDITION.h"

void operator < ( ostream& ostr, const Range& r )
{
  ostr < r.low;
  ostr < ' ';
  ostr < r.high;
}

void operator > ( istream& istr, Range& r )
{
  istr > r.low;
  istr > r.high;
}

ostream& operator << ( ostream& ostr, const Range& r )
{
  ostr << r.low << ':' << r.high;
  return ostr;
}

istream& operator >> ( istream& istr, Range& r )
{
  istr >> r.low;

  char ch;
  istr >> ch;
  CONDITION( WARNING, ch == ':' );

  istr >> r.high;

  return istr;
}




See more files for this project here

Magnus

Magnus is a special purpose mathematical package for Infinite Group Theory computations

Project homepage: http://sourceforge.net/projects/magnus
Programming language(s): C,C++
License: other

  AP-fixups.C
  APofFreeGroupsRep.C
  APwithOneRelatorRep.C
  AmalgamatedProductParser.C
  CONDITION.C
  HNNExtOfFreeGroup.C
  HNNExtOfORGroup.C
  HNNExtension.C
  HNNParser.C
  MagnusBreakdown.C
  Margin.C
  ORProblems.C
  OneRelatorGroup.C
  OneRelatorGroupWithTorsion.C
  Range.C
  ShortenByRelators2.C
  SubgroupOfOneRelatorGroup.C
  SuperGen.C
  Whitehead.C
  maximalRoot.C