Lines Matching defs:ET

86   void genAddElement(const RSExportType *ET, const std::string &VarName,
176 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) {
177 switch (ET->getClass()) {
180 static_cast<const RSExportPrimitiveType *>(ET))->java_name;
184 static_cast<const RSExportPointerType *>(ET)->getPointeeType();
192 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
199 return GetMatrixTypeName(static_cast<const RSExportMatrixType *>(ET));
203 static_cast<const RSExportConstantArrayType *>(ET);
211 return ET->getElementName() + "." RS_TYPE_ITEM_CLASS_NAME;
219 static const char *GetTypeNullValue(const RSExportType *ET) {
220 switch (ET->getClass()) {
223 static_cast<const RSExportPrimitiveType *>(ET);
245 static std::string GetBuiltinElementConstruct(const RSExportType *ET) {
246 if (ET->getClass() == RSExportType::ExportClassPrimitive) {
247 return std::string("Element.") + ET->getElementName();
248 } else if (ET->getClass() == RSExportType::ExportClassVector) {
249 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
264 } else if (ET->getClass() == RSExportType::ExportClassMatrix) {
265 const RSExportMatrixType *EMT = static_cast<const RSExportMatrixType *>(ET);
405 const RSExportType *ET = ECAT->getElementType();
409 genInitExportVariable(ET, Name.str(), EV->getInitArray(i));
475 void RSReflectionJava::genInitExportVariable(const RSExportType *ET,
480 switch (ET->getClass()) {
483 static_cast<const RSExportPrimitiveType *>(ET);
498 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
547 static_cast<const RSExportRecordType*>(ET);
579 const RSExportType *ET = EV->getType();
584 switch (ET->getClass()) {
847 void RSReflectionJava::genTypeInstanceFromPointer(const RSExportType *ET) {
848 if (ET->getClass() == RSExportType::ExportClassPointer) {
851 static_cast<const RSExportPointerType *>(ET);
855 genTypeInstance(ET);
859 void RSReflectionJava::genTypeInstance(const RSExportType *ET) {
860 switch (ET->getClass()) {
864 std::string TypeName = ET->getElementName();
873 std::string ClassName = ET->getElementName();
886 void RSReflectionJava::genFieldPackerInstance(const RSExportType *ET) {
887 switch (ET->getClass()) {
892 std::string TypeName = ET->getElementName();
902 void RSReflectionJava::genTypeCheck(const RSExportType *ET,
906 if (ET->getClass() == RSExportType::ExportClassPointer) {
908 static_cast<const RSExportPointerType *>(ET);
909 ET = EPT->getPointeeType();
914 switch (ET->getClass()) {
918 TypeName = ET->getElementName();
1043 const RSExportType *ET = EV->getType();
1046 slangAssert((ET->getClass() == RSExportType::ExportClassPointer) &&
1049 PointeeType = static_cast<const RSExportPointerType *>(ET)->getPointeeType();
1050 std::string TypeName = GetTypeName(ET);
1093 const RSExportType *ET = EV->getType();
1094 std::string TypeName = GetTypeName(ET);
1106 if (genCreateFieldPacker(ET, FieldPackerName))
1107 genPackVarOfType(ET, "v", FieldPackerName);
1157 const RSExportType *ET = EV->getType();
1162 if (genCreateFieldPacker(ET, FieldPackerName))
1163 genPackVarOfType(ET, "v", FieldPackerName);
1173 mOut.indent() << "__dimArr[0] = " << ET->getSize() << ";\n";
1176 << ET->getElementName() << ", __dimArr);\n";
1207 bool RSReflectionJava::genCreateFieldPacker(const RSExportType *ET,
1209 size_t AllocSize = ET->getAllocSize();
1218 void RSReflectionJava::genPackVarOfType(const RSExportType *ET,
1221 switch (ET->getClass()) {
1226 static_cast<const RSExportPrimitiveType *>(ET)) << "("
1233 static_cast<const RSExportPointerType *>(ET)->getPointeeType();
1250 static_cast<const RSExportConstantArrayType *>(ET);
1280 const RSExportRecordType *ERT = static_cast<const RSExportRecordType *>(ET);
1764 void RSReflectionJavaElementBuilder::genAddElement(const RSExportType *ET,
1767 std::string ElementConstruct = GetBuiltinElementConstruct(ET);
1775 switch (ET->getClass()) {
1778 static_cast<const RSExportPrimitiveType *>(ET);
1789 static_cast<const RSExportVectorType *>(ET);
1811 static_cast<const RSExportConstantArrayType *>(ET);
1839 static_cast<const RSExportRecordType *>(ET);
1954 const RSExportType *ET = TI->getValue();
1956 if (ET->getClass() == RSExportType::ExportClassRecord) {
1958 static_cast<const RSExportRecordType *>(ET);