MCPcopy Create free account
hub / github.com/cutechess/cutechess / elementAt

Method elementAt

projects/gui/3rdparty/qcustomplot/qcustomplot.cpp:4625–4634  ·  view source on GitHub ↗

! \seebaseclassmethod Note that the association of the linear \a index to the row/column based cells depends on the current setting of \ref setFillOrder. \see rowColToIndex */

Source from the content-addressed store, hash-verified

4623 \see rowColToIndex
4624*/
4625QCPLayoutElement *QCPLayoutGrid::elementAt(int index) const
4626{
4627 if (index >= 0 && index < elementCount())
4628 {
4629 int row, col;
4630 indexToRowCol(index, row, col);
4631 return mElements.at(row).at(col);
4632 } else
4633 return nullptr;
4634}
4635
4636/*!
4637 \seebaseclassmethod

Callers

nothing calls this directly

Calls 3

elementCountFunction · 0.85
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected