Lines Matching defs:EV
220 const RSExportVar *ev = *I;
221 if (ev->isConst()) {
235 mOut.indent() << GetTypeName(ev->getType()) << " " RS_EXPORT_VAR_PREFIX
236 << ev->getName() << ";\n";
361 const RSExportVar *EV = *I;
362 if (!EV->getInit().isUninit()) {
363 genInitExportVariable(EV->getType(), EV->getName(), EV->getInit());
365 genZeroInitExportVariable(EV->getName());
503 const RSExportVar *EV = *I;
504 const RSExportType *ET = EV->getType();
508 genGetterAndSetter(static_cast<const RSExportPrimitiveType *>(ET), EV);
513 genPointerTypeExportVariable(EV);
517 genGetterAndSetter(static_cast<const RSExportVectorType *>(ET), EV);
521 genMatrixTypeExportVariable(EV);
526 EV);
530 genGetterAndSetter(static_cast<const RSExportRecordType *>(ET), EV);
539 const RSExportVar *EV) {
544 if (!EV->isConst()) {
545 mOut.indent() << "void set_" << EV->getName() << "(" << TypeName << " v)";
554 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n";
557 mOut.indent() << TypeName << " get_" << EV->getName() << "() const";
559 if (EV->isConst()) {
560 const clang::APValue &val = EV->getInit();
566 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName()
572 void RSReflectionCpp::genPointerTypeExportVariable(const RSExportVar *EV) {
573 const RSExportType *ET = EV->getType();
579 std::string VarName = EV->getName();
582 EV->getType()->convertToRTD(&rtd);
585 if (!EV->isConst()) {
594 if (EV->isConst()) {
595 const clang::APValue &val = EV->getInit();
607 const RSExportVar *EV) {
613 if (!EV->isConst()) {
614 mOut.indent() << "void set_" << EV->getName() << "("
620 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n";
624 << " get_" << EV->getName() << "() const";
626 if (EV->isConst()) {
627 const clang::APValue &val = EV->getInit();
632 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName()
638 void RSReflectionCpp::genMatrixTypeExportVariable(const RSExportVar *EV) {
643 const RSExportVar *EV) {
648 const RSExportVar *EV) {