souffle  2.0.2-371-g6315b36
Public Member Functions | Data Fields
souffle::profile::Row Class Reference

#include <Row.h>

Collaboration diagram for souffle::profile::Row:
Collaboration graph

Public Member Functions

std::vector< std::shared_ptr< CellInterface > > getCells ()
 
std::shared_ptr< CellInterface > & operator[] (unsigned long i)
 
 Row (unsigned long size)
 

Data Fields

std::vector< std::shared_ptr< CellInterface > > cells
 

Detailed Description

Definition at line 22 of file Row.h.

Constructor & Destructor Documentation

◆ Row()

souffle::profile::Row::Row ( unsigned long  size)
inline

Definition at line 26 of file Row.h.

26  : cells() {
27  for (unsigned long i = 0; i < size; i++) {
28  cells.emplace_back(std::shared_ptr<CellInterface>(nullptr));
29  }
30  }

References cells, i, and TCB_SPAN_NAMESPACE_NAME::detail::size().

Here is the call graph for this function:

Member Function Documentation

◆ getCells()

std::vector<std::shared_ptr<CellInterface> > souffle::profile::Row::getCells ( )
inline

Definition at line 40 of file Row.h.

40  {
41  return cells;
42  }

References cells.

◆ operator[]()

std::shared_ptr<CellInterface>& souffle::profile::Row::operator[] ( unsigned long  i)
inline

Definition at line 32 of file Row.h.

32  {
33  return cells.at(i);
34  }

References cells, and i.

Field Documentation

◆ cells

std::vector<std::shared_ptr<CellInterface> > souffle::profile::Row::cells

Definition at line 24 of file Row.h.

Referenced by getCells(), operator[](), and Row().


The documentation for this class was generated from the following file:
TCB_SPAN_NAMESPACE_NAME::detail::size
constexpr auto size(const C &c) -> decltype(c.size())
Definition: span.h:198
souffle::profile::Row::cells
std::vector< std::shared_ptr< CellInterface > > cells
Definition: Row.h:24
i
size_t i
Definition: json11.h:663