Closed c-dilks closed 4 weeks ago
To implement a filtering algorithm with signature
void algorithm(bank::list &l);
which is designed to mask/remove certain undesired rows from certain banks, hipo::bank would benefit from a masking method.
hipo::bank
One possible implementation, which zeros the row:
void hipo::bank::MaskRow(int row) { for(int item = 0; item < getSchema().getEntries(); item++) put(item, row, 0); }
memset to zero would be faster.
memset
Removing undesired rows from a bank is not ideal, since that would require updating other banks' row references; however, this would be a nicer solution if it could be done cleanly.
This functionality is now handled by hipo::bank::rowlist
hipo::bank::rowlist
To implement a filtering algorithm with signature
which is designed to mask/remove certain undesired rows from certain banks,
hipo::bank
would benefit from a masking method.One possible implementation, which zeros the row:
memset
to zero would be faster.Removing undesired rows from a bank is not ideal, since that would require updating other banks' row references; however, this would be a nicer solution if it could be done cleanly.