MCPcopy Create free account
hub / github.com/brenocq/implot3d / GetterLoop

Class GetterLoop

implot3d_items.cpp:924–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922};
923
924template <typename _Getter> struct GetterLoop {
925 GetterLoop(_Getter getter) : Getter(getter), Count(getter.Count + 1) {}
926 template <typename I> IMPLOT3D_INLINE ImPlot3DPoint operator()(I idx) const {
927 idx = idx % (Count - 1);
928 return Getter(idx);
929 }
930 const _Getter Getter;
931 const int Count;
932};
933
934template <typename _Getter> struct GetterTriangleLines {
935 GetterTriangleLines(_Getter getter) : Getter(getter), Count(getter.Count * 2) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected