Lines Matching refs:unique_ptr

40 using std::unique_ptr;
73 unique_ptr<AstNode> BreakOnStatusNotOk() { in BreakOnStatusNotOk()
78 return unique_ptr<AstNode>(ret); in BreakOnStatusNotOk()
81 unique_ptr<AstNode> GotoErrorOnBadStatus() { in GotoErrorOnBadStatus()
86 return unique_ptr<AstNode>(ret); in GotoErrorOnBadStatus()
89 unique_ptr<AstNode> ReturnOnStatusNotOk() { in ReturnOnStatusNotOk()
93 return unique_ptr<AstNode>(ret); in ReturnOnStatusNotOk()
100 for (const unique_ptr<AidlArgument>& a : method.GetArguments()) { in BuildArgList()
158 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, const AidlTypenames& typenames, in BuildMethodDecl()
168 return unique_ptr<Declaration>{ in BuildMethodDecl()
173 unique_ptr<Declaration> BuildMetaMethodDecl(const AidlMethod& method, const AidlTypenames&, in BuildMetaMethodDecl()
187 return unique_ptr<Declaration>(new LiteralDecl(code.str())); in BuildMetaMethodDecl()
200 return unique_ptr<Declaration>(new LiteralDecl(code.str())); in BuildMetaMethodDecl()
205 std::vector<unique_ptr<Declaration>> NestInNamespaces(vector<unique_ptr<Declaration>> decls, in NestInNamespaces()
209 vector<unique_ptr<Declaration>> inner; in NestInNamespaces()
210 inner.emplace_back(unique_ptr<Declaration>{new CppNamespace{*it, std::move(decls)}}); in NestInNamespaces()
217 std::vector<unique_ptr<Declaration>> NestInNamespaces(unique_ptr<Declaration> decl, in NestInNamespaces()
219 vector<unique_ptr<Declaration>> decls; in NestInNamespaces()
251 unique_ptr<Declaration> DefineClientTransaction(const AidlTypenames& typenames, in DefineClientTransaction()
256 unique_ptr<MethodImpl> ret{ in DefineClientTransaction()
414 return unique_ptr<Declaration>(ret.release()); in DefineClientTransaction()
417 unique_ptr<Declaration> DefineClientMetaTransaction(const AidlTypenames& /* typenames */, in DefineClientMetaTransaction()
447 return unique_ptr<Declaration>(new LiteralDecl(code.str())); in DefineClientMetaTransaction()
471 return unique_ptr<Declaration>(new LiteralDecl(code.str())); in DefineClientMetaTransaction()
478 unique_ptr<Document> BuildClientSource(const AidlTypenames& typenames, in BuildClientSource()
490 vector<unique_ptr<Declaration>> file_decls; in BuildClientSource()
495 file_decls.push_back(unique_ptr<Declaration>{new ConstructorImpl{ in BuildClientSource()
508 file_decls.push_back(unique_ptr<Declaration>(new LiteralDecl(code))); in BuildClientSource()
513 unique_ptr<Declaration> m; in BuildClientSource()
522 return unique_ptr<Document>{new CppSource{ in BuildClientSource()
533 for (const unique_ptr<AidlArgument>& a : method.GetArguments()) { in HandleServerTransaction()
591 vector<unique_ptr<AstNode>> status_args; in HandleServerTransaction()
670 unique_ptr<Document> BuildServerSource(const AidlTypenames& typenames, in BuildServerSource()
684 unique_ptr<ConstructorImpl> constructor{ in BuildServerSource()
694 unique_ptr<MethodImpl> on_transact{new MethodImpl{ in BuildServerSource()
751 vector<unique_ptr<Declaration>> decls; in BuildServerSource()
777 decls.push_back(unique_ptr<Declaration>(new LiteralDecl(code))); in BuildServerSource()
779 return unique_ptr<Document>{ in BuildServerSource()
783 unique_ptr<Document> BuildInterfaceSource(const AidlTypenames& typenames, in BuildInterfaceSource()
796 vector<unique_ptr<Declaration>> decls; in BuildInterfaceSource()
798 unique_ptr<MacroDecl> meta_if{new MacroDecl{ in BuildInterfaceSource()
808 unique_ptr<MethodImpl> getter(new MethodImpl("const " + cppType + "&", in BuildInterfaceSource()
818 return unique_ptr<Document>{new CppSource{ in BuildInterfaceSource()
823 unique_ptr<Document> BuildClientHeader(const AidlTypenames& typenames, in BuildClientHeader()
831 unique_ptr<ConstructorDecl> constructor{new ConstructorDecl{ in BuildClientHeader()
837 unique_ptr<ConstructorDecl> destructor{new ConstructorDecl{ in BuildClientHeader()
842 vector<unique_ptr<Declaration>> publics; in BuildClientHeader()
862 vector<unique_ptr<Declaration>> privates; in BuildClientHeader()
872 unique_ptr<ClassDecl> bp_class{new ClassDecl{ in BuildClientHeader()
879 return unique_ptr<Document>{ in BuildClientHeader()
884 unique_ptr<Document> BuildServerHeader(const AidlTypenames& /* typenames */, in BuildServerHeader()
889 unique_ptr<ConstructorDecl> constructor{ in BuildServerHeader()
892 unique_ptr<Declaration> on_transact{new MethodDecl{ in BuildServerHeader()
903 vector<unique_ptr<Declaration>> publics; in BuildServerHeader()
925 unique_ptr<ClassDecl> bn_class{ in BuildServerHeader()
932 return unique_ptr<Document>{ in BuildServerHeader()
937 unique_ptr<Document> BuildInterfaceHeader(const AidlTypenames& typenames, in BuildInterfaceHeader()
950 unique_ptr<ClassDecl> if_class{new ClassDecl{i_name, "::android::IInterface"}}; in BuildInterfaceHeader()
951 if_class->AddPublic(unique_ptr<Declaration>{new MacroDecl{ in BuildInterfaceHeader()
959 if_class->AddPublic(unique_ptr<Declaration>(new LiteralDecl(code.str()))); in BuildInterfaceHeader()
965 if_class->AddPublic(unique_ptr<Declaration>(new LiteralDecl(code.str()))); in BuildInterfaceHeader()
968 std::vector<std::unique_ptr<Declaration>> string_constants; in BuildInterfaceHeader()
969 unique_ptr<Enum> int_constant_enum{new Enum{"", "int32_t", false}}; in BuildInterfaceHeader()
976 unique_ptr<Declaration> getter(new MethodDecl("const " + cppType + "&", constant->GetName(), in BuildInterfaceHeader()
1020 vector<unique_ptr<Declaration>> method_decls; in BuildInterfaceHeader()
1058 vector<unique_ptr<Declaration>> decls; in BuildInterfaceHeader()
1063 return unique_ptr<Document>{ in BuildInterfaceHeader()
1069 std::unique_ptr<Document> BuildParcelHeader(const AidlTypenames& typenames, in BuildParcelHeader()
1072 unique_ptr<ClassDecl> parcel_class{new ClassDecl{parcel.GetName(), "::android::Parcelable"}}; in BuildParcelHeader()
1098 parcel_class->AddPublic(std::unique_ptr<LiteralDecl>(new LiteralDecl(operator_code.str()))); in BuildParcelHeader()
1111 parcel_class->AddPublic(std::unique_ptr<LiteralDecl>(new LiteralDecl(out.str()))); in BuildParcelHeader()
1115 parcel_class->AddPublic(std::unique_ptr<LiteralDecl>( in BuildParcelHeader()
1120 unique_ptr<MethodDecl> read(new MethodDecl(kAndroidStatusLiteral, "readFromParcel", in BuildParcelHeader()
1124 unique_ptr<MethodDecl> write(new MethodDecl( in BuildParcelHeader()
1129 return unique_ptr<Document>{new CppHeader{ in BuildParcelHeader()
1133 std::unique_ptr<Document> BuildParcelSource(const AidlTypenames& typenames, in BuildParcelSource()
1136 unique_ptr<MethodImpl> read{new MethodImpl{kAndroidStatusLiteral, parcel.GetName(), in BuildParcelSource()
1166 unique_ptr<MethodImpl> write{ in BuildParcelSource()
1193 vector<unique_ptr<Declaration>> file_decls; in BuildParcelSource()
1200 return unique_ptr<Document>{ in BuildParcelSource()
1231 std::unique_ptr<Document> BuildEnumHeader(const AidlTypenames& typenames, in BuildEnumHeader()
1233 std::unique_ptr<Enum> generated_enum{ in BuildEnumHeader()
1248 std::vector<std::unique_ptr<Declaration>> decls1; in BuildEnumHeader()
1252 std::vector<std::unique_ptr<Declaration>> decls2; in BuildEnumHeader()
1255 return unique_ptr<Document>{ in BuildEnumHeader()
1265 unique_ptr<Document> header; in WriteHeader()
1286 unique_ptr<CodeWriter> code_writer(io_delegate.GetCodeWriter(header_path)); in WriteHeader()
1318 unique_ptr<CodeWriter> writer = io_delegate.GetCodeWriter(output_file); in GenerateCppInterface()
1342 unique_ptr<CodeWriter> header_writer(io_delegate.GetCodeWriter(header_path)); in GenerateCppParcel()
1348 unique_ptr<CodeWriter> bp_writer(io_delegate.GetCodeWriter(bp_header)); in GenerateCppParcel()
1352 unique_ptr<CodeWriter> bn_writer(io_delegate.GetCodeWriter(bn_header)); in GenerateCppParcel()
1356 unique_ptr<CodeWriter> source_writer = io_delegate.GetCodeWriter(output_file); in GenerateCppParcel()
1372 unique_ptr<CodeWriter> header_writer(io_delegate.GetCodeWriter(header_path)); in GenerateCppParcelDeclaration()
1376 unique_ptr<CodeWriter> bp_writer(io_delegate.GetCodeWriter(bp_header)); in GenerateCppParcelDeclaration()
1380 unique_ptr<CodeWriter> bn_writer(io_delegate.GetCodeWriter(bn_header)); in GenerateCppParcelDeclaration()
1395 unique_ptr<CodeWriter> header_writer(io_delegate.GetCodeWriter(header_path)); in GenerateCppEnumDeclaration()
1405 unique_ptr<CodeWriter> bp_writer(io_delegate.GetCodeWriter(bp_header)); in GenerateCppEnumDeclaration()
1409 unique_ptr<CodeWriter> bn_writer(io_delegate.GetCodeWriter(bn_header)); in GenerateCppEnumDeclaration()