Example #1
0
// ParamSet Methods
void ParamSet::AddFloat(const std::string &name, const Float *values,
                        int nValues) {
    EraseFloat(name);
    floats.emplace_back(new ParamSetItem<Float>(name, values, nValues));
}
// ParamSet Methods
void ParamSet::AddFloat(const string &name, const float *data,
                        int nItems) {
    EraseFloat(name);
    floats.push_back(new ParamSetItem<float>(name, data, nItems));
}
Example #3
0
// ParamSet Methods
void ParamSet::AddFloat(const std::string &name,
                        std::unique_ptr<Float[]> values, int nValues) {
    EraseFloat(name);
    floats.emplace_back(
        new ParamSetItem<Float>(name, std::move(values), nValues));
}