Lines Matching refs:ET

158 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) {
159 switch (ET->getClass()) {
162 static_cast<const RSExportPrimitiveType*>(ET))->java_name;
166 static_cast<const RSExportPointerType*>(ET)->getPointeeType();
175 static_cast<const RSExportVectorType*>(ET);
182 return GetMatrixTypeName(static_cast<const RSExportMatrixType*>(ET));
186 static_cast<const RSExportConstantArrayType*>(ET);
194 return ET->getElementName() + "."RS_TYPE_ITEM_CLASS_NAME;
204 static const char *GetTypeNullValue(const RSExportType *ET) {
205 switch (ET->getClass()) {
208 static_cast<const RSExportPrimitiveType*>(ET);
232 static std::string GetBuiltinElementConstruct(const RSExportType *ET) {
233 if (ET->getClass() == RSExportType::ExportClassPrimitive) {
234 return std::string("Element.") + ET->getElementName();
235 } else if (ET->getClass() == RSExportType::ExportClassVector) {
236 const RSExportVectorType *EVT = static_cast<const RSExportVectorType*>(ET);
248 } else if (ET->getClass() == RSExportType::ExportClassMatrix) {
249 const RSExportMatrixType *EMT = static_cast<const RSExportMatrixType *>(ET);
334 const RSExportType *ET = ECAT->getElementType();
338 genInitExportVariable(C, ET, Name.str(), EV->getInitArray(i));
404 const RSExportType *ET,
409 switch (ET->getClass()) {
412 static_cast<const RSExportPrimitiveType*>(ET);
428 static_cast<const RSExportVectorType*>(ET);
478 static_cast<const RSExportRecordType*>(ET);
514 const RSExportType *ET = EV->getType();
520 switch (ET->getClass()) {
694 const RSExportType *ET) {
695 if (ET->getClass() == RSExportType::ExportClassPointer) {
697 static_cast<const RSExportPointerType*>(ET);
703 const RSExportType *ET) {
704 switch (ET->getClass()) {
708 std::string TypeName = ET->getElementName();
718 std::string ClassName = ET->getElementName();
733 const RSExportType *ET,
737 if (ET->getClass() == RSExportType::ExportClassPointer) {
739 static_cast<const RSExportPointerType*>(ET);
740 ET = EPT->getPointeeType();
745 switch (ET->getClass()) {
749 TypeName = ET->getElementName();
811 const RSExportType *ET = EV->getType();
814 slangAssert((ET->getClass() == RSExportType::ExportClassPointer) &&
817 PointeeType = static_cast<const RSExportPointerType*>(ET)->getPointeeType();
818 std::string TypeName = GetTypeName(ET);
868 const RSExportType *ET = EV->getType();
869 std::string TypeName = GetTypeName(ET);
885 if (genCreateFieldPacker(C, ET, FieldPackerName))
886 genPackVarOfType(C, ET, "v", FieldPackerName);
941 const RSExportType *ET = EV->getType();
950 if (genCreateFieldPacker(C, ET, FieldPackerName))
951 genPackVarOfType(C, ET, "v", FieldPackerName);
961 C.indent() << "__dimArr[0] = " << ET->getSize() << ";" << std::endl;
964 << ET->getElementName() << ", __dimArr);" << std::endl;
990 const RSExportType *ET,
992 size_t AllocSize = RSExportType::GetTypeAllocSize(ET);
1002 const RSExportType *ET,
1005 switch (ET->getClass()) {
1010 static_cast<const RSExportPrimitiveType*>(ET))
1017 static_cast<const RSExportPointerType*>(ET)->getPointeeType();
1034 static_cast<const RSExportConstantArrayType *>(ET);
1066 static_cast<const RSExportRecordType*>(ET);
1685 const RSExportType *ET,
1690 std::string ElementConstruct = GetBuiltinElementConstruct(ET);
1695 if ((ET->getClass() == RSExportType::ExportClassPrimitive) ||
1696 (ET->getClass() == RSExportType::ExportClassVector)) {
1698 static_cast<const RSExportPrimitiveType*>(ET);
1701 int Size = (ET->getClass() == RSExportType::ExportClassVector) ?
1702 static_cast<const RSExportVectorType*>(ET)->getNumElement() :
1711 slangAssert((ET->getClass() == RSExportType::ExportClassVector) &&
1719 } else if (ET->getClass() == RSExportType::ExportClassPointer) {
1723 } else if (ET->getClass() == RSExportType::ExportClassMatrix) {
1728 } else if (ET->getClass() == RSExportType::ExportClassConstantArray) {
1730 static_cast<const RSExportConstantArrayType *>(ET);
1752 } else if (ET->getClass() == RSExportType::ExportClassRecord) {
1758 static_cast<const RSExportRecordType*>(ET);
1910 const RSExportType *ET = TI->getValue();
1912 if (ET->getClass() == RSExportType::ExportClassRecord) {
1914 static_cast<const RSExportRecordType*>(ET);