std::vector<shared_ptr<OperatorParamPlaceholder> > nextVaryParamPlaceholder(const std::vector< ArrayDesc> &schemas) { std::vector<shared_ptr<OperatorParamPlaceholder> > res; res.push_back(END_OF_VARIES_PARAMS()); switch (_parameters.size()) { case 0: /* No optional arguments */ break; case 1: /* branch */ res.push_back(PARAM_CONSTANT("string")); break; case 2: /* makefile options */ res.push_back(PARAM_CONSTANT("string")); break; } return res; }
std::vector<boost::shared_ptr<OperatorParamPlaceholder> > nextVaryParamPlaceholder(const std::vector< ArrayDesc> &schemas) { std::vector<boost::shared_ptr<OperatorParamPlaceholder> > res; res.push_back(END_OF_VARIES_PARAMS()); if (_parameters.size() < SplitSettings::MAX_PARAMETERS) { res.push_back(PARAM_CONSTANT("string")); } return res; }
std::vector<boost::shared_ptr<OperatorParamPlaceholder> > nextVaryParamPlaceholder(const std::vector<ArrayDesc> &schemas) { std::vector<boost::shared_ptr<OperatorParamPlaceholder> > res; size_t i = _parameters.size(); Dimensions const& dims = schemas[0].getDimensions(); size_t nDims = dims.size(); if (i < nDims*2) res.push_back(PARAM_CONSTANT(TID_INT64)); else res.push_back(END_OF_VARIES_PARAMS()); return res; }