Home | History | Annotate | Download | only in util

Lines Matching defs:param

70     Impl(ParamRef param, C2StringLiteral name, C2StructDescriptor &&strukt)
71 : mParam(param), mName(name), _mStruct(strukt) { }
177 C2_LOG(FATAL) << "Trying to add fields to param " << mName << " multiple times";
179 C2_LOG(FATAL) << "Trying to add fields to const param " << mName;
211 C2_LOG(WARNING) << "Param " << mName << " has no setter, making it const";
215 C2_LOG(FATAL) << "Param " << mName << " has no setter";
225 C2_LOG(FATAL) << "Param " << mName << " has no fields";
256 ParamRef param, C2StringLiteral name, C2StructDescriptor &&strukt)
258 param, name, std::move(strukt))) { }
360 C2InterfaceHelper::FieldHelper::FieldHelper(const ParamRef &param, const _C2FieldId &field,
362 : mParam(param),
449 getParamHelper(const ParamRef &param) const override {
450 return _mParams.find(param)->second;
459 void addParam(std::shared_ptr<ParamHelper> param) {
460 _mParams.insert({ param->ref(), param });
461 _mIndexToHelper.insert({param->index(), param});
465 for (const ParamRef &ref : param->getDependenciesAsRefs()) {
468 C2_LOG(FATAL) << "Parameter " << param->name() << " has a dependency at index "
471 _mParams.find(ref)->second->addDownDependency(param->index());
475 _mDependencyIndex.emplace(param->index(), _mDependencyIndex.size());
545 std::unique_ptr<C2StructDescriptor> param = reflector->describe(index);
546 if (param == nullptr) {
547 return ~(size_t)0; // param structure not described
550 for (const C2FieldDescriptor &field : *param) {
576 void C2InterfaceHelper::addParameter(std::shared_ptr<ParamHelper> param) {
577 mReflector->addStructDescriptor(param->retrieveStructDescriptor());
578 c2_status_t err = param->validate(mReflector);
580 _mFactory->addParam(param);
645 // process any dirtied down-dependencies until the next param
652 std::shared_ptr<ParamHelper> param = _mFactory->getParam(ix);
653 C2_LOG(VERBOSE) << "old value " << asString(param->value().get());
657 if (!last && !dirty && ix == paramIx && *param->value() == *p) {
660 C2_LOG(VERBOSE) << "ignoring setting unchanged param " << ix;
666 C2_LOG(VERBOSE) << "setting param " << ix;
667 std::shared_ptr<C2Param> oldValue = param->value();
668 c2_status_t res = param->trySet(
669 (!last && paramIx == ix) ? p : param->value().get(), mayBlock,
671 std::shared_ptr<C2Param> newValue = param->value();
685 if (!p->updateFrom(*param->value())) {
692 C2_LOG(VERBOSE) << "param " << ix << " value changed";
694 for (const C2Param::Index ix : param->getDownDependencies()) {
781 std::shared_ptr<ParamHelper> param = _mFactory->getParam(ix);
782 if (!param) {
783 C2_LOG(VERBOSE) << "bad param";
799 param->findField(offs, _C2ParamInspector::GetSize(query.field()));