rippled
Public Member Functions | Public Attributes | List of all members
ripple::NodeStore::DatabaseShard_test::TestData Struct Reference
Collaboration diagram for ripple::NodeStore::DatabaseShard_test::TestData:
Collaboration graph
[legend]

Public Member Functions

 TestData (std::uint64_t const seedValue, int dataSize=dataSizeMax, int numShards=1)
 
bool isNewAccounts (int seq)
 
void makeLedgerData (test::jtx::Env &env_, std::uint32_t seq)
 
bool makeLedgers (test::jtx::Env &env_, std::uint32_t startIndex=0)
 

Public Attributes

beast::xor_shift_engine rng_
 
int numShards_
 
std::vector< test::jtx::Accountaccounts_
 
std::vector< int > nAccounts_
 
std::vector< std::vector< std::pair< int, int > > > payAccounts_
 
std::vector< int > xrpAmount_
 
std::vector< std::shared_ptr< const Ledger > > ledgers_
 

Detailed Description

Definition at line 182 of file DatabaseShard_test.cpp.

Constructor & Destructor Documentation

◆ TestData()

ripple::NodeStore::DatabaseShard_test::TestData::TestData ( std::uint64_t const  seedValue,
int  dataSize = dataSizeMax,
int  numShards = 1 
)

Definition at line 203 of file DatabaseShard_test.cpp.

Member Function Documentation

◆ isNewAccounts()

bool ripple::NodeStore::DatabaseShard_test::TestData::isNewAccounts ( int  seq)

Definition at line 257 of file DatabaseShard_test.cpp.

◆ makeLedgerData()

void ripple::NodeStore::DatabaseShard_test::TestData::makeLedgerData ( test::jtx::Env env_,
std::uint32_t  seq 
)

Definition at line 263 of file DatabaseShard_test.cpp.

◆ makeLedgers()

bool ripple::NodeStore::DatabaseShard_test::TestData::makeLedgers ( test::jtx::Env env_,
std::uint32_t  startIndex = 0 
)

Definition at line 284 of file DatabaseShard_test.cpp.

Member Data Documentation

◆ rng_

beast::xor_shift_engine ripple::NodeStore::DatabaseShard_test::TestData::rng_

Definition at line 185 of file DatabaseShard_test.cpp.

◆ numShards_

int ripple::NodeStore::DatabaseShard_test::TestData::numShards_

Definition at line 187 of file DatabaseShard_test.cpp.

◆ accounts_

std::vector<test::jtx::Account> ripple::NodeStore::DatabaseShard_test::TestData::accounts_

Definition at line 189 of file DatabaseShard_test.cpp.

◆ nAccounts_

std::vector<int> ripple::NodeStore::DatabaseShard_test::TestData::nAccounts_

Definition at line 192 of file DatabaseShard_test.cpp.

◆ payAccounts_

std::vector<std::vector<std::pair<int, int> > > ripple::NodeStore::DatabaseShard_test::TestData::payAccounts_

Definition at line 196 of file DatabaseShard_test.cpp.

◆ xrpAmount_

std::vector<int> ripple::NodeStore::DatabaseShard_test::TestData::xrpAmount_

Definition at line 198 of file DatabaseShard_test.cpp.

◆ ledgers_

std::vector<std::shared_ptr<const Ledger> > ripple::NodeStore::DatabaseShard_test::TestData::ledgers_

Definition at line 201 of file DatabaseShard_test.cpp.