Home | History | Annotate | Download | only in slang

Lines Matching refs:ET

61 static std::string GetTypeName(const RSExportType *ET, bool PreIdentifier = true) {
62 if((!PreIdentifier) && (ET->getClass() != RSExportType::ExportClassConstantArray)) {
66 switch (ET->getClass()) {
69 static_cast<const RSExportPrimitiveType *>(ET);
79 static_cast<const RSExportPointerType *>(ET)->getPointeeType();
87 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
94 return GetMatrixTypeName(static_cast<const RSExportMatrixType *>(ET));
98 static_cast<const RSExportConstantArrayType *>(ET);
111 return ET->getElementName() + "." + kRsTypeItemClassName;
517 const RSExportType *ET = EV->getType();
519 switch (ET->getClass()) {
521 genGetterAndSetter(static_cast<const RSExportPrimitiveType *>(ET), EV);
530 genGetterAndSetter(static_cast<const RSExportVectorType *>(ET), EV);
538 genGetterAndSetter(static_cast<const RSExportConstantArrayType *>(ET),
543 genGetterAndSetter(static_cast<const RSExportRecordType *>(ET), EV);
586 const RSExportType *ET = EV->getType();
588 slangAssert((ET->getClass() == RSExportType::ExportClassPointer) &&
591 std::string TypeName = GetTypeName(ET);
656 const RSExportType *ET = EV->getType();
657 if (ET->getName() == "rs_matrix4x4") {
662 } else if (ET->getName() == "rs_matrix3x3") {
667 } else if (ET->getName() == "rs_matrix2x2") {
673 mOut.indent() << "#error: TODO: " << ET->getName();
681 const RSExportType *ET = EV->getType();
684 static_cast<const RSExportConstantArrayType *>(ET);
752 bool RSReflectionCpp::genCreateFieldPacker(const RSExportType *ET,
754 size_t AllocSize = ET->getAllocSize();
765 void RSReflectionCpp::genPackVarOfType(const RSExportType *ET,
768 switch (ET->getClass()) {
778 static_cast<const RSExportConstantArrayType *>(ET);
809 const RSExportRecordType *ERT = static_cast<const RSExportRecordType *>(ET);
855 void RSReflectionCpp::genTypeCheck(const RSExportType *ET,
859 if (ET->getClass() == RSExportType::ExportClassPointer) {
861 static_cast<const RSExportPointerType *>(ET);
862 ET = EPT->getPointeeType();
866 switch (ET->getClass()) {
870 TypeName = ET->getElementName();
890 void RSReflectionCpp::genTypeInstanceFromPointer(const RSExportType *ET) {
891 if (ET->getClass() == RSExportType::ExportClassPointer) {
894 static_cast<const RSExportPointerType *>(ET);
898 genTypeInstance(ET);
902 void RSReflectionCpp::genTypeInstance(const RSExportType *ET) {
903 switch (ET->getClass()) {
908 std::string TypeName = ET->getElementName();
918 void RSReflectionCpp::genInitExportVariable(const RSExportType *ET,
923 switch (ET->getClass()) {
926 static_cast<const RSExportPrimitiveType *>(ET);
941 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);