Lines Matching refs:C2Param

37 C2ReflectorHelper::describe(C2Param::CoreIndex paramIndex) const {  in describe()
55 C2Param::CoreIndex coreIndex = fd.type() &~ C2FieldDescriptor::STRUCT_FLAG; in addStructDescriptor()
75 void addDownDependency(C2Param::Index index) { in addDownDependency()
142 const std::vector<C2Param::Index> getDownDependencies() const { in getDownDependencies()
146 C2Param::Index index() const { in index()
165 void setDefaultValue(std::shared_ptr<C2Param> default_) { in setDefaultValue()
169 void setDependencies(std::vector<C2Param::Index> indices, std::vector<ParamRef> refs) { in setDependencies()
194 void setGetter(std::function<std::shared_ptr<C2Param>(bool)> getter) { in setGetter()
198 void setSetter(std::function<C2R(const C2Param *, bool, bool *, Factory &)> setter) { in setSetter() argument
203 const C2Param *value, bool mayBlock, bool *changed, Factory &f, in trySet()
231 std::shared_ptr<C2Param> value() { in value()
235 std::shared_ptr<const C2Param> value() const { in value()
244 std::shared_ptr<C2Param> mDefaultValue;
246 std::function<C2R(const C2Param *, bool, bool *, Factory &)> mSetter;
247 std::function<std::shared_ptr<C2Param>(bool)> mGetter;
248 std::vector<C2Param::Index> mDependencies;
250 … std::vector<C2Param::Index> mDownDependencies; // TODO: this does not work for stream dependencies
264 void C2InterfaceHelper::ParamHelper::addDownDependency(C2Param::Index index) { in addDownDependency()
292 const std::vector<C2Param::Index> C2InterfaceHelper::ParamHelper::getDownDependencies() const { in getDownDependencies()
296 C2Param::Index C2InterfaceHelper::ParamHelper::index() const { in index()
312 void C2InterfaceHelper::ParamHelper::setDefaultValue(std::shared_ptr<C2Param> default_) { in setDefaultValue()
317 std::vector<C2Param::Index> indices, std::vector<ParamRef> refs) { in setDependencies()
326 std::function<std::shared_ptr<C2Param>(bool)> getter) { in setGetter()
331 std::function<C2R(const C2Param *, bool, bool *, Factory &)> setter) { in setSetter() argument
336 const C2Param *value, bool mayBlock, bool *changed, Factory &f, in trySet()
346 std::shared_ptr<C2Param> C2InterfaceHelper::ParamHelper::value() { in value()
350 std::shared_ptr<const C2Param> C2InterfaceHelper::ParamHelper::value() const { in value()
356 C2ParamField C2InterfaceHelper::FieldHelper::makeParamField(C2Param::Index index) const { in makeParamField()
428 C2InterfaceHelper::Field<T>::Field(std::shared_ptr<FieldHelper> helper, C2Param::Index index) in Field()
478 std::shared_ptr<ParamHelper> getParam(C2Param::Index ix) const { in getParam()
490 std::shared_ptr<C2Param> getParamValue(C2Param::Index ix) const { in getParamValue()
506 size_t getDependencyIndex(C2Param::Index ix) { in getDependencyIndex()
515 std::map<C2Param::Index, std::shared_ptr<ParamHelper>> _mIndexToHelper;
517 std::map<C2Param::Index, size_t> _mDependencyIndex;
524 static std::string asString(C2Param *p) { in asString()
544 C2Param::CoreIndex index, size_t offset) { in GetBaseOffset()
591 const std::vector<C2Param*> &params, c2_blocking_t mayBlock, in config()
593 std::vector<std::shared_ptr<C2Param>> *changes __unused /* TODO */) { in config()
610 std::map<size_t, std::pair<C2Param::Index, bool>> dependencies; in config()
612 std::vector<std::unique_ptr<C2Param>> paramRequests; in config()
613 std::vector<C2Param*> lateReadParams; in config()
618 C2Param *p = nullptr; in config()
619 C2Param::Index paramIx = 0u; in config()
633 C2Param::Index requestParamIx = paramIx | C2Param::CoreIndex::IS_REQUEST_FLAG; in config()
646 std::unique_ptr<C2Param> request(C2Param::CopyAsRequest(*p)); in config()
679 C2Param::Index ix = min->second.first; in config()
698 std::shared_ptr<C2Param> oldValue = param->value(); in config()
702 std::shared_ptr<C2Param> newValue = param->value(); in config()
725 for (const C2Param::Index ix : param->getDownDependencies()) { in config()
743 for (C2Param *p : lateReadParams) { in config()
744 std::shared_ptr<C2Param> value = _mFactory->getParamValue(p->index()); in config()
760 size_t C2InterfaceHelper::getDependencyIndex_l(C2Param::Index ix) const { in getDependencyIndex_l()
765 const std::vector<C2Param*> &stackParams, in query()
766 const std::vector<C2Param::Index> &heapParamIndices, in query()
768 std::vector<std::unique_ptr<C2Param>>* const heapParams) const { in query()
775 for (C2Param* const p : stackParams) { in query()
780 std::shared_ptr<C2Param> value = _mFactory->getParamValue(p->index()); in query()
791 for (const C2Param::Index ix : heapParamIndices) { in query()
792 std::shared_ptr<C2Param> value = _mFactory->getParamValue(ix); in query()
794 std::unique_ptr<C2Param> p = C2Param::Copy(*value); in query()
826 C2Param::Index ix = _C2ParamInspector::GetIndex(query.field()); in querySupportedValues()
835 _C2ParamInspector::GetOffset(query.field()) - sizeof(C2Param)); in querySupportedValues()
841 offs += sizeof(C2Param); in querySupportedValues()