Skip to content

Commit bb07a08

Browse files
#2005 Fix API doc comments for type_index()/column_index()
1 parent c646f92 commit bb07a08

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

distr/flecs.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31113,7 +31113,7 @@ struct table {
3111331113
/** Find type index for (component) id.
3111431114
*
3111531115
* @param id The (component) id.
31116-
* @return The index of the id in the table type, -1 if not found/
31116+
* @return The index of the id in the table type, -1 if not found.
3111731117
*/
3111831118
int32_t type_index(flecs::id_t id) const {
3111931119
return ecs_table_get_type_index(world_, table_, id);
@@ -31122,7 +31122,7 @@ struct table {
3112231122
/** Find type index for type.
3112331123
*
3112431124
* @tparam T The type.
31125-
* @return True if the table has the type, false if not.
31125+
* @return The index of the id in the table type, -1 if not found.
3112631126
*/
3112731127
template <typename T>
3112831128
int32_t type_index() const {
@@ -31132,7 +31132,7 @@ struct table {
3113231132
/** Find type index for pair.
3113331133
* @param first First element of pair.
3113431134
* @param second Second element of pair.
31135-
* @return True if the table has the pair, false if not.
31135+
* @return The index of the id in the table type, -1 if not found.
3113631136
*/
3113731137
int32_t type_index(flecs::entity_t first, flecs::entity_t second) const {
3113831138
return type_index(ecs_pair(first, second));
@@ -31141,7 +31141,7 @@ struct table {
3114131141
/** Find type index for pair.
3114231142
* @tparam First First element of pair.
3114331143
* @param second Second element of pair.
31144-
* @return True if the table has the pair, false if not.
31144+
* @return The index of the id in the table type, -1 if not found.
3114531145
*/
3114631146
template <typename First>
3114731147
int32_t type_index(flecs::entity_t second) const {
@@ -31151,7 +31151,7 @@ struct table {
3115131151
/** Find type index for pair.
3115231152
* @tparam First First element of pair.
3115331153
* @tparam Second Second element of pair.
31154-
* @return True if the table has the pair, false if not.
31154+
* @return The index of the id in the table type, -1 if not found.
3115531155
*/
3115631156
template <typename First, typename Second>
3115731157
int32_t type_index() const {
@@ -31170,7 +31170,7 @@ struct table {
3117031170
/** Find column index for type.
3117131171
*
3117231172
* @tparam T The type.
31173-
* @return True if the table has the type, false if not.
31173+
* @return The column index of the id in the table type, -1 if not found.
3117431174
*/
3117531175
template <typename T>
3117631176
int32_t column_index() const {
@@ -31180,7 +31180,7 @@ struct table {
3118031180
/** Find column index for pair.
3118131181
* @param first First element of pair.
3118231182
* @param second Second element of pair.
31183-
* @return True if the table has the pair, false if not.
31183+
* @return The column index of the id in the table type, -1 if not found.
3118431184
*/
3118531185
int32_t column_index(flecs::entity_t first, flecs::entity_t second) const {
3118631186
return column_index(ecs_pair(first, second));
@@ -31189,7 +31189,7 @@ struct table {
3118931189
/** Find column index for pair.
3119031190
* @tparam First First element of pair.
3119131191
* @param second Second element of pair.
31192-
* @return True if the table has the pair, false if not.
31192+
* @return The column index of the id in the table type, -1 if not found.
3119331193
*/
3119431194
template <typename First>
3119531195
int32_t column_index(flecs::entity_t second) const {
@@ -31199,7 +31199,7 @@ struct table {
3119931199
/** Find column index for pair.
3120031200
* @tparam First First element of pair.
3120131201
* @tparam Second Second element of pair.
31202-
* @return True if the table has the pair, false if not.
31202+
* @return The column index of the id in the table type, -1 if not found.
3120331203
*/
3120431204
template <typename First, typename Second>
3120531205
int32_t column_index() const {

include/flecs/addons/cpp/table.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct table {
5757
/** Find type index for (component) id.
5858
*
5959
* @param id The (component) id.
60-
* @return The index of the id in the table type, -1 if not found/
60+
* @return The index of the id in the table type, -1 if not found.
6161
*/
6262
int32_t type_index(flecs::id_t id) const {
6363
return ecs_table_get_type_index(world_, table_, id);
@@ -66,7 +66,7 @@ struct table {
6666
/** Find type index for type.
6767
*
6868
* @tparam T The type.
69-
* @return True if the table has the type, false if not.
69+
* @return The index of the id in the table type, -1 if not found.
7070
*/
7171
template <typename T>
7272
int32_t type_index() const {
@@ -76,7 +76,7 @@ struct table {
7676
/** Find type index for pair.
7777
* @param first First element of pair.
7878
* @param second Second element of pair.
79-
* @return True if the table has the pair, false if not.
79+
* @return The index of the id in the table type, -1 if not found.
8080
*/
8181
int32_t type_index(flecs::entity_t first, flecs::entity_t second) const {
8282
return type_index(ecs_pair(first, second));
@@ -85,7 +85,7 @@ struct table {
8585
/** Find type index for pair.
8686
* @tparam First First element of pair.
8787
* @param second Second element of pair.
88-
* @return True if the table has the pair, false if not.
88+
* @return The index of the id in the table type, -1 if not found.
8989
*/
9090
template <typename First>
9191
int32_t type_index(flecs::entity_t second) const {
@@ -95,7 +95,7 @@ struct table {
9595
/** Find type index for pair.
9696
* @tparam First First element of pair.
9797
* @tparam Second Second element of pair.
98-
* @return True if the table has the pair, false if not.
98+
* @return The index of the id in the table type, -1 if not found.
9999
*/
100100
template <typename First, typename Second>
101101
int32_t type_index() const {
@@ -114,7 +114,7 @@ struct table {
114114
/** Find column index for type.
115115
*
116116
* @tparam T The type.
117-
* @return True if the table has the type, false if not.
117+
* @return The column index of the id in the table type, -1 if not found.
118118
*/
119119
template <typename T>
120120
int32_t column_index() const {
@@ -124,7 +124,7 @@ struct table {
124124
/** Find column index for pair.
125125
* @param first First element of pair.
126126
* @param second Second element of pair.
127-
* @return True if the table has the pair, false if not.
127+
* @return The column index of the id in the table type, -1 if not found.
128128
*/
129129
int32_t column_index(flecs::entity_t first, flecs::entity_t second) const {
130130
return column_index(ecs_pair(first, second));
@@ -133,7 +133,7 @@ struct table {
133133
/** Find column index for pair.
134134
* @tparam First First element of pair.
135135
* @param second Second element of pair.
136-
* @return True if the table has the pair, false if not.
136+
* @return The column index of the id in the table type, -1 if not found.
137137
*/
138138
template <typename First>
139139
int32_t column_index(flecs::entity_t second) const {
@@ -143,7 +143,7 @@ struct table {
143143
/** Find column index for pair.
144144
* @tparam First First element of pair.
145145
* @tparam Second Second element of pair.
146-
* @return True if the table has the pair, false if not.
146+
* @return The column index of the id in the table type, -1 if not found.
147147
*/
148148
template <typename First, typename Second>
149149
int32_t column_index() const {

0 commit comments

Comments
 (0)