mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
LedgerEntrySet work.
This commit is contained in:
21
src/LedgerEntrySet.cpp
Normal file
21
src/LedgerEntrySet.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "LedgerEntrySet.h"
|
||||
|
||||
LedgerEntrySet LedgerEntrySet::duplicate()
|
||||
{
|
||||
return LedgerEntrySet(mEntries, mSeq + 1);
|
||||
}
|
||||
|
||||
void LedgerEntrySet::setTo(LedgerEntrySet& e)
|
||||
{
|
||||
mEntries = e.mEntries;
|
||||
mSeq = e.mSeq;
|
||||
}
|
||||
|
||||
void LedgerEntrySet::swapWith(LedgerEntrySet& e)
|
||||
{
|
||||
std::swap(mSeq, e.mSeq);
|
||||
mEntries.swap(e.mEntries);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user