Skip to content

Commit

Permalink
use names similar to what's in STL
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Madlener <[email protected]>
  • Loading branch information
veprbl and tmadlener authored Aug 15, 2023
1 parent 8cbadc2 commit c2bfd35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/templates/Collection.h.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ A Collection is identified by an ID.
*/
class {{ class.bare_type }}Collection : public podio::CollectionBase {
public:
using object = {{ class.bare_type }};
using value_type = {{ class.bare_type }};
using const_iterator = {{ class.bare_type }}CollectionIterator;
using iterator = {{ class.bare_type }}MutableCollectionIterator;

Expand Down
4 changes: 2 additions & 2 deletions python/templates/Object.h.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class {{ class.bare_type }} {
friend class {{ class.bare_type }}CollectionIterator;

public:
using mutable_ = Mutable{{ class.bare_type }};
using collection = {{ class.bare_type }}Collection;
using mutable_type = Mutable{{ class.bare_type }};
using collection_type = {{ class.bare_type }}Collection;

{{ macros.constructors_destructors(class.bare_type, Members) }}

Expand Down

0 comments on commit c2bfd35

Please sign in to comment.