Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Type class and reflection macros and functions #487

Merged
merged 13 commits into from
Sep 12, 2023

Conversation

RiscadoA
Copy link
Member

@RiscadoA RiscadoA commented Sep 2, 2023

Description

Add:

  • reflect.hpp file which defines reflection macros and the reflect function, used to fetch reflection data.
  • Type class, which stores the type's name and its traits.
  • core-sample.reflection which shows how to use types and traits.

Checklist

  • Self-review changes.
  • Evaluate impact on the documentation.
  • Ensure test coverage.
  • Write new samples.

@RiscadoA RiscadoA added this to the Nursery milestone Sep 2, 2023
@RiscadoA RiscadoA self-assigned this Sep 2, 2023
@RiscadoA RiscadoA linked an issue Sep 2, 2023 that may be closed by this pull request
@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2023

PR Preview Action v1.4.4
🚀 Deployed preview to https://GameDevTecnico.github.io/cubos/pr-preview/pr-487/
on branch gh-pages at 2023-09-10 18:33 UTC

@RiscadoA RiscadoA force-pushed the 480-add-type-class-and-reflection-macros-and-functions branch from 9ca80b3 to 3745183 Compare September 2, 2023 09:22
@codecov
Copy link

codecov bot commented Sep 2, 2023

Codecov Report

Patch coverage: 97.50% and project coverage change: +0.41% 🎉

Comparison is base (6aaf2a0) 24.53% compared to head (42d0632) 24.95%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #487      +/-   ##
==========================================
+ Coverage   24.53%   24.95%   +0.41%     
==========================================
  Files          86       89       +3     
  Lines        7009     7049      +40     
==========================================
+ Hits         1720     1759      +39     
- Misses       5289     5290       +1     
Files Changed Coverage Δ
core/src/cubos/core/reflection/type.cpp 96.00% <96.00%> (ø)
core/include/cubos/core/reflection/reflect.hpp 100.00% <100.00%> (ø)
core/include/cubos/core/reflection/type.hpp 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RiscadoA RiscadoA force-pushed the 480-add-type-class-and-reflection-macros-and-functions branch from 5be4522 to 1b78c9d Compare September 5, 2023 07:21
@RiscadoA RiscadoA added the S-Blocked Blocked on another issue or PR label Sep 5, 2023
core/CMakeLists.txt Show resolved Hide resolved
core/include/cubos/core/reflection/module.dox Outdated Show resolved Hide resolved
core/include/cubos/core/reflection/reflect.hpp Outdated Show resolved Hide resolved
core/include/cubos/core/reflection/type.hpp Outdated Show resolved Hide resolved
core/include/cubos/core/reflection/type.hpp Outdated Show resolved Hide resolved
core/src/cubos/core/reflection/type.cpp Show resolved Hide resolved
@RiscadoA RiscadoA mentioned this pull request Sep 5, 2023
4 tasks
luishfonseca
luishfonseca previously approved these changes Sep 5, 2023
@RiscadoA RiscadoA removed the S-Blocked Blocked on another issue or PR label Sep 5, 2023
@RiscadoA RiscadoA dismissed luishfonseca’s stale review September 5, 2023 22:01

The merge-base changed after approval.

@RiscadoA RiscadoA force-pushed the 480-add-type-class-and-reflection-macros-and-functions branch from 82a3ab2 to 1402fe5 Compare September 5, 2023 22:01
@RiscadoA RiscadoA force-pushed the 480-add-type-class-and-reflection-macros-and-functions branch from 719542a to 7263f58 Compare September 10, 2023 12:00
@RiscadoA RiscadoA force-pushed the 480-add-type-class-and-reflection-macros-and-functions branch from 7263f58 to e29b07f Compare September 10, 2023 12:01
@RiscadoA RiscadoA merged commit 2f80eac into main Sep 12, 2023
8 checks passed
@RiscadoA RiscadoA deleted the 480-add-type-class-and-reflection-macros-and-functions branch September 12, 2023 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Type class and reflection macros and functions
3 participants