![]() |
PIP 5.5.3
Platform-Independent Primitives
|
Base macros for generic containers. More...
#include "picout.h"#include "piintrospection_containers.h"#include <stdlib.h>#include <algorithm>#include <functional>#include <initializer_list>#include <new>#include <string.h>#include <type_traits>Macros | |
| #define | piForTimes(c) for (int _i##c = 0; _i##c < c; ++_i##c) |
| Macro for short replacement of standart "for". More... | |
| #define | piForeach(i, c) for (i: c) |
| Macro for iterate any container. More... | |
| #define | piForeachC(i, c) for (const i: c) |
| Macro for iterate any container. More... | |
| #define | piForeachR(i, c) for (i: PIReverseWrap(c)) |
| Macro for iterate any container. More... | |
| #define | piForeachRC(i, c) for (const i: PIReverseWrap(c)) |
| Macro for iterate any container. More... | |
Enumerations | |
| enum | ReshapeOrder { ReshapeByRow , ReshapeByColumn } |
| Reshape order enum for reshape() function. More... | |
Functions | |
| template<typename C > | |
| _PIReverseWrapper< C > | PIReverseWrap (C &c) |
| Template reverse wrapper over any container. | |
Base macros for generic containers.
Ivan Pelipenko peri4.nosp@m.ko@y.nosp@m.andex.nosp@m..ru; Andrey Bychkov work..nosp@m.a.b@.nosp@m.yande.nosp@m.x.ru;
| #define piForTimes | ( | c | ) | for (int _i##c = 0; _i##c < c; ++_i##c) |
Macro for short replacement of standart "for".
| c | Iteration times in loop |
| #define piForeach | ( | i, | |
| c | |||
| ) | for (i: c) |
Macro for iterate any container.
Get read/write access to each element of container. Iterating in forward direction. Example of using:
| #define piForeachC | ( | i, | |
| c | |||
| ) | for (const i: c) |
Macro for iterate any container.
Get read only access to each element of container. Iterating in forward direction.
| #define piForeachR | ( | i, | |
| c | |||
| ) | for (i: PIReverseWrap(c)) |
Macro for iterate any container.
Get read/write access to each element of container. Iterating in backward direction.
| #define piForeachRC | ( | i, | |
| c | |||
| ) | for (const i: PIReverseWrap(c)) |
Macro for iterate any container.
Get read only access to each element of container. Iterating in backward direction. Also has alias piForeachCR
| enum ReshapeOrder |
Reshape order enum for reshape() function.
| Enumerator | |
|---|---|
| ReshapeByRow | Traversing elements by line, just as they stay in memory |
| ReshapeByColumn | Traversing elements by column |