ExtDynamicVariable.cpp File Reference

Go to the source code of this file.

Functions

FENNEL_BEGIN_NAMESPACE PConstBuffer getData (RegisterRef< int > *id)
void dynamicVariable (RegisterRef< int8_t > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< uint8_t > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< int16_t > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< uint16_t > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< int32_t > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< uint32_t > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< int64_t > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< uint64_t > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< float > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< double > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< bool > *result, RegisterRef< int32_t > *id)
void dynamicVariable (RegisterRef< char * > *result, RegisterRef< int32_t > *id)
void ExtDynamicVariableRegister (ExtendedInstructionTable *eit)


Function Documentation

void dynamicVariable ( RegisterRef< char * > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 127 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00130 {
00131     result->value(*reinterpret_cast<char* const *>(getData(id)));
00132 }

void dynamicVariable ( RegisterRef< bool > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 119 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00122 {
00123     result->value(*reinterpret_cast<bool const *>(getData(id)));
00124 }

void dynamicVariable ( RegisterRef< double > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 111 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00114 {
00115     result->value(*reinterpret_cast<double const *>(getData(id)));
00116 }

void dynamicVariable ( RegisterRef< float > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 103 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00106 {
00107     result->value(*reinterpret_cast<float const *>(getData(id)));
00108 }

void dynamicVariable ( RegisterRef< uint64_t > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 95 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00098 {
00099     result->value(*reinterpret_cast<uint64_t const *>(getData(id)));
00100 }

void dynamicVariable ( RegisterRef< int64_t > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 87 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00090 {
00091     result->value(*reinterpret_cast<int64_t const *>(getData(id)));
00092 }

void dynamicVariable ( RegisterRef< uint32_t > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 79 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00082 {
00083     result->value(*reinterpret_cast<uint32_t const *>(getData(id)));
00084 }

void dynamicVariable ( RegisterRef< int32_t > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 71 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00074 {
00075     result->value(*reinterpret_cast<int32_t const *>(getData(id)));
00076 }

void dynamicVariable ( RegisterRef< uint16_t > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 63 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00066 {
00067     result->value(*reinterpret_cast<uint16_t const *>(getData(id)));
00068 }

void dynamicVariable ( RegisterRef< int16_t > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 55 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00058 {
00059     result->value(*reinterpret_cast<int16_t const *>(getData(id)));
00060 }

void dynamicVariable ( RegisterRef< uint8_t > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 47 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

00050 {
00051     result->value(*reinterpret_cast<uint8_t const *>(getData(id)));
00052 }

void dynamicVariable ( RegisterRef< int8_t > *  result,
RegisterRef< int32_t > *  id 
)

Definition at line 39 of file ExtDynamicVariable.cpp.

References getData(), and RegisterRef< TMPLT >::value().

Referenced by ExtDynamicVariableRegister().

00042 {
00043     result->value(*reinterpret_cast<int8_t const *>(getData(id)));
00044 }

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 }

FENNEL_BEGIN_NAMESPACE PConstBuffer getData ( RegisterRef< int > *  id  ) 

Definition at line 32 of file ExtDynamicVariable.cpp.

References RegisterRef< TMPLT >::isNull(), and RegisterRef< TMPLT >::value().

Referenced by dynamicVariable().

00032                                            {
00033     assert(!id->isNull());
00034     return id->getDynamicParamManager()->getParam(
00035         DynamicParamId(id->value())).getDatum().pData;
00036 }


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