This commit allows users to replace the layout in FeatureObject with
their own (externally allocated) GenericFeatureLayout.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
void reorder(const nncc::core::ADT::feature::Layout &l);
template <typename LayoutImpl> void reorder(void) { reorder(LayoutImpl{}); }
+public:
+ const GenericFeatureLayout *layout(void) const { return _layout.get(); }
+ void layout(std::unique_ptr<GenericFeatureLayout> &&l) { _layout = std::move(l); }
+
private:
std::unique_ptr<FeatureObjectInfo> _info;
std::unique_ptr<GenericFeatureLayout> _layout;