| 91 | |
| 92 | struct SubscriptInfo { |
| 93 | void Init(const OpSpec &spec, int i) { |
| 94 | at.Init(spec, make_string("at_", i)); |
| 95 | lo.Init(spec, make_string("lo_", i)); |
| 96 | hi.Init(spec, make_string("hi_", i)); |
| 97 | step.Init(spec, make_string("step_", i)); |
| 98 | |
| 99 | if (at.IsDefined()) { |
| 100 | if (lo.IsDefined() || hi.IsDefined()) { |
| 101 | DALI_FAIL(make_string("Internal error: The subscript for dimension ", i, |
| 102 | " must not be specified both as an index and as a range.")); |
| 103 | } |
| 104 | if (step.IsDefined()) { |
| 105 | DALI_FAIL(make_string("Internal error: The subscript for dimension ", i, |
| 106 | " was specified as index - it cannot have a step.")); |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | bool IsDefined() const { |
| 112 | return at.IsDefined() || lo.IsDefined() || hi.IsDefined() || step.IsDefined(); |
nothing calls this directly
no test coverage detected