1 #ifndef _ots_FirmwareSequence_h
2 #define _ots_FirmwareSequence_h
12 typedef std::vector<std::pair<T, std::vector<T> > > Sequence;
16 typedef typename Sequence::iterator iterator;
17 typedef typename Sequence::const_iterator const_iterator;
23 const Sequence& getSequence(
void)
const {
return theSequence_; }
25 inline void pushBack(std::pair<T, std::vector<T> > entry)
27 theSequence_.push_back(entry);
29 inline void pushBack(T address,
const std::vector<T>& data)
31 theSequence_.push_back(std::pair<T, std::vector<T> >(address, data));
33 inline void pushBack(T address,
const T& data)
35 theSequence_.push_back(
36 std::pair<T, std::vector<T> >(address, std::vector<T>(1, data)));
38 void clear(
void) { theSequence_.clear(); }
40 iterator begin(
void) {
return theSequence_.begin(); }
41 iterator end(
void) {
return theSequence_.end(); }
43 const const_iterator begin(
void)
const {
return theSequence_.begin(); }
44 const const_iterator end(
void)
const {
return theSequence_.end(); }
47 Sequence theSequence_;