casmetainfo.cc

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 2006 by Rafael Ostertag
00003 //
00004 //  This program is free software; you can redistribute it and/or modify
00005 //  it under the terms of the GNU General Public License as published by
00006 //  the Free Software Foundation; either version 2 of the License, or
00007 //  (at your option) any later version.
00008 //
00009 //  This program is distributed in the hope that it will be useful,
00010 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 //  GNU General Public License for more details.
00013 //
00014 //  You should have received a copy of the GNU General Public License
00015 //  along with this program; if not, write to the Free Software
00016 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017 //
00018 //
00019 // $Id: casmetainfo.cc,v 1.5 2006/12/28 00:31:01 rafi Exp $
00020 //
00021 
00030 #include "casmetainfo.h"
00031 
00032 // Private methods
00033 // ----------------------------------------------------------------------------
00034 
00035 // ----------------------------------------------------------------------------
00036 
00037 // Protected methods
00038 // ----------------------------------------------------------------------------
00039 
00040 // ----------------------------------------------------------------------------
00041 
00042 // Constructors & Destructor
00043 // ----------------------------------------------------------------------------
00047 CASMetaInfo::CASMetaInfo() {
00048     sorted = false;
00049     evaluated = false;
00050     coefficient = false;
00051     purenumerical = false;
00052     singlevalue = false;
00053 }
00054 
00060 CASMetaInfo::CASMetaInfo ( const CASMetaInfo &ref ) {
00061     sorted = ref.sorted;
00062     evaluated = ref.evaluated;
00063     coefficient = ref.coefficient;
00064     purenumerical = ref.purenumerical;
00065     singlevalue = ref.singlevalue;
00066 }
00067 
00071 CASMetaInfo::~CASMetaInfo() {
00072 
00073 }
00074 
00075 // ----------------------------------------------------------------------------
00076 
00077 // Public Methods
00078 // ----------------------------------------------------------------------------
00084 void CASMetaInfo::SetAll() {
00085     sorted = true;
00086     evaluated = true;
00087     coefficient = true;
00088     purenumerical = true;
00089     singlevalue = true;
00090 }
00091 
00097 void CASMetaInfo::UnsetAll() {
00098     sorted = false;
00099     evaluated = false;
00100     coefficient = false;
00101     purenumerical = false;
00102     singlevalue = false;
00103 }
00104 
00105 // ----------------------------------------------------------------------------
00106 
00107 // Operators
00108 // ----------------------------------------------------------------------------
00114 CASMetaInfo& CASMetaInfo::operator= ( const CASMetaInfo &ref ) {
00115     if ( this == &ref ) {
00116         return *this;
00117     }
00118 
00119     sorted = ref.sorted;
00120     evaluated = ref.evaluated;
00121     coefficient = ref.coefficient;
00122     purenumerical = ref.purenumerical;
00123     singlevalue = ref.singlevalue;
00124 
00125     return *this;
00126 }
00127 // ----------------------------------------------------------------------------

Generated on Sun Dec 31 01:57:27 2006 for ECAS by  doxygen 1.4.7