rowlist encapsulates a list of rows for this bank, providing a way to iterate over them
More...
#include <bank.h>
|
| using | list_t = std::vector< int > |
| |
rowlist encapsulates a list of rows for this bank, providing a way to iterate over them
Definition at line 357 of file bank.h.
◆ list_t
◆ rowlist()
| hipo::bank::rowlist::rowlist |
( |
| ) |
|
|
default |
◆ ~rowlist()
| hipo::bank::rowlist::~rowlist |
( |
| ) |
|
|
default |
◆ createFullList()
- Returns
- create a list of numbers from 0 to
num
- Parameters
-
Definition at line 399 of file bank.cpp.
◆ filter() [1/3]
| void hipo::bank::rowlist::filter |
( |
char const * |
expression | ) |
|
filter the list according to an expression
- Parameters
-
| expression | the filter expression |
Definition at line 377 of file bank.cpp.
◆ filter() [2/3]
| void hipo::bank::rowlist::filter |
( |
Parser & |
parser | ) |
|
filter the list using a pre-constructed Parser (avoids re-parsing the expression each call)
- Parameters
-
| parser | a Parser object constructed from the filter expression |
Definition at line 384 of file bank.cpp.
◆ filter() [3/3]
| void hipo::bank::rowlist::filter |
( |
std::function< bool(bank &, int)> |
func | ) |
|
filter the list according to a function
- Parameters
-
| func | a function which takes a hipo::bank reference and an int row number and returns a double; if the returned bool is true, the row is accepted |
Definition at line 367 of file bank.cpp.
◆ getList()
- Returns
- reference to the immutable list
Definition at line 356 of file bank.cpp.
◆ isInitialized()
| bool hipo::bank::rowlist::isInitialized |
( |
| ) |
const |
|
inline |
◆ reset()
| void hipo::bank::rowlist::reset |
( |
int |
numRows = -1 | ) |
|
initialize with a full list with specified number of rows
- Parameters
-
| numRows | if negative, use the owner bank to set the number of rows, otherwise use numRows |
Definition at line 343 of file bank.cpp.
◆ setList()
| void hipo::bank::rowlist::setList |
( |
list_t const & |
list | ) |
|
- Parameters
-
| list | set the list to this list |
Definition at line 362 of file bank.cpp.
◆ setOwnerBank()
| void hipo::bank::rowlist::setOwnerBank |
( |
bank *const |
ownerBank | ) |
|
|
inline |
- Parameters
-
| ownerBank | set the owner bank |
Definition at line 391 of file bank.h.
The documentation for this class was generated from the following files: