Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

/magnus/back_end/AProducts/include/Range.h

Go to the documentation of this file.
00001 /*
00002  *   $Id: Range.h,v 1.1 1996/11/21 15:03:14 pechkin Exp $
00003  */
00004 
00005 // Copyright (C) 1995 The New York Group Theory Cooperative
00006 // See magnus/doc/COPYRIGHT for the full notice.
00007 
00008 // Contents:  
00009 //            
00010 //
00011 // Principal Author: Dmitry Pechkin
00012 //
00013 // Status: under trial.
00014 //
00015 // Revision History:
00016 //
00017 // TO DO:
00018 //
00019 //
00020 
00021 #ifndef __RANGE_H__
00022 #define __RANGE_H__
00023 
00024 #include <iostream.h>
00025 
00026 struct Range {
00027 
00028   int low, high;
00029   bool Default;
00030   
00031   Range() : low(0), high(0), Default(true) { }
00032 
00033   Range( int lo, int hi ) : low(lo), high(hi), Default(false) { }
00034 
00035   bool operator == ( Range r ) const 
00036   {
00037     if( low == r.low && high == r.high && Default == r.Default )
00038       return true;
00039     return false;
00040   }
00041 };
00042 
00043 // IPC tools:
00044 
00045 void operator < ( ostream& ostr, const Range& g );
00046 void operator > ( istream& istr, Range& g );
00047 
00048 
00049 // I/O routines for class Range.
00050 
00051 ostream& operator << ( ostream& ostr, const Range& g );
00052 istream& operator >> ( istream& istr, Range& g );
00053 
00054 #endif

Generated at Tue Jun 19 09:49:34 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001