/***************************************************************************** File: Range.cpp Author: Keith Alcock Comment: Implements a(n) Range ****************************************************************************** Revision control system and include for self *****************************************************************************/ char *PVCS_RANGE_c= "@(#)$Workfile: Range.cpp$\n" "@(#)$Revision: 1$\n" "@(#) $Date: 01/31/07 18:05:14$\n" "@(#)---------:"; #if !defined(RANGE_INCLUDED) # include "Range.h" #endif char *PVCS_RANGE_h=PVCS_RANGE_H; /***************************************************************************** Includes *****************************************************************************/ #include // ostream /***************************************************************************** Range *****************************************************************************/ Range::Range(int min,int max) { _min=min; _max=max; } int Range::min() const { return _min; } int Range::max() const { return _max; } bool Range::operator==(const Range &range) { return _min==range._min && _max==range._max; } ostream &operator<<(ostream &os,const Range &range) { return os<<'['<