feat: encoding accessor in foundry & less constrained forge setup
Allow forge setup to be called on nullptr and have an empty constructor setup. Useful to build up forge vectors in one pass instead of add/setup loops.
This commit is contained in:
parent
13d62d0445
commit
5a64a1755a
2 changed files with 18 additions and 2 deletions
|
|
@ -62,6 +62,11 @@ class eoAlgoFoundry : public eoAlgo<EOT>
|
|||
return _size;
|
||||
}
|
||||
|
||||
std::vector<size_t> encoding() const
|
||||
{
|
||||
return _encoding;
|
||||
}
|
||||
|
||||
protected:
|
||||
const size_t _size;
|
||||
std::vector<size_t> _encoding;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue