• Home
  • Raw
  • Download

Lines Matching refs:ET

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