• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/examples_cxx/

Lines Matching defs:branches

119 	int accounts, branches, tellers, history;
125 accounts = branches = history = tellers = 0;
141 if ((branches = atoi(argv[++i])) <= 0)
194 branches = branches == 0 ? BRANCHES : branches;
200 << (long)branches << " Branches, "
214 app.populate(accounts, branches, history, tellers);
219 app.run(ntxns, accounts, branches, tellers);
242 cerr << "usage: TpcbExample [-fiv] [-a accounts] [-b branches]\n"
268 // Initialize the database to the specified number of accounts, branches,
272 TpcbExample::populate(int accounts, int branches, int history, int tellers)
308 // Since the number of branches is very small, we want to use very
313 dbp->set_h_nelem((unsigned int)branches);
322 populateTable(dbp, idnum, balance, branches, "branch");
323 idnum += branches;
332 cout << "Populated branches: "
371 populateHistory(dbp, history, accounts, branches, tellers);
406 u_int32_t branches, u_int32_t tellers)
417 hrec.aid = random_id(ACCOUNT, accounts, branches, tellers);
418 hrec.bid = random_id(BRANCH, accounts, branches, tellers);
419 hrec.tid = random_id(TELLER, accounts, branches, tellers);
445 random_id(FTYPE type, u_int32_t accounts, u_int32_t branches, u_int32_t tellers)
453 min += branches;
458 num = branches;
468 TpcbExample::run(int n, int accounts, int branches, int tellers)
510 accounts, branches, tellers)) != 0)
532 int accounts, int branches, int tellers)
553 account = random_id(ACCOUNT, accounts, branches, tellers);
554 branch = random_id(BRANCH, accounts, branches, tellers);
555 teller = random_id(TELLER, accounts, branches, tellers);