File indexing completed on 2024-07-12 02:41:47
0001 #ifndef HeterogeneousCore_AlpakaTest_interface_HostOnlyType_h
0002 #define HeterogeneousCore_AlpakaTest_interface_HostOnlyType_h
0003
0004 namespace alpakatest {
0005
0006
0007 class HostOnlyType {
0008 public:
0009 HostOnlyType() : value_{0} {}
0010 HostOnlyType(int value) : value_{value} {}
0011 void set(int value) { value_ = value; }
0012 int get() { return value_; }
0013 void print();
0014
0015 private:
0016 int value_;
0017 };
0018
0019 }
0020
0021 #endif