• Home
  • Raw
  • Download

Lines Matching refs:C2Param

93 struct C2Param {  struct
257 friend struct C2Param; // for setPort()
319 friend struct C2Param; // for setStream, MakeStreamId, isValid
421 inline bool operator==(const C2Param &o) const { argument
424 inline bool operator!=(const C2Param &o) const { return !operator==(o); }
427 inline static C2Param* From(void *addr, size_t len) { in From() argument
429 if (len < sizeof(C2Param)) { in From()
433 C2Param *param = (C2Param*)addr; in From()
441 inline static std::unique_ptr<C2Param> Copy(const C2Param &orig) { in Copy() argument
446 C2Param *param = new (mem) C2Param(orig.size(), orig._mIndex); in Copy()
448 return std::unique_ptr<C2Param>(param); in Copy()
452 inline static std::unique_ptr<C2Param> CopyAsStream( in CopyAsStream() argument
453 const C2Param &orig, bool output, unsigned stream) { in CopyAsStream()
454 std::unique_ptr<C2Param> copy = Copy(orig); in CopyAsStream()
462 inline static std::unique_ptr<C2Param> CopyAsPort(const C2Param &orig, bool output) { in CopyAsPort() argument
463 std::unique_ptr<C2Param> copy = Copy(orig); in CopyAsPort()
471 inline static std::unique_ptr<C2Param> CopyAsGlobal(const C2Param &orig) { in CopyAsGlobal() argument
472 std::unique_ptr<C2Param> copy = Copy(orig); in CopyAsGlobal()
480 template<typename P, class=decltype(C2Param(P()))>
483 const P *As() const { return const_cast<const P*>(P::From(const_cast<C2Param*>(this))); } in As() argument
504 inline bool updateFrom(const C2Param &other) { in updateFrom() argument
518 inline static const C2Param* IfSuitable(
519 const C2Param* o, size_t size, Type type, size_t flexSize = 0, bool checkDir = true) {
532 inline C2Param(uint32_t paramSize, Index paramIndex) in C2Param() function
535 if (paramSize > sizeof(C2Param)) { in C2Param()
536 memset(this + 1, 0, paramSize - sizeof(C2Param)); in C2Param()
541 inline C2Param(uint32_t paramSize, Index paramIndex, unsigned stream) in C2Param() function
544 if (paramSize > sizeof(C2Param)) { in C2Param()
545 memset(this + 1, 0, paramSize - sizeof(C2Param)); in C2Param()
557 inline bool equals(const C2Param &o) const { in equals() argument
575 struct C2Setting : public C2Param { argument
578 inline C2Setting(const Args(&... args)) : C2Param(args...) { } in C2Setting()
597 struct C2Info : public C2Param {
600 inline C2Info(const Args(&... args)) : C2Param(args...) { } in C2Info()
793 inline C2ParamField(C2Param::Index index, uint32_t offset, uint32_t size) in DEFINE_OTHER_COMPARISON_OPERATORS()
799 C2Param::Index _mIndex; ///< parameter index
1092 static_assert(!std::is_base_of<C2Param, T>::value, "cannot use C2Params as fields"); in GetType()
1140 inline C2Param::CoreIndex coreIndex() const { return _mType.coreIndex(); }
1160 C2Param::CoreIndex type,
1168 C2Param::CoreIndex type,
1172 const C2Param::CoreIndex _mType;
1212 inline C2Param::Index index() const { return _mIndex; }
1215 inline const std::vector<C2Param::Index> &dependencies() const { return _mDependencies; }
1226 bool isRequired, C2StringLiteral name, C2Param::Index index)
1244 C2Param::Index index, attrib_t attrib, C2StringLiteral name)
1250 C2Param::Index index, attrib_t attrib, C2String &&name,
1251 std::vector<C2Param::Index> &&dependencies)
1258 const C2Param::Index _mIndex;
1261 std::vector<C2Param::Index> _mDependencies;
1297 enum : uint32_t { CORE_INDEX = kParamIndex##name | C2Param::CoreIndex::IS_FLEX_FLAG }; \
1499 virtual std::unique_ptr<C2StructDescriptor> describe(C2Param::CoreIndex coreIndex) const = 0;