MCPcopy Create free account
hub / github.com/ArashPartow/exprtk / operator()

Method operator()

exprtk_simple_example_19.cpp:49–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 { ::srand(static_cast<unsigned int>(time(NULL))); }
48
49 inline T operator()(const std::size_t& ps_index, parameter_list_t parameters)
50 {
51 vector_t v(parameters[0]);
52
53 std::size_t r0 = 0;
54 std::size_t r1 = v.size() - 1;
55
56 using namespace exprtk::rtl::vecops::helper;
57
58 if (
59 (1 == ps_index) &&
60 !load_vector_range<T>::process(parameters, r0, r1, 1, 2, 0)
61 )
62 return T(0);
63
64 for (std::size_t i = r0; i <= r1; ++i)
65 {
66 v[i] = rnd();
67 }
68
69 return T(1);
70 }
71
72private:
73

Callers

nothing calls this directly

Calls 1

processFunction · 0.85

Tested by

no test coverage detected