Go to the source code of this file.
Functions | |
FENNEL_BEGIN_NAMESPACE void | dynamicVariable (RegisterRef< int > *result, RegisterRef< int > *id) |
dynamicVaraiable. | |
void | ExtDynamicVariableRegister (ExtendedInstructionTable *eit) |
FENNEL_BEGIN_NAMESPACE void dynamicVariable | ( | RegisterRef< int > * | result, | |
RegisterRef< int > * | id | |||
) |
dynamicVaraiable.
Gets the dynamic variable corresponding to id and casts into a 4 byte integer
void ExtDynamicVariableRegister | ( | ExtendedInstructionTable * | eit | ) |
Definition at line 135 of file ExtDynamicVariable.cpp.
References ExtendedInstructionTable::add(), dynamicVariable(), STANDARD_TYPE_BINARY, STANDARD_TYPE_BOOL, STANDARD_TYPE_CHAR, STANDARD_TYPE_DOUBLE, STANDARD_TYPE_INT_16, STANDARD_TYPE_INT_32, STANDARD_TYPE_INT_64, STANDARD_TYPE_INT_8, STANDARD_TYPE_REAL, STANDARD_TYPE_UINT_16, STANDARD_TYPE_UINT_32, STANDARD_TYPE_UINT_64, STANDARD_TYPE_UINT_8, STANDARD_TYPE_VARBINARY, and STANDARD_TYPE_VARCHAR.
Referenced by CalcInit::instance().
00136 { 00137 assert(eit != NULL); 00138 00139 vector<StandardTypeDescriptorOrdinal> params_s1; 00140 params_s1.push_back(STANDARD_TYPE_INT_8); 00141 params_s1.push_back(STANDARD_TYPE_INT_32); 00142 eit->add( 00143 "dynamicVariable", params_s1, 00144 (ExtendedInstruction2<int8_t, int32_t>*) NULL, 00145 &dynamicVariable); 00146 00147 vector<StandardTypeDescriptorOrdinal> params_u1; 00148 params_u1.push_back(STANDARD_TYPE_UINT_8); 00149 params_u1.push_back(STANDARD_TYPE_INT_32); 00150 eit->add( 00151 "dynamicVariable", params_u1, 00152 (ExtendedInstruction2<uint8_t, int>*) NULL, 00153 &dynamicVariable); 00154 00155 vector<StandardTypeDescriptorOrdinal> params_s2; 00156 params_s2.push_back(STANDARD_TYPE_INT_16); 00157 params_s2.push_back(STANDARD_TYPE_INT_32); 00158 eit->add( 00159 "dynamicVariable", params_s2, 00160 (ExtendedInstruction2<int16_t, int32_t>*) NULL, 00161 &dynamicVariable); 00162 00163 vector<StandardTypeDescriptorOrdinal> params_u2; 00164 params_u2.push_back(STANDARD_TYPE_UINT_16); 00165 params_u2.push_back(STANDARD_TYPE_INT_32); 00166 eit->add( 00167 "dynamicVariable", params_u2, 00168 (ExtendedInstruction2<uint16_t, int32_t>*) NULL, 00169 &dynamicVariable); 00170 00171 vector<StandardTypeDescriptorOrdinal> params_s4; 00172 params_s4.push_back(STANDARD_TYPE_INT_32); 00173 params_s4.push_back(STANDARD_TYPE_INT_32); 00174 eit->add( 00175 "dynamicVariable", params_s4, 00176 (ExtendedInstruction2<int32_t, int32_t>*) NULL, 00177 &dynamicVariable); 00178 00179 vector<StandardTypeDescriptorOrdinal> params_u4; 00180 params_u4.push_back(STANDARD_TYPE_UINT_32); 00181 params_u4.push_back(STANDARD_TYPE_INT_32); 00182 eit->add( 00183 "dynamicVariable", params_u4, 00184 (ExtendedInstruction2<uint32_t, int32_t>*) NULL, 00185 &dynamicVariable); 00186 00187 vector<StandardTypeDescriptorOrdinal> params_s8; 00188 params_s8.push_back(STANDARD_TYPE_INT_64); 00189 params_s8.push_back(STANDARD_TYPE_INT_32); 00190 eit->add( 00191 "dynamicVariable", params_s8, 00192 (ExtendedInstruction2<int64_t, int32_t>*) NULL, 00193 &dynamicVariable); 00194 00195 vector<StandardTypeDescriptorOrdinal> params_u8; 00196 params_u8.push_back(STANDARD_TYPE_UINT_64); 00197 params_u8.push_back(STANDARD_TYPE_INT_32); 00198 eit->add( 00199 "dynamicVariable", params_u8, 00200 (ExtendedInstruction2<uint64_t, int32_t>*) NULL, 00201 &dynamicVariable); 00202 00203 vector<StandardTypeDescriptorOrdinal> params_float; 00204 params_float.push_back(STANDARD_TYPE_REAL); 00205 params_float.push_back(STANDARD_TYPE_INT_32); 00206 eit->add( 00207 "dynamicVariable", params_float, 00208 (ExtendedInstruction2<float, int32_t>*) NULL, 00209 &dynamicVariable); 00210 00211 vector<StandardTypeDescriptorOrdinal> params_double; 00212 params_double.push_back(STANDARD_TYPE_DOUBLE); 00213 params_double.push_back(STANDARD_TYPE_INT_32); 00214 eit->add( 00215 "dynamicVariable", params_double, 00216 (ExtendedInstruction2<double, int32_t>*) NULL, 00217 &dynamicVariable); 00218 00219 vector<StandardTypeDescriptorOrdinal> params_bool; 00220 params_bool.push_back(STANDARD_TYPE_BOOL); 00221 params_bool.push_back(STANDARD_TYPE_INT_32); 00222 eit->add( 00223 "dynamicVariable", params_bool, 00224 (ExtendedInstruction2<bool, int32_t>*) NULL, 00225 &dynamicVariable); 00226 00227 vector<StandardTypeDescriptorOrdinal> params_char; 00228 params_char.push_back(STANDARD_TYPE_CHAR); 00229 params_char.push_back(STANDARD_TYPE_INT_32); 00230 eit->add( 00231 "dynamicVariable", params_char, 00232 (ExtendedInstruction2<char*, int32_t>*) NULL, 00233 &dynamicVariable); 00234 00235 vector<StandardTypeDescriptorOrdinal> params_varchar; 00236 params_varchar.push_back(STANDARD_TYPE_VARCHAR); 00237 params_varchar.push_back(STANDARD_TYPE_INT_32); 00238 eit->add( 00239 "dynamicVariable", params_varchar, 00240 (ExtendedInstruction2<char*, int32_t>*) NULL, 00241 &dynamicVariable); 00242 00243 vector<StandardTypeDescriptorOrdinal> params_binary; 00244 params_binary.push_back(STANDARD_TYPE_BINARY); 00245 params_binary.push_back(STANDARD_TYPE_INT_32); 00246 eit->add( 00247 "dynamicVariable", params_binary, 00248 (ExtendedInstruction2<char*, int32_t>*) NULL, 00249 &dynamicVariable); 00250 00251 vector<StandardTypeDescriptorOrdinal> params_varbinary; 00252 params_varbinary.push_back(STANDARD_TYPE_VARBINARY); 00253 params_varbinary.push_back(STANDARD_TYPE_INT_32); 00254 eit->add( 00255 "dynamicVariable", params_varbinary, 00256 (ExtendedInstruction2<char*, int32_t>*) NULL, 00257 &dynamicVariable); 00258 00259 }