diff options
Diffstat (limited to 'generator/frame.h')
| -rw-r--r-- | generator/frame.h | 38 |
1 files changed, 19 insertions, 19 deletions
| diff --git a/generator/frame.h b/generator/frame.h index 411ce6c..764564d 100644 --- a/generator/frame.h +++ b/generator/frame.h | |||
| @@ -6,53 +6,53 @@ | |||
| 6 | 6 | ||
| 7 | namespace verbly { | 7 | namespace verbly { |
| 8 | namespace generator { | 8 | namespace generator { |
| 9 | 9 | ||
| 10 | class database; | 10 | class database; |
| 11 | 11 | ||
| 12 | class frame { | 12 | class frame { |
| 13 | public: | 13 | public: |
| 14 | 14 | ||
| 15 | // Aliases | 15 | // Aliases |
| 16 | 16 | ||
| 17 | using const_iterator = std::list<part>::const_iterator; | 17 | using const_iterator = std::list<part>::const_iterator; |
| 18 | 18 | ||
| 19 | // Constructor | 19 | // Constructor |
| 20 | 20 | ||
| 21 | frame(); | 21 | frame(); |
| 22 | 22 | ||
| 23 | // Mutators | 23 | // Mutators |
| 24 | 24 | ||
| 25 | void push_back(part fp); | 25 | void push_back(part fp); |
| 26 | 26 | ||
| 27 | // Accessors | 27 | // Accessors |
| 28 | 28 | ||
| 29 | int getId() const | 29 | int getId() const |
| 30 | { | 30 | { |
| 31 | return id_; | 31 | return id_; |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | const_iterator begin() const | 34 | const_iterator begin() const |
| 35 | { | 35 | { |
| 36 | return std::begin(parts_); | 36 | return std::begin(parts_); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | const_iterator end() const | 39 | const_iterator end() const |
| 40 | { | 40 | { |
| 41 | return std::end(parts_); | 41 | return std::end(parts_); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | private: | 44 | private: |
| 45 | 45 | ||
| 46 | static int nextId_; | 46 | static int nextId_; |
| 47 | 47 | ||
| 48 | const int id_; | 48 | const int id_; |
| 49 | 49 | ||
| 50 | std::list<part> parts_; | 50 | std::list<part> parts_; |
| 51 | 51 | ||
| 52 | }; | 52 | }; |
| 53 | 53 | ||
| 54 | database& operator<<(database& db, const frame& arg); | 54 | database& operator<<(database& db, const frame& arg); |
| 55 | 55 | ||
| 56 | }; | 56 | }; |
| 57 | }; | 57 | }; |
| 58 | 58 | ||
