refactor and reuse Automatas. TODO : add test for automatas
This commit is contained in:
parent
184f8dd1fe
commit
8f38095bec
3 changed files with 166 additions and 318 deletions
|
|
@ -317,12 +317,13 @@ namespace tp {
|
|||
return *this;
|
||||
}
|
||||
|
||||
void append(Arg data) {
|
||||
tType& append(Arg data) {
|
||||
if (mLoad == mSize) {
|
||||
resizeBuffer(tResizePolicy(mSize));
|
||||
}
|
||||
new (&mBuff[mLoad]) tType(data);
|
||||
mLoad++;
|
||||
return mBuff[mLoad - 1];
|
||||
}
|
||||
|
||||
void append(const Buffer& in) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue