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

/magnus/back_end/global/ExtendedIPC.h

Go to the documentation of this file.
00001 /*
00002  *   $Id: ExtendedIPC.h,v 1.1 1996/04/30 19:39:28 bormotov Exp $
00003  */
00004 
00005 // Copyright (C) 1994 The New York Group Theory Cooperative
00006 // See magnus/doc/COPYRIGHT for the full notice.
00007 
00008 // Contents: Global operators for Interprocess Communication (IPC).
00009 //
00010 // Principal Author: Dmitry Bormotov
00011 //
00012 // Status: Under development
00013 //
00014 // Special Notes:
00015 //
00016 //   This operators are for special cases, i.e. they are seldom useable. 
00017 //
00018 
00019 #ifndef _EXTENDED_IPC_H_
00020 #define _EXTENDED_IPC_H_
00021 
00022 
00023 #include "global.h"
00024 #include "Integer.h"
00025 #include "Rational.h"
00026 
00027 
00028 // ------------------------- Output operators ------------------------------ //
00029 
00030 
00031 inline ostream& operator < ( ostream& ostr, const Integer& n )
00032 {
00033   ostr << n << ' ';
00034   return ostr;
00035 }
00036 
00037 inline ostream& operator < ( ostream& ostr, const Rational& r )
00038 {
00039   ostr << r << ' ';
00040   return ostr;
00041 }
00042 
00043 
00044 // ------------------------- Input operators ------------------------------- //
00045 
00046 
00047 inline istream& operator > ( istream& istr, Integer& n )
00048 {
00049   istr >> n;
00050   return istr;
00051 }
00052 
00053 inline istream& operator > ( istream& istr, Rational& r )
00054 {
00055   istr >> r;
00056   return istr;
00057 }
00058 
00059 
00060 #endif
00061 

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