/macOS/Ether/

src='/cgit.png' alt='cgit logo'/> index : verbly
Natural language generation library
summary refs log blame commit diff stats
path: root/generator/frame.cpp
blob: 4e4ac5f565d6908ada270731b05c8af59387e124 (plain) (tree)
1
2
3
4
5
6
7
8
9





                       
 
                           
 


                                   
 
                                              
     
                   
 
                                        
       
                                             

       

                    
 


                                      
     
 

    
#include "frame.h"
#include "database.h"
#include "field.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));
    }

  };
};