file
RangeDef.hThis module provides macro definitions for implementing and working with CnxRange(T)
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Defines
- #define CnxRange(T)
- Macro alias for an instantiation of
CnxRange(T)
for the typeT
- #define CnxRangeIdentifier(T, Identifier)
- Used to create an identifier for a function, variable, macro, or struct associated with a
CnxRange(T)
instantiation. - #define CnxRangeFilter(T)
- Macro alias for filter function compatible with a
CnxRange(T)
instantiation. - #define CnxRangeTransform(T)
- Macro alias for transform function compatible with a
CnxRange(T)
instantiation. - #define CnxRangeAccumulator(T)
- Macro alias for accumulator function compatible with a
CnxRange(T)
instantiation. - #define cnx_range_from_iterators_filtered(T, begin, end, filter)
- Creates a filtered
CnxRange(T)
- #define cnx_range_from_iterators(T, begin, end)
- Creates a
CnxRange(T)
- #define cnx_range_from_filtered(T, collection, filter)
- Creates a filtered
CnxRange(T)
- #define cnx_range_from(T, collection)
- Creates a
CnxRange(T)
- #define cnx_range_into_iter(self)
- Returns an iterator associated with the given
CnxRange(T)
- #define cnx_range_begin(self)
- Returns at the beginning of the
CnxRange(T)
- #define cnx_range_end(self)
- Returns at the end of the
CnxRange(T)
- #define cnx_range_filter_iterators(T, begin, end, filter)
- Creates a filtered
CnxRange(T)
- #define cnx_range_filter(T, collection, filter)
- Creates a filtered
CnxRange(T)
- #define cnx_range_take_first_from_iterators(T, n, begin, end)
- Creates a
CnxRange(T)
over the firstn
elements in the iteration. - #define cnx_range_take_first(T, n, collection)
- Creates a
CnxRange(T)
over the firstn
elements in the collection. - #define cnx_range_collect(T, range)
- Collects the elements viewed by the range into a new
CnxVector(T)
- #define cnx_range_transform(range, transform_function)
- Transforms the elements viewed by the
CnxRange(T)
- #define cnx_transform(T, collection, transform_function)
- Transforms the elements in the collection.
- #define cnx_range_transform_then_filter(range, transform_function, filter_function)
- Transforms the elements viewed by the
CnxRange(T)
, then filters the range. - #define cnx_transform_then_filter(T, collection, transform_function, filter_function)
- Transforms the elements in the collection, then returns a filtered
CnxRange(T)
over the collection. - #define cnx_range_accumulate(range, accumulation_function)
- "Accumulates" the elements viewed by the
CnxRange(T)
- #define cnx_accumulate(T, collection, accumulation_function)
- "Accumulates" the elements in the collection
Define documentation
#define cnx_range_into_iter(self)
Returns an iterator associated with the given CnxRange(T)
Parameters | |
---|---|
self | - The CnxRange(T) to get an iterator to |
Returns | an iterator associated with self |