1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
|
//
// File: Overload_Test_Impl.cc
// Symbol: Overload.Test-v1.0
// Symbol Type: class
// Babel Version: 0.10.2
// Description: Server-side implementation for Overload.Test
//
// WARNING: Automatically generated; only changes within splicers preserved
//
// babel-version = 0.10.2
//
#include "Overload_Test_Impl.hh"
#line 14 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test._includes)
// Put additional includes or other arbitrary code here...
// DO-NOT-DELETE splicer.end(Overload.Test._includes)
#line 18 "Overload_Test_Impl.cc"
// user-defined constructor.
void Overload::Test_impl::_ctor() {
#line 20 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test._ctor)
// add construction details here
// DO-NOT-DELETE splicer.end(Overload.Test._ctor)
#line 26 "Overload_Test_Impl.cc"
}
// user-defined destructor.
void Overload::Test_impl::_dtor() {
#line 27 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test._dtor)
// add destruction details here
// DO-NOT-DELETE splicer.end(Overload.Test._dtor)
#line 35 "Overload_Test_Impl.cc"
}
// static class initializer.
void Overload::Test_impl::_load() {
#line 34 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test._load)
// guaranteed to be called at most once before any other method in this class
// DO-NOT-DELETE splicer.end(Overload.Test._load)
#line 44 "Overload_Test_Impl.cc"
}
// user-defined static methods: (none)
// user-defined non-static methods:
/**
* Method: getValue[IntDouble]
*/
double
Overload::Test_impl::getValue (
/* in */ int32_t a,
/* in */ double b )
throw ()
{
#line 51 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueIntDouble)
return ((double)a + b);
// DO-NOT-DELETE splicer.end(Overload.Test.getValueIntDouble)
#line 63 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[DoubleInt]
*/
double
Overload::Test_impl::getValue (
/* in */ double a,
/* in */ int32_t b )
throw ()
{
#line 65 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueDoubleInt)
return (a + (double)b);
// DO-NOT-DELETE splicer.end(Overload.Test.getValueDoubleInt)
#line 79 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[IntDoubleFloat]
*/
double
Overload::Test_impl::getValue (
/* in */ int32_t a,
/* in */ double b,
/* in */ float c )
throw ()
{
#line 80 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueIntDoubleFloat)
return ((double)a + b + (double)c);
// DO-NOT-DELETE splicer.end(Overload.Test.getValueIntDoubleFloat)
#line 96 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[DoubleIntFloat]
*/
double
Overload::Test_impl::getValue (
/* in */ double a,
/* in */ int32_t b,
/* in */ float c )
throw ()
{
#line 95 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueDoubleIntFloat)
return (a + (double)b + (double)c);
// DO-NOT-DELETE splicer.end(Overload.Test.getValueDoubleIntFloat)
#line 113 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[IntFloatDouble]
*/
double
Overload::Test_impl::getValue (
/* in */ int32_t a,
/* in */ float b,
/* in */ double c )
throw ()
{
#line 110 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueIntFloatDouble)
return ((double)a + (double)b + c);
// DO-NOT-DELETE splicer.end(Overload.Test.getValueIntFloatDouble)
#line 130 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[DoubleFloatInt]
*/
double
Overload::Test_impl::getValue (
/* in */ double a,
/* in */ float b,
/* in */ int32_t c )
throw ()
{
#line 125 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueDoubleFloatInt)
return (a + (double)b + (double)c);
// DO-NOT-DELETE splicer.end(Overload.Test.getValueDoubleFloatInt)
#line 147 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[FloatIntDouble]
*/
double
Overload::Test_impl::getValue (
/* in */ float a,
/* in */ int32_t b,
/* in */ double c )
throw ()
{
#line 140 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueFloatIntDouble)
return ((double)a + (double)b + c);
// DO-NOT-DELETE splicer.end(Overload.Test.getValueFloatIntDouble)
#line 164 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[FloatDoubleInt]
*/
double
Overload::Test_impl::getValue (
/* in */ float a,
/* in */ double b,
/* in */ int32_t c )
throw ()
{
#line 155 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueFloatDoubleInt)
return ((double)a + b + (double)c);
// DO-NOT-DELETE splicer.end(Overload.Test.getValueFloatDoubleInt)
#line 181 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[Exception]
*/
::std::string
Overload::Test_impl::getValue (
/* in */ ::Overload::AnException v )
throw ()
{
#line 168 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueException)
return v.getNote();
// DO-NOT-DELETE splicer.end(Overload.Test.getValueException)
#line 196 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[AClass]
*/
int32_t
Overload::Test_impl::getValue (
/* in */ ::Overload::AClass v )
throw ()
{
#line 181 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueAClass)
return v.getValue();
// DO-NOT-DELETE splicer.end(Overload.Test.getValueAClass)
#line 211 "Overload_Test_Impl.cc"
}
/**
* Method: getValue[BClass]
*/
int32_t
Overload::Test_impl::getValue (
/* in */ ::Overload::BClass v )
throw ()
{
#line 194 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test.getValueBClass)
return v.getValue();
// DO-NOT-DELETE splicer.end(Overload.Test.getValueBClass)
#line 226 "Overload_Test_Impl.cc"
}
#line 200 "../../../../babel/regression/overload/libCxx/Overload_Test_Impl.cc"
// DO-NOT-DELETE splicer.begin(Overload.Test._misc)
// Put miscellaneous code here
// DO-NOT-DELETE splicer.end(Overload.Test._misc)
#line 234 "Overload_Test_Impl.cc"
|