Skip to content

Commit d216f73

Browse files
committed
Added getData in data.hpp
1 parent f20afe1 commit d216f73

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/data.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ template <class T, class D> class Data {
3333
// IO
3434
std::string toString();
3535

36+
// Getters
37+
D getData();
38+
3639
private:
3740
// Constructor
3841
Data<T, D>(int index, D data);
@@ -103,4 +106,12 @@ std::string explicitPointerToString(ExplicitPointer<T, D> xpointer) {
103106
return str;
104107
}
105108

109+
/*==============================================================================
110+
Getters : getData
111+
==============================================================================*/
112+
template <class T, class D> D Data<T, D>::getData() {
113+
return mData;
114+
}
115+
116+
106117
#endif /* DATA */

0 commit comments

Comments
 (0)