/* * Souffle - A Datalog Compiler * Copyright (c) 2016, The Souffle Developers. All rights reserved * Licensed under the Universal Permissive License v 1.0 as shown at: * - https://opensource.org/licenses/UPL * - /licenses/SOUFFLE-UPL.txt */ #pragma once #include "CellInterface.h" #include #include #include #include namespace souffle { namespace profile { /* * Row class for Tables, holds a vector of cells. */ class Row { public: std::vector> cells; Row(unsigned long size) : cells() { for (unsigned long i = 0; i < size; i++) { cells.emplace_back(std::shared_ptr(nullptr)); } } std::shared_ptr& operator[](unsigned long i) { return cells.at(i); } // void addCell(int location, std::shared_ptr cell) { // cells[location] = cell; // } inline std::vector> getCells() { return cells; } }; } // namespace profile } // namespace souffle