Home | History | Annotate | Download | only in slang

Lines Matching refs:ET

93   void genAddElement(const RSExportType *ET, const std::string &VarName,
193 std::string GetReduceResultTypeName(const RSExportType *ET) {
194 switch (ET->getClass()) {
196 const RSExportConstantArrayType *const CAT = static_cast<const RSExportConstantArrayType *>(ET);
206 ET,
211 RSReflectionJava::GetTypeName(ET, RSReflectionJava::TypeNameDefault | RSReflectionJava::TypeNameC);
221 static const char *GetTypeNullValue(const RSExportType *ET) {
222 switch (ET->getClass()) {
225 static_cast<const RSExportPrimitiveType *>(ET);
247 static std::string GetBuiltinElementConstruct(const RSExportType *ET) {
248 if (ET->getClass() == RSExportType::ExportClassPrimitive) {
249 return std::string("Element.") + ET->getElementName();
250 } else if (ET->getClass() == RSExportType::ExportClassVector) {
251 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
266 } else if (ET->getClass() == RSExportType::ExportClassMatrix) {
267 const RSExportMatrixType *EMT = static_cast<const RSExportMatrixType *>(ET);
335 std::string RSReflectionJava::GetTypeName(const RSExportType *ET, unsigned Style) {
341 switch (ET->getClass()) {
344 RSExportPrimitiveType::getRSReflectionType(static_cast<const RSExportPrimitiveType *>(ET));
351 static_cast<const RSExportPointerType *>(ET)->getPointeeType();
361 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
369 return GetMatrixTypeName(static_cast<const RSExportMatrixType *>(ET), CLike ? ML_Script : ML_Java);
373 static_cast<const RSExportConstantArrayType *>(ET);
391 return "struct " + ET->getName();
393 return ET->getElementName() + "." RS_TYPE_ITEM_CLASS_NAME;
395 return ET->getName();
657 const RSExportType *ET = ECAT->getElementType();
661 genInitExportVariable(ET, Name.str(), EV->getInitArray(i));
757 void RSReflectionJava::genInitExportVariable(const RSExportType *ET,
762 switch (ET->getClass()) {
765 static_cast<const RSExportPrimitiveType *>(ET);
780 const RSExportVectorType *EVT = static_cast<const RSExportVectorType *>(ET);
829 static_cast<const RSExportRecordType*>(ET);
861 const RSExportType *ET = EV->getType();
872 switch (ET->getClass()) {
1766 void RSReflectionJava::genTypeInstanceFromPointer(const RSExportType *ET) {
1767 if (ET->getClass() == RSExportType::ExportClassPointer) {
1770 static_cast<const RSExportPointerType *>(ET);
1774 genTypeInstance(ET);
1778 void RSReflectionJava::genTypeInstance(const RSExportType *ET) {
1779 switch (ET->getClass()) {
1783 std::string TypeName = ET->getElementName();
1792 std::string ClassName = ET->getElementName();
1805 void RSReflectionJava::genFieldPackerInstance(const RSExportType *ET) {
1806 switch (ET->getClass()) {
1811 std::string TypeName = ET->getElementName();
1821 void RSReflectionJava::genTypeCheck(const RSExportType *ET,
1825 if (ET->getClass() == RSExportType::ExportClassPointer) {
1827 static_cast<const RSExportPointerType *>(ET);
1828 ET = EPT->getPointeeType();
1833 switch (ET->getClass()) {
1837 TypeName = ET->getElementName();
1962 const RSExportType *ET = EV->getType();
1965 slangAssert((ET->getClass() == RSExportType::ExportClassPointer) &&
1968 PointeeType = static_cast<const RSExportPointerType *>(ET)->getPointeeType();
1969 std::string TypeName = GetTypeName(ET);
2012 const RSExportType *ET = EV->getType();
2013 std::string TypeName = GetTypeName(ET);
2025 if (genCreateFieldPacker(ET, FieldPackerName, ReflectionState::NoVal32()))
2026 genPackVarOfType(ET, "v", FieldPackerName);
2040 const RSExportType *const ET = EV->getType();
2042 (ET->getClass() == RSExportType::ExportClassConstantArray) &&
2050 static_cast<const RSExportConstantArrayType *>(ET)->getNumElement(),
2084 const RSExportType *ET = EV->getType();
2089 if (genCreateFieldPacker(ET, FieldPackerName, AllocSize32))
2090 genPackVarOfType(ET, "v", FieldPackerName);
2103 << ET->getElementName() << ", __dimArr);\n";
2134 bool RSReflectionJava::genCreateFieldPacker(const RSExportType *ET,
2137 size_t AllocSize = ET->getAllocSize();
2151 void RSReflectionJava::genPackVarOfType(const RSExportType *ET,
2157 switch (ET->getClass()) {
2162 static_cast<const RSExportPrimitiveType *>(ET)) << "("
2169 static_cast<const RSExportPointerType *>(ET)->getPointeeType();
2186 static_cast<const RSExportConstantArrayType *>(ET);
2218 const RSExportRecordType *ERT = static_cast<const RSExportRecordType *>(ET);
2728 void RSReflectionJavaElementBuilder::genAddElement(const RSExportType *ET,
2731 std::string ElementConstruct = GetBuiltinElementConstruct(ET);
2739 switch (ET->getClass()) {
2742 static_cast<const RSExportPrimitiveType *>(ET);
2753 static_cast<const RSExportVectorType *>(ET);
2775 static_cast<const RSExportConstantArrayType *>(ET);
2798 static_cast<const RSExportRecordType *>(ET);
2953 const RSExportType *ET = TI->getValue();
2955 if (ET->getClass() == RSExportType::ExportClassRecord) {
2957 static_cast<const RSExportRecordType *>(ET);