summaryrefslogtreecommitdiff
path: root/modules/remote-hip/c++/data.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/remote-hip/c++/data.hpp')
-rw-r--r--modules/remote-hip/c++/data.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/remote-hip/c++/data.hpp b/modules/remote-hip/c++/data.hpp
index 04c8111..5e8e6f9 100644
--- a/modules/remote-hip/c++/data.hpp
+++ b/modules/remote-hip/c++/data.hpp
@@ -11,8 +11,14 @@ namespace saw {
template<typename Schema>
class data<Schema, encode::Hip<encode::Native>> {
private:
+ data<Schema, encode::Native> data_;
public:
- data(const data<Schema, encode::Native>& data__)
+ data(const data<Schema, encode::Native>& data__):
+ data_{data__}
{}
+
+ ref<data<Schema, encode::Native>> get_data() {
+ return {data_};
+ }
};
}