Skip to content

Commit e9c2cf7

Browse files
Align APIs
Signed-off-by: Julien Jerphanion <[email protected]> Co-authored-by: Johan Mabille <[email protected]>
1 parent 7c18061 commit e9c2cf7

File tree

1 file changed

+9
-49
lines changed

1 file changed

+9
-49
lines changed

libmamba/include/mamba/solver/resolvo/database.hpp

Lines changed: 9 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -100,87 +100,47 @@ namespace mamba::solver::resolvo
100100
}
101101

102102
// Iterator for the bijective_map
103-
auto begin()
103+
auto begin_values() const
104104
{
105105
return id_to_value.begin();
106106
}
107107

108-
auto end()
108+
auto end_values() const
109109
{
110110
return id_to_value.end();
111111
}
112112

113-
auto begin() const
114-
{
115-
return id_to_value.begin();
116-
}
117-
118-
auto end() const
119-
{
120-
return id_to_value.end();
121-
}
122-
123-
auto cbegin()
124-
{
125-
return id_to_value.cbegin();
126-
}
127-
128-
auto cend()
129-
{
130-
return id_to_value.cend();
131-
}
132-
133-
auto cbegin() const
113+
auto cbegin_values() const
134114
{
135115
return id_to_value.cbegin();
136116
}
137117

138-
auto cend() const
118+
auto cend_values() const
139119
{
140120
return id_to_value.cend();
141121
}
142122

143-
auto find(T value)
123+
auto find(T value) const
144124
{
145125
return value_to_id.find(value);
146126
}
147127

148-
auto begin_ids()
128+
auto begin_keys() const
149129
{
150130
return value_to_id.begin();
151131
}
152132

153-
auto end_ids()
133+
auto end_keys() const
154134
{
155135
return value_to_id.end();
156136
}
157137

158-
auto begin_ids() const
159-
{
160-
return value_to_id.begin();
161-
}
162-
163-
auto end_ids() const
164-
{
165-
return value_to_id.end();
166-
}
167-
168-
auto cbegin_ids()
169-
{
170-
return value_to_id.cbegin();
171-
}
172-
173-
auto cend_ids()
174-
{
175-
return value_to_id.cend();
176-
}
177-
178-
auto cbegin_ids() const
138+
auto cbegin_keys() const
179139
{
180140
return value_to_id.cbegin();
181141
}
182142

183-
auto cend_ids() const
143+
auto cend_keys() const
184144
{
185145
return value_to_id.cend();
186146
}

0 commit comments

Comments
 (0)