| 295 | } |
| 296 | |
| 297 | std::string |
| 298 | Node::getInputLabel(int inputNb) const |
| 299 | { |
| 300 | assert(_imp->inputsInitialized); |
| 301 | |
| 302 | QMutexLocker l(&_imp->inputsLabelsMutex); |
| 303 | if ( (inputNb < 0) || ( inputNb >= (int)_imp->inputLabels.size() ) ) { |
| 304 | throw std::invalid_argument("Index out of range"); |
| 305 | } |
| 306 | |
| 307 | return _imp->inputLabels[inputNb]; |
| 308 | } |
| 309 | |
| 310 | std::string |
| 311 | Node::getInputHint(int inputNb) const |