Code Search for Developers
 
 
  

Range.h from Magnus at Krugle


Show Range.h 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:
//
//

#ifndef __RANGE_H__
#define __RANGE_H__

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

struct Range {

  int low, high;
  bool Default;
  
  Range() : low(0), high(0), Default(true) { }

  Range( int lo, int hi ) : low(lo), high(hi), Default(false) { }

  bool operator == ( Range r ) const 
  {
    if( low == r.low && high == r.high && Default == r.Default )
      return true;
    return false;
  }
};

// IPC tools:

void operator < ( ostream& ostr, const Range& g );
void operator > ( istream& istr, Range& g );


// I/O routines for class Range.

ostream& operator << ( ostream& ostr, const Range& g );
istream& operator >> ( istream& istr, Range& g );

#endif




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.h
  APofFreeGroups.h
  APofFreeGroupsRep.h
  APwithOneRelator.h
  APwithOneRelatorRep.h
  AmalgamatedProductParser.h
  CONDITION.h
  HNNExtOfFreeGroup.h
  HNNExtOfORGroup.h
  HNNExtension.h
  HNNParser.h
  MagnusBreakdown.h
  Margin.h
  ORProblems.h
  OneRelatorGroup.h
  OneRelatorGroupWithTorsion.h
  Range.h
  ShortenByRelators2.h
  SubgroupOfOneRelatorGroup.h
  SuperGen.h
  Whitehead.h