summary refs log tree commit diff stats
path: root/generator/frame.cpp
blob: 60cedc471f57ac94c26cc5cbb6193fb88d0c6d76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "frame.h"

namespace verbly {
  namespace generator {

    int frame::nextId_ = 0;

    frame::frame() : id_(nextId_++)
    {
    }

    frame frame::duplicate(const frame& other)
    {
      frame result;

      for (const part& p : other.parts_)
      {
        result.push_back(part::duplicate(p));
      }

      return result;
    }

    void frame::push_back(part fp)
    {
      parts_.push_back(std::move(fp));
    }

  };
};