We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f20afe1 commit d216f73Copy full SHA for d216f73
include/data.hpp
@@ -33,6 +33,9 @@ template <class T, class D> class Data {
33
// IO
34
std::string toString();
35
36
+ // Getters
37
+ D getData();
38
+
39
private:
40
// Constructor
41
Data<T, D>(int index, D data);
@@ -103,4 +106,12 @@ std::string explicitPointerToString(ExplicitPointer<T, D> xpointer) {
103
106
return str;
104
107
}
105
108
109
+/*==============================================================================
110
+ Getters : getData
111
+==============================================================================*/
112
+template <class T, class D> D Data<T, D>::getData() {
113
+ return mData;
114
+}
115
116
117
#endif /* DATA */
0 commit comments