Changeset 10878
- Timestamp:
- 05/27/11 17:27:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventImp.h
r10877 r10878 72 72 std::string GetString() const; 73 73 74 // FIXME: Do we need a range check? 75 74 76 template<typename T> 75 77 T Get(int offset=0) const { return *reinterpret_cast<const T*>(GetText()+offset); } 76 78 77 79 template<typename T> 78 T *Ptr(int offset=0) const { return *reinterpret_cast<const T*>(Get Data()+offset); }80 T *Ptr(int offset=0) const { return *reinterpret_cast<const T*>(GetText()+offset); } 79 81 }; 80 82
Note:
See TracChangeset
for help on using the changeset viewer.