sourceline.cpp

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by David Saxton                                    *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #include "sourceline.h"
00012 
00013 
00014 //BEGIN class SourceLine
00015 SourceLine::SourceLine()
00016         : m_line(-1)
00017 {
00018 }
00019 
00020 
00021 SourceLine::SourceLine( const QString & fileName, int line )
00022         : m_fileName(fileName),
00023         m_line(line)
00024 {
00025 }
00026 
00027 
00028 bool SourceLine::operator < ( const SourceLine & sourceLine ) const
00029 {
00030         return (m_fileName < sourceLine.fileName()) ||
00031                         (m_fileName == sourceLine.fileName() && m_line < sourceLine.line());
00032 }
00033 
00034 
00035 bool SourceLine::operator == ( const SourceLine & sourceLine ) const
00036 {
00037         return (sourceLine.fileName() == fileName()) &&
00038                         (sourceLine.line() == line());
00039 }
00040 //END class SourceLine
00041 
00042 

Generated on Tue May 8 17:05:32 2007 for KTechLab by  doxygen 1.5.1