Home | History | Annotate | Download | only in slang

Lines Matching refs:ET

85   void genAddElement(const RSExportType *ET, const std::string &VarName,
175 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) {
176 switch (ET->getClass()) {
179 static_cast<const RSExportPrimitiveType *>(ET))->java_name;
183 static_cast<const RSExportPointerType *>(ET)->getPointeeType();
191 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
198 return GetMatrixTypeName(static_cast<const RSExportMatrixType *>(ET));
202 static_cast<const RSExportConstantArrayType *>(ET);
210 return ET->getElementName() + "." RS_TYPE_ITEM_CLASS_NAME;
218 static const char *GetTypeNullValue(const RSExportType *ET) {
219 switch (ET->getClass()) {
222 static_cast<const RSExportPrimitiveType *>(ET);
244 static std::string GetBuiltinElementConstruct(const RSExportType *ET) {
245 if (ET->getClass() == RSExportType::ExportClassPrimitive) {
246 return std::string("Element.") + ET->getElementName();
247 } else if (ET->getClass() == RSExportType::ExportClassVector) {
248 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
263 } else if (ET->getClass() == RSExportType::ExportClassMatrix) {
264 const RSExportMatrixType *EMT = static_cast<const RSExportMatrixType *>(ET);
404 const RSExportType *ET = ECAT->getElementType();
408 genInitExportVariable(ET, Name.str(), EV->getInitArray(i));
474 void RSReflectionJava::genInitExportVariable(const RSExportType *ET,
479 switch (ET->getClass()) {
482 static_cast<const RSExportPrimitiveType *>(ET);
497 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
546 static_cast<const RSExportRecordType*>(ET);
578 const RSExportType *ET = EV->getType();
583 switch (ET->getClass()) {
861 void RSReflectionJava::genTypeInstanceFromPointer(const RSExportType *ET) {
862 if (ET->getClass() == RSExportType::ExportClassPointer) {
865 static_cast<const RSExportPointerType *>(ET);
869 genTypeInstance(ET);
873 void RSReflectionJava::genTypeInstance(const RSExportType *ET) {
874 switch (ET->getClass()) {
878 std::string TypeName = ET->getElementName();
887 std::string ClassName = ET->getElementName();
900 void RSReflectionJava::genFieldPackerInstance(const RSExportType *ET) {
901 switch (ET->getClass()) {
906 std::string TypeName = ET->getElementName();
916 void RSReflectionJava::genTypeCheck(const RSExportType *ET,
920 if (ET->getClass() == RSExportType::ExportClassPointer) {
922 static_cast<const RSExportPointerType *>(ET);
923 ET = EPT->getPointeeType();
928 switch (ET->getClass()) {
932 TypeName = ET->getElementName();
1057 const RSExportType *ET = EV->getType();
1060 slangAssert((ET->getClass() == RSExportType::ExportClassPointer) &&
1063 PointeeType = static_cast<const RSExportPointerType *>(ET)->getPointeeType();
1064 std::string TypeName = GetTypeName(ET);
1107 const RSExportType *ET = EV->getType();
1108 std::string TypeName = GetTypeName(ET);
1120 if (genCreateFieldPacker(ET, FieldPackerName))
1121 genPackVarOfType(ET, "v", FieldPackerName);
1171 const RSExportType *ET = EV->getType();
1176 if (genCreateFieldPacker(ET, FieldPackerName))
1177 genPackVarOfType(ET, "v", FieldPackerName);
1187 mOut.indent() << "__dimArr[0] = " << ET->getSize() << ";\n";
1190 << ET->getElementName() << ", __dimArr);\n";
1221 bool RSReflectionJava::genCreateFieldPacker(const RSExportType *ET,
1223 size_t AllocSize = ET->getAllocSize();
1232 void RSReflectionJava::genPackVarOfType(const RSExportType *ET,
1235 switch (ET->getClass()) {
1240 static_cast<const RSExportPrimitiveType *>(ET)) << "("
1247 static_cast<const RSExportPointerType *>(ET)->getPointeeType();
1264 static_cast<const RSExportConstantArrayType *>(ET);
1294 const RSExportRecordType *ERT = static_cast<const RSExportRecordType *>(ET);
1778 void RSReflectionJavaElementBuilder::genAddElement(const RSExportType *ET,
1781 std::string ElementConstruct = GetBuiltinElementConstruct(ET);
1789 switch (ET->getClass()) {
1792 static_cast<const RSExportPrimitiveType *>(ET);
1803 static_cast<const RSExportVectorType *>(ET);
1825 static_cast<const RSExportConstantArrayType *>(ET);
1853 static_cast<const RSExportRecordType *>(ET);
1968 const RSExportType *ET = TI->getValue();
1970 if (ET->getClass() == RSExportType::ExportClassRecord) {
1972 static_cast<const RSExportRecordType *>(ET);