You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/api/loader/cpp.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Get the `N`th-level map value. Returns `nullptr` if the key is not found. Be awa
29
29
30
30
> Prerequisite: You need to set metasheet option `OrderedMap` to `true`.
31
31
>
32
-
> See [metatsheet option: OrderedMap](../../../excel/metasheet/#option-orderedmap).
32
+
> See [metasheet option: OrderedMap](../../../excel/metasheet/#option-orderedmap).
33
33
34
34
-`const OrderedMapMap* GetOrderedMap() const`: Gets the whole ordered map.
35
35
-`const OrderedMapValueType* GetOrderedMap(KEY1 k1) const`: Gets the 2nd-level ordered map value. Returns `nullptr` if the key is not found.
@@ -38,30 +38,40 @@ Get the `N`th-level ordered map value. Be aware that only applies to each level
38
38
39
39
### Index
40
40
41
-
> Prerequisite: You need to set metatsheet option `Index` appropriately.
41
+
> Prerequisite: You need to set metasheet option `Index` appropriately.
42
42
>
43
-
> See [metatsheet option: Index](../../../excel/metasheet/#option-index).
43
+
> See [metasheet option: Index](../../../excel/metasheet/#option-index).
44
44
45
-
If index name is `Chapter`, then the accessers are:
45
+
If index name is `Chapter`, then the accessors are:
46
46
47
47
-`const Index_ChapterMap& FindChapterMap() const`: Gets the whole hash map.
48
-
-`const Index_ChapterMap* FindChapterMap(KEY1 k1, KEY2 k2...) const`: Gets the hash map scoped to the upper `N`th-level map specified by the given key(s).
49
48
-`const vector<ParentType>* FindChapter(KEY1 k1, KEY2 k2...) const`: Finds values by key. One key may correspond to multiple values, which are returned by a vector.
50
49
-`const ParentType* FindFirstChapter(KEY1 k1, KEY2 k2...) const`: Finds the first value by key, or `nullptr` if no value found.
51
50
51
+
If the indexed struct is nested within upper-level map containers, additional APIs are generated for each upper-level map to enable fast scoped lookup. Here `N` denotes the Nth upper-level map (e.g., `1` for the immediate parent map, `2` for the grandparent map, and so on).
52
+
53
+
-`const Index_ChapterMap* FindChapterMapN(MapKey1Type mapKey1, MapKey2Type mapKey2...) const`: Gets the whole hash map scoped to the specified upper-level map keys.
54
+
-`const vector<ParentType>* FindChapterN(MapKey1Type mapKey1, MapKey2Type mapKey2..., KEY1 k1, KEY2 k2...) const`: Finds values by key within the specified upper-level map. One key may correspond to multiple values, which are returned by a vector.
55
+
-`const ParentType* FindFirstChapterN(MapKey1Type mapKey1, MapKey2Type mapKey2..., KEY1 k1, KEY2 k2...) const`: Finds the first matching value by key within the specified upper-level map, or `nullptr` if no value found.
56
+
52
57
### OrderedIndex
53
58
54
-
> Prerequisite: You need to set metatsheet option `OrderedIndex` appropriately.
59
+
> Prerequisite: You need to set metasheet option `OrderedIndex` appropriately.
55
60
>
56
-
> See [metatsheet option: OrderedIndex](../../../excel/metasheet/#option-orderedindex).
61
+
> See [metasheet option: OrderedIndex](../../../excel/metasheet/#option-orderedindex).
57
62
58
-
If ordered index name is `Chapter`, then the accessers are:
63
+
If ordered index name is `Chapter`, then the accessors are:
59
64
60
65
-`const OrderedIndex_ChapterMap& FindChapterMap() const`: Gets the whole ordered map.
61
-
-`const OrderedIndex_ChapterMap* FindChapterMap(KEY1 k1, KEY2 k2...) const`: Gets the ordered map scoped to the upper `N`th-level map specified by the given key(s).
62
66
-`const vector<ParentType>* FindChapter(KEY1 k1, KEY2 k2...) const`: Finds values by key. One key may correspond to multiple values, which are returned by a vector.
63
67
-`const ParentType* FindFirstChapter(KEY1 k1, KEY2 k2...) const`: Finds the first value by key, or `nullptr` if no value found.
64
68
69
+
If the indexed struct is nested within upper-level map containers, additional APIs are generated for each upper-level map to enable fast scoped lookup. Here `N` denotes the Nth upper-level map (e.g., `1` for the immediate parent map, `2` for the grandparent map, and so on).
70
+
71
+
-`const OrderedIndex_ChapterMap* FindChapterMapN(MapKey1Type mapKey1, MapKey2Type mapKey2...) const`: Gets the whole ordered map scoped to the specified upper-level map keys.
72
+
-`const vector<ParentType>* FindChapterN(MapKey1Type mapKey1, MapKey2Type mapKey2..., KEY1 k1, KEY2 k2...) const`: Finds values by key within the specified upper-level map. One key may correspond to multiple values, which are returned by a vector.
73
+
-`const ParentType* FindFirstChapterN(MapKey1Type mapKey1, MapKey2Type mapKey2..., KEY1 k1, KEY2 k2...) const`: Finds the first matching value by key within the specified upper-level map, or `nullptr` if no value found.
74
+
65
75
## Custom messager
66
76
67
77
If the built-in APIs are not sufficient for your business logic, then you
Copy file name to clipboardExpand all lines: content/en/docs/api/loader/csharp.md
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Get the `N`th-level map value. Be aware that only applies to each level message'
31
31
32
32
> Prerequisite: You need to set metasheet option `OrderedMap` to `true`.
33
33
>
34
-
> See [metatsheet option: OrderedMap](../../../excel/metasheet/#option-orderedmap).
34
+
> See [metasheet option: OrderedMap](../../../excel/metasheet/#option-orderedmap).
35
35
36
36
-`public ref readonly OrderedMapMap GetOrderedMap()`: Gets the whole ordered map.
37
37
-`public OrderedMapValueType? GetOrderedMap1(KEY1 k1)`: Gets the 1st-level ordered map value. Returns `null` if the key is not found.
@@ -41,28 +41,40 @@ Get the `N`th-level ordered map value. Be aware that only applies to each level
41
41
42
42
### Index
43
43
44
-
> Prerequisite: You need to set metatsheet option `Index` appropriately.
44
+
> Prerequisite: You need to set metasheet option `Index` appropriately.
45
45
>
46
-
> See [metatsheet option: Index](../../../excel/metasheet/#option-index).
46
+
> See [metasheet option: Index](../../../excel/metasheet/#option-index).
47
47
48
-
If index name is `Chapter`, then the accessers are:
48
+
If index name is `Chapter`, then the accessors are:
49
49
50
50
-`public ref readonly Index_ChapterMap FindChapterMap()`: Gets the whole hash map.
51
51
-`public List<ParentType>? FindChapter(KEY1 k1, KEY2 k2...)`: Finds values by key. One key may correspond to multiple values, which are returned by a list.
52
52
-`public ParentType? FindFirstChapter(KEY1 k1, KEY2 k2...)`: Finds the first value by key, or `null` if no value found.
53
53
54
+
If the indexed struct is nested within upper-level map containers, additional APIs are generated for each upper-level map to enable fast scoped lookup. Here `N` denotes the Nth upper-level map (e.g., `1` for the immediate parent map, `2` for the grandparent map, and so on).
55
+
56
+
-`public Index_ChapterMap? FindChapterMapN(MapKey1Type mapKey1, MapKey2Type mapKey2...)`: Gets the whole hash map scoped to the specified upper-level map keys.
57
+
-`public List<ParentType>? FindChapterN(MapKey1Type mapKey1, MapKey2Type mapKey2..., KEY1 k1, KEY2 k2...)`: Finds values by key within the specified upper-level map. One key may correspond to multiple values, which are returned by a list.
58
+
-`public ParentType? FindFirstChapterN(MapKey1Type mapKey1, MapKey2Type mapKey2..., KEY1 k1, KEY2 k2...)`: Finds the first matching value by key within the specified upper-level map, or `null` if no value found.
59
+
54
60
### OrderedIndex
55
61
56
-
> Prerequisite: You need to set metatsheet option `OrderedIndex` appropriately.
62
+
> Prerequisite: You need to set metasheet option `OrderedIndex` appropriately.
57
63
>
58
-
> See [metatsheet option: OrderedIndex](../../../excel/metasheet/#option-orderedindex).
64
+
> See [metasheet option: OrderedIndex](../../../excel/metasheet/#option-orderedindex).
59
65
60
-
If ordered index name is `Chapter`, then the accessers are:
66
+
If ordered index name is `Chapter`, then the accessors are:
61
67
62
68
-`public ref readonly OrderedIndex_ChapterMap FindChapterMap()`: Gets the whole ordered map.
63
69
-`public List<ParentType>? FindChapter(KEY1 k1, KEY2 k2...)`: Finds values by key. One key may correspond to multiple values, which are returned by a list.
64
70
-`public ParentType? FindFirstChapter(KEY1 k1, KEY2 k2...)`: Finds the first value by key, or `null` if no value found.
65
71
72
+
If the indexed struct is nested within upper-level map containers, additional APIs are generated for each upper-level map to enable fast scoped lookup. Here `N` denotes the Nth upper-level map (e.g., `1` for the immediate parent map, `2` for the grandparent map, and so on).
73
+
74
+
-`public OrderedIndex_ChapterMap? FindChapterMapN(MapKey1Type mapKey1, MapKey2Type mapKey2...)`: Gets the whole ordered map scoped to the specified upper-level map keys.
75
+
-`public List<ParentType>? FindChapterN(MapKey1Type mapKey1, MapKey2Type mapKey2..., KEY1 k1, KEY2 k2...)`: Finds values by key within the specified upper-level map. One key may correspond to multiple values, which are returned by a list.
76
+
-`public ParentType? FindFirstChapterN(MapKey1Type mapKey1, MapKey2Type mapKey2..., KEY1 k1, KEY2 k2...)`: Finds the first matching value by key within the specified upper-level map, or `null` if no value found.
77
+
66
78
## Custom messager
67
79
68
80
If the built-in APIs are not sufficient for your business logic, then you
Get the `N`th-level ordered map value. Be aware that only applies to each level message's **first map field**.
36
36
37
37
### Index
38
38
39
-
> Prerequisite: You need to set metatsheet option `Index` appropriately.
39
+
> Prerequisite: You need to set metasheet option `Index` appropriately.
40
40
>
41
-
> See [metatsheet option: Index](../../../excel/metasheet/#option-index).
41
+
> See [metasheet option: Index](../../../excel/metasheet/#option-index).
42
42
43
-
If index name is `Chapter`, then the accessers are:
43
+
If index name is `Chapter`, and the indexed keys are `k1, k2 ...`, then the accessors are:
44
44
45
45
-`func FindChapterMap() *Index_ChapterMap`: Gets the whole hash map.
46
-
-`func FindChapter(k1 KEY1, k2 KEY2...) []*ParentType` Finds values by key. One key may correspond to multiple values, which are returned by a slice.
46
+
-`func FindChapter(k1 KEY1, k2 KEY2...) []*ParentType`: Finds values by key. One key may correspond to multiple values, which are returned as a slice.
47
47
-`func FindFirstChapter(k1 KEY1, k2 KEY2...) *ParentType`: Finds the first value by key.
48
48
49
+
If the indexed struct is nested within upper-level map containers, additional APIs are generated for each upper-level map to enable fast scoped lookup. Here `N` denotes the Nth upper-level map (e.g., `1` for the immediate parent map, `2` for the grandparent map, and so on).
50
+
51
+
-`func FindChapterMapN(mapKey1 MapKey1Type, mapKey2 MapKey2Type...) *Index_ChapterMap`: Gets the whole hash map scoped to the specified upper-level map keys.
52
+
-`func FindChapterN(mapKey1 MapKey1Type, mapKey2 MapKey2Type..., k1 KEY1, k2 KEY2...) []*ParentType`: Finds values by key within the specified upper-level map. One key may correspond to multiple values, which are returned as a slice.
53
+
-`func FindFirstChapterN(mapKey1 MapKey1Type, mapKey2 MapKey2Type..., k1 KEY1, k2 KEY2...) *ParentType`: Finds the first matching value by key within the specified upper-level map.
54
+
49
55
### OrderedIndex
50
56
51
-
> Prerequisite: You need to set metatsheet option `OrderedIndex` appropriately.
57
+
> Prerequisite: You need to set metasheet option `OrderedIndex` appropriately.
52
58
>
53
-
> See [metatsheet option: OrderedIndex](../../../excel/metasheet/#option-orderedindex).
59
+
> See [metasheet option: OrderedIndex](../../../excel/metasheet/#option-orderedindex).
54
60
55
-
If ordered index name is `Chapter`, then the accessers are:
61
+
If ordered index name is `Chapter`, and the indexed keys are `k1, k2 ...`, then the accessors are:
56
62
57
63
-`func FindChapterMap() *OrderedIndex_ChapterMap`: Gets the whole ordered map.
58
-
-`func FindChapter(k1 KEY1, k2 KEY2...) []*ParentType` Finds values by key. One key may correspond to multiple values, which are returned by a slice.
64
+
-`func FindChapter(k1 KEY1, k2 KEY2...) []*ParentType`: Finds values by key. One key may correspond to multiple values, which are returned as a slice.
59
65
-`func FindFirstChapter(k1 KEY1, k2 KEY2...) *ParentType`: Finds the first value by key.
60
66
67
+
If the indexed struct is nested within upper-level map containers, additional APIs are generated for each upper-level map to enable fast scoped lookup. Here `N` denotes the Nth upper-level map (e.g., `1` for the immediate parent map, `2` for the grandparent map, and so on).
68
+
69
+
-`func FindChapterMapN(mapKey1 MapKey1Type, mapKey2 MapKey2Type...) *OrderedIndex_ChapterMap`: Gets the whole ordered map scoped to the specified upper-level map keys.
70
+
-`func FindChapterN(mapKey1 MapKey1Type, mapKey2 MapKey2Type..., k1 KEY1, k2 KEY2...) []*ParentType`: Finds values by key within the specified upper-level map. One key may correspond to multiple values, which are returned as a slice.
71
+
-`func FindFirstChapterN(mapKey1 MapKey1Type, mapKey2 MapKey2Type..., k1 KEY1, k2 KEY2...) *ParentType`: Finds the first matching value by key within the specified upper-level map.
72
+
61
73
## Custom messager
62
74
63
75
If the built-in APIs are not sufficient for your business logic, then you
0 commit comments