Skip to content
Snippets Groups Projects

F consolidation

Merged Timm Fitschen requested to merge f-consolidation into dev
Files
4
+ 4
1
@@ -178,7 +178,7 @@ protected:
/**
* Remove the element at the given index.
*/
inline auto remove(int index) -> void {
inline auto Remove(int index) -> void {
this->wrapped->DeleteSubrange(index, 1);
if (cache.count(index) > 0) {
cache.erase(index);
@@ -203,6 +203,7 @@ private:
public:
explicit iterator(const RepeatedPtrFieldWrapper<T, P> *instance,
int index = 0);
// TODO(henrik) add unit tests
auto operator*() const -> T &;
auto operator++() -> iterator &;
auto operator++(int) -> iterator;
@@ -643,6 +644,8 @@ public:
};
[[nodiscard]] auto GetParents() const -> const Parents &;
// TODO(henrik) const prevents properties from being changed
// what about an interface that operates on the list directly?
[[nodiscard]] auto GetProperties() const -> const Properties &;
[[nodiscard]] inline auto GetErrors() const -> const Messages & {
return errors;
Loading