Gets the value pointed to
| 127 | |
| 128 | /// Gets the value pointed to |
| 129 | std::unique_ptr<KernelArgument::Value> ScalarArgument::ScalarValueIterator::at() const { |
| 130 | if (this->null_argument) { |
| 131 | return std::unique_ptr<KernelArgument::Value>( |
| 132 | new ScalarArgument::ScalarValue( |
| 133 | std::string(), |
| 134 | static_cast<ScalarArgument const *>(argument), |
| 135 | false)); |
| 136 | } |
| 137 | else { |
| 138 | return std::unique_ptr<KernelArgument::Value>( |
| 139 | new ScalarArgument::ScalarValue( |
| 140 | *value_it, |
| 141 | static_cast<ScalarArgument const *>(argument))); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | std::unique_ptr<KernelArgument::ValueIterator> ScalarArgument::begin() const { |
| 146 | return std::unique_ptr<KernelArgument::ValueIterator>(new ScalarValueIterator(this)); |