{"id":22426647,"url":"https://github.com/theypsilon/getset","last_synced_at":"2025-06-23T16:07:12.754Z","repository":{"id":19774346,"uuid":"23032680","full_name":"theypsilon/getset","owner":"theypsilon","description":"Add trivial getters \u0026 setters to your interface in a very simple and extensible way","archived":false,"fork":false,"pushed_at":"2014-08-18T16:26:12.000Z","size":224,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-08T07:05:35.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theypsilon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_1_0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-17T03:49:51.000Z","updated_at":"2024-08-03T07:32:31.000Z","dependencies_parsed_at":"2022-08-26T07:22:28.024Z","dependency_job_id":null,"html_url":"https://github.com/theypsilon/getset","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theypsilon/getset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Fgetset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Fgetset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Fgetset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Fgetset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theypsilon","download_url":"https://codeload.github.com/theypsilon/getset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Fgetset/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261509800,"owners_count":23169682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T19:22:50.758Z","updated_at":"2025-06-23T16:07:12.692Z","avatar_url":"https://github.com/theypsilon.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"getset.hpp [![Build Status](https://travis-ci.org/theypsilon/getset.svg?branch=master)](https://travis-ci.org/theypsilon/getset)\n======\n\n```cpp\n#include \"getset.hpp\"\n#include \u003ciostream\u003e\n\nusing namespace accessor;\n\nstruct Data {\n    getset\u003cstd::string\u003e a;\n    getset\u003cstd::string\u003e b;\n    getset\u003cstd::string\u003e c;\n};\n\nint main() {\n    Data x{\"Hello\",\"I'm not a blank space\",\"World.\"};\n    x.b(\" \");\n    std::cout \u003c\u003c x.a() \u003c\u003c x.b() \u003c\u003c x.c() \u003c\u003c std::endl;\n    return 0;\n}\n\n/* output: \"Hello World.\" */\n```\n\nJust add this simple template to your types and you will have a getter \u0026 setter interface that eventually you will be able to modify in the future without any modification in client code. \n\nThis has **zero** overhead. You may compare the asm this code generates, with the one you get when you replace the getset statements with raw variable declarations and simple assignments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheypsilon%2Fgetset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheypsilon%2Fgetset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheypsilon%2Fgetset/lists"}