Home | History | Annotate | Download | only in slang

Lines Matching defs:EV

225     const RSExportVar *ev = *I;
226 if (ev->isConst()) {
240 mOut.indent() << GetTypeName(ev->getType()) << " " RS_EXPORT_VAR_PREFIX
241 << ev->getName() << ";\n";
481 const RSExportVar *EV = *I;
482 if (!EV->getInit().isUninit()) {
483 genInitExportVariable(EV->getType(), EV->getName(), EV->getInit());
485 genZeroInitExportVariable(EV->getName());
514 const RSExportVar *EV = *I;
515 const RSExportType *ET = EV->getType();
519 genGetterAndSetter(static_cast<const RSExportPrimitiveType *>(ET), EV);
524 genPointerTypeExportVariable(EV);
528 genGetterAndSetter(static_cast<const RSExportVectorType *>(ET), EV);
532 genMatrixTypeExportVariable(EV);
537 EV);
541 genGetterAndSetter(static_cast<const RSExportRecordType *>(ET), EV);
550 const RSExportVar *EV) {
555 if (!EV->isConst()) {
556 mOut.indent() << "void set_" << EV->getName() << "(" << TypeName << " v)";
565 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n";
568 mOut.indent() << TypeName << " get_" << EV->getName() << "() const";
570 if (EV->isConst()) {
571 const clang::APValue &val = EV->getInit();
577 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName()
583 void RSReflectionCpp::genPointerTypeExportVariable(const RSExportVar *EV) {
584 const RSExportType *ET = EV->getType();
590 std::string VarName = EV->getName();
593 EV->getType()->convertToRTD(&rtd);
596 if (!EV->isConst()) {
605 if (EV->isConst()) {
606 const clang::APValue &val = EV->getInit();
618 const RSExportVar *EV) {
624 if (!EV->isConst()) {
625 mOut.indent() << "void set_" << EV->getName() << "("
631 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n";
635 << " get_" << EV->getName() << "() const";
637 if (EV->isConst()) {
638 const clang::APValue &val = EV->getInit();
643 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName()
649 void RSReflectionCpp::genMatrixTypeExportVariable(const RSExportVar *EV) {
654 const RSExportType *ET = EV->getType();
656 mOut.indent() << "void set_" << EV->getName() << "(float v[16])";
661 mOut.indent() << "void set_" << EV->getName() << "(float v[9])";
666 mOut.indent() << "void set_" << EV->getName() << "(float v[4])";
677 const RSExportVar *EV) {
679 const RSExportType *ET = EV->getType();
689 mOut.indent() << "void set_" << EV->getName() << "(" << GetTypeName(EV->getType()) << " v "
690 << GetTypeName(EV->getType(), false) << ")";
692 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(" << GetTypeName(EV->getType()) + ") *"
698 const RSExportVar *EV) {