Skip to content

Commit

Permalink
restructured around CRTP mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
marzer committed Aug 12, 2023
1 parent 96bb304 commit b314fa4
Show file tree
Hide file tree
Showing 29 changed files with 3,102 additions and 3,790 deletions.
1 change: 0 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Latest
StatementMacros:
- SOAGEN_ALIGNED_COLUMN
- SOAGEN_ALWAYS_INLINE
- SOAGEN_API
- SOAGEN_ATTR
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- Used CRTP mixins in generated classes to reduce generated code size

## v0.5.0

- Added rows to `soagen::table`
Expand Down
1 change: 0 additions & 1 deletion cpp.hint
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define SOAGEN_ALIGNED_COLUMN(...)
#define SOAGEN_ALWAYS_INLINE inline
#define SOAGEN_ATTR(...)
#define SOAGEN_COLUMN(...)
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ usage: soagen [-h] [-v] [--version] [--install <dir>] [--werror | --no-werror]
\__ \ (_) | (_| | (_| | __/ | | |
|___/\___/ \__,_|\__, |\___|_| |_|
__/ |
|___/ v0.5.0 - marzer.github.io/soagen
|___/ v0.6.0 - marzer.github.io/soagen
Struct-of-Arrays generator for C++ projects.
Expand Down Expand Up @@ -366,7 +366,7 @@ Now run `soagen`:
> soagen src/*.toml
soagen v0.5.0
soagen v0.6.0
Reading src/entities.toml
Running clang-format for src/entities.hpp
Writing src/entities.hpp
Expand Down Expand Up @@ -407,7 +407,7 @@ too:
```plaintext
> soagen --install src
soagen v0.5.0
soagen v0.6.0
Copying soagen.hpp to src
All done!
```
Expand Down
38 changes: 0 additions & 38 deletions docs/pages/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,25 +421,6 @@ This code will be at class scope.

<!-- --------------------------------------------------------------------------------------------------------------- -->

@subsection schema_structs_iterators iterators

Used to disable the generation of all `iterator`-related functions and typedefs if necessary.

**Type:** boolean

**Required:** No

**Default:** `true`

**Example:**

```toml
[structs.particles]
iterators = false
```

<!-- --------------------------------------------------------------------------------------------------------------- -->

@subsection schema_structs_movable movable

Used to disable the move constructor + assignment operator if necessary.
Expand Down Expand Up @@ -472,25 +453,6 @@ This code will be at @ref schema_root_namespace scope.

<!-- --------------------------------------------------------------------------------------------------------------- -->

@subsection schema_structs_rvalue_iterators rvalue_iterators

Used to disable the generation of all `rvalue_iterator`-related functions and typedefs if necessary.

**Type:** boolean

**Required:** No

**Default:** `true`

**Example:**

```toml
[structs.particles]
rvalue_iterators = false
```

<!-- --------------------------------------------------------------------------------------------------------------- -->

@subsection schema_structs_static_variables static_variables

Static variables to add as part of your class definition. See @ref schema_static_variables
Expand Down
Loading

0 comments on commit b314fa4

Please sign in to comment.