BoolInstruction.cpp

Go to the documentation of this file.
00001 /*
00002 // $Id: //open/dev/fennel/calculator/BoolInstruction.cpp#1 $
00003 // Fennel is a library of data storage and processing components.
00004 // Copyright (C) 2005-2009 The Eigenbase Project
00005 // Copyright (C) 2004-2009 SQLstream, Inc.
00006 // Copyright (C) 2009-2009 LucidEra, Inc.
00007 //
00008 // This program is free software; you can redistribute it and/or modify it
00009 // under the terms of the GNU General Public License as published by the Free
00010 // Software Foundation; either version 2 of the License, or (at your option)
00011 // any later version approved by The Eigenbase Project.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 //
00018 // You should have received a copy of the GNU General Public License
00019 // along with this program; if not, write to the Free Software
00020 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 //
00022 // Instruction->Bool
00023 */
00024 #include "fennel/common/CommonPreamble.h"
00025 #include "fennel/calculator/BoolInstruction.h"
00026 
00027 FENNEL_BEGIN_CPPFILE("$Id: //open/dev/fennel/calculator/BoolInstruction.cpp#1 $");
00028 
00029 const char *
00030 BoolOr::longName()
00031 {
00032     return "BoolOr";
00033 }
00034 const char *
00035 BoolOr::shortName()
00036 {
00037     return "OR";
00038 }
00039 int
00040 BoolOr::numArgs()
00041 {
00042     return 3;
00043 }
00044 void
00045 BoolOr::describe(string& out, bool values) const {
00046     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00047 }
00048 
00049 
00050 const char *
00051 BoolAnd::longName()
00052 {
00053     return "BoolAnd";
00054 }
00055 const char *
00056 BoolAnd::shortName()
00057 {
00058     return "AND";
00059 }
00060 int
00061 BoolAnd::numArgs()
00062 {
00063     return 3;
00064 }
00065 void
00066 BoolAnd::describe(string& out, bool values) const {
00067     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00068 }
00069 
00070 
00071 const char *
00072 BoolNot::longName()
00073 {
00074     return "BoolNot";
00075 }
00076 const char *
00077 BoolNot::shortName()
00078 {
00079     return "NOT";
00080 }
00081 int
00082 BoolNot::numArgs()
00083 {
00084     return 2;
00085 }
00086 void
00087 BoolNot::describe(string& out, bool values) const {
00088     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00089 }
00090 
00091 
00092 const char *
00093 BoolMove::longName()
00094 {
00095     return "BoolMove";
00096 }
00097 const char *
00098 BoolMove::shortName()
00099 {
00100     return "MOVE";
00101 }
00102 int
00103 BoolMove::numArgs()
00104 {
00105     return 2;
00106 }
00107 void
00108 BoolMove::describe(string& out, bool values) const {
00109     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00110 }
00111 
00112 
00113 const char *
00114 BoolRef::longName()
00115 {
00116     return "BoolRef";
00117 }
00118 const char *
00119 BoolRef::shortName()
00120 {
00121     return "REF";
00122 }
00123 int
00124 BoolRef::numArgs()
00125 {
00126     return 2;
00127 }
00128 void
00129 BoolRef::describe(string& out, bool values) const {
00130     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00131 }
00132 
00133 
00134 const char *
00135 BoolIs::longName()
00136 {
00137     return "BoolIs";
00138 }
00139 const char *
00140 BoolIs::shortName()
00141 {
00142     return "IS";
00143 }
00144 int
00145 BoolIs::numArgs()
00146 {
00147     return 3;
00148 }
00149 void
00150 BoolIs::describe(string& out, bool values) const {
00151     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00152 }
00153 
00154 
00155 const char *
00156 BoolIsNot::longName()
00157 {
00158     return "BoolIsNot";
00159 }
00160 const char *
00161 BoolIsNot::shortName()
00162 {
00163     return "ISNOT";
00164 }
00165 int
00166 BoolIsNot::numArgs()
00167 {
00168     return 3;
00169 }
00170 void
00171 BoolIsNot::describe(string& out, bool values) const {
00172     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00173 }
00174 
00175 const char *
00176 BoolEqual::longName()
00177 {
00178     return "BoolEqual";
00179 }
00180 const char *
00181 BoolEqual::shortName()
00182 {
00183     return "EQ";
00184 }
00185 int
00186 BoolEqual::numArgs()
00187 {
00188     return 3;
00189 }
00190 void
00191 BoolEqual::describe(string& out, bool values) const {
00192     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00193 }
00194 
00195 
00196 const char *
00197 BoolNotEqual::longName()
00198 {
00199     return "BoolNotEqual";
00200 }
00201 const char *
00202 BoolNotEqual::shortName()
00203 {
00204     return "NE";
00205 }
00206 int
00207 BoolNotEqual::numArgs()
00208 {
00209     return 3;
00210 }
00211 void
00212 BoolNotEqual::describe(string& out, bool values) const {
00213     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00214 }
00215 
00216 const char *
00217 BoolGreater::longName()
00218 {
00219     return "BoolGreater";
00220 }
00221 const char *
00222 BoolGreater::shortName()
00223 {
00224     return "GT";
00225 }
00226 int
00227 BoolGreater::numArgs()
00228 {
00229     return 3;
00230 }
00231 void
00232 BoolGreater::describe(string& out, bool values) const {
00233     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00234 }
00235 
00236 const char *
00237 BoolGreaterEqual::longName()
00238 {
00239     return "BoolGreaterEqual";
00240 }
00241 const char *
00242 BoolGreaterEqual::shortName()
00243 {
00244     return "GE";
00245 }
00246 int
00247 BoolGreaterEqual::numArgs()
00248 {
00249     return 3;
00250 }
00251 void
00252 BoolGreaterEqual::describe(string& out, bool values) const {
00253     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00254 }
00255 
00256 const char *
00257 BoolLess::longName()
00258 {
00259     return "BoolLess";
00260 }
00261 const char *
00262 BoolLess::shortName()
00263 {
00264     return "LT";
00265 }
00266 int
00267 BoolLess::numArgs()
00268 {
00269     return 3;
00270 }
00271 void
00272 BoolLess::describe(string& out, bool values) const {
00273     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00274 }
00275 
00276 const char *
00277 BoolLessEqual::longName()
00278 {
00279     return "BoolLessEqual";
00280 }
00281 const char *
00282 BoolLessEqual::shortName()
00283 {
00284     return "LE";
00285 }
00286 int
00287 BoolLessEqual::numArgs()
00288 {
00289     return 3;
00290 }
00291 void
00292 BoolLessEqual::describe(string& out, bool values) const {
00293     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00294 }
00295 
00296 const char *
00297 BoolIsNull::longName()
00298 {
00299     return "BoolIsNull";
00300 }
00301 const char *
00302 BoolIsNull::shortName()
00303 {
00304     return "ISNULL";
00305 }
00306 int
00307 BoolIsNull::numArgs()
00308 {
00309     return 2;
00310 }
00311 void
00312 BoolIsNull::describe(string& out, bool values) const {
00313     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00314 }
00315 
00316 const char *
00317 BoolIsNotNull::longName()
00318 {
00319     return "BoolIsNotNull";
00320 }
00321 const char *
00322 BoolIsNotNull::shortName()
00323 {
00324     return "ISNOTNULL";
00325 }
00326 int
00327 BoolIsNotNull::numArgs()
00328 {
00329     return 2;
00330 }
00331 void
00332 BoolIsNotNull::describe(string& out, bool values) const {
00333     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00334 }
00335 
00336 const char *
00337 BoolToNull::longName()
00338 {
00339     return "BoolToNull";
00340 }
00341 const char *
00342 BoolToNull::shortName()
00343 {
00344     return "TONULL";
00345 }
00346 int
00347 BoolToNull::numArgs()
00348 {
00349     return 1;
00350 }
00351 void
00352 BoolToNull::describe(string& out, bool values) const {
00353     describeHelper(out, values, longName(), shortName(), mResult, mOp1, mOp2);
00354 }
00355 
00356 FENNEL_END_CPPFILE("$Id: //open/dev/fennel/calculator/BoolInstruction.cpp#1 $");
00357 
00358 // End BoolInstruction.cpp

Generated on Mon Jun 22 04:00:16 2009 for Fennel by  doxygen 1.5.1