CCF
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tpcc::Customer Struct Reference

#include <tpcc_tables.h>

Classes

struct  Key
 

Public Member Functions

Key get_key ()
 

Public Attributes

int32_t id
 
int32_t d_id
 
int32_t w_id
 
float credit_lim
 
float discount
 
float balance
 
float ytd_payment
 
int32_t payment_cnt
 
int32_t delivery_cnt
 
std::array< char, MAX_FIRST+1 > first = {0}
 
std::array< char, MIDDLE+1 > middle = {0}
 
std::array< char, MAX_LAST+1 > last = {0}
 
std::array< char, Address::MAX_STREET+1 > street_1 = {0}
 
std::array< char, Address::MAX_STREET+1 > street_2 = {0}
 
std::array< char, Address::MAX_CITY+1 > city = {0}
 
std::array< char, Address::STATE+1 > state = {0}
 
std::array< char, Address::ZIP+1 > zip = {0}
 
std::array< char, PHONE+1 > phone = {0}
 
std::array< char, DATETIME_SIZE+1 > since = {0}
 
std::array< char, CREDIT+1 > credit = {0}
 
std::array< char, MAX_DATA+1 > data = {0}
 

Static Public Attributes

static constexpr float INITIAL_CREDIT_LIM = 50000.00
 
static constexpr float MIN_DISCOUNT = 0.0000
 
static constexpr float MAX_DISCOUNT = 0.5000
 
static constexpr float INITIAL_BALANCE = -10.00
 
static constexpr float INITIAL_YTD_PAYMENT = 10.00
 
static const int INITIAL_PAYMENT_CNT = 1
 
static const int INITIAL_DELIVERY_CNT = 0
 
static const int MIN_FIRST = 6
 
static const int MAX_FIRST = 10
 
static const int MIDDLE = 2
 
static const int MAX_LAST = 16
 
static const int PHONE = 16
 
static const int CREDIT = 2
 
static const int MIN_DATA = 300
 
static const int MAX_DATA = 500
 
static const int NUM_PER_DISTRICT = 3000
 
static constexpr char GOOD_CREDIT [] = "GC"
 
static constexpr char BAD_CREDIT [] = "BC"
 

Member Function Documentation

◆ get_key()

Key tpcc::Customer::get_key ( )
inline

Member Data Documentation

◆ BAD_CREDIT

constexpr char tpcc::Customer::BAD_CREDIT[] = "BC"
staticconstexpr

◆ balance

float tpcc::Customer::balance

◆ city

std::array<char, Address::MAX_CITY + 1> tpcc::Customer::city = {0}

◆ CREDIT

const int tpcc::Customer::CREDIT = 2
static

◆ credit

std::array<char, CREDIT + 1> tpcc::Customer::credit = {0}

◆ credit_lim

float tpcc::Customer::credit_lim

◆ d_id

int32_t tpcc::Customer::d_id

◆ data

std::array<char, MAX_DATA + 1> tpcc::Customer::data = {0}

◆ delivery_cnt

int32_t tpcc::Customer::delivery_cnt

◆ discount

float tpcc::Customer::discount

◆ first

std::array<char, MAX_FIRST + 1> tpcc::Customer::first = {0}

◆ GOOD_CREDIT

constexpr char tpcc::Customer::GOOD_CREDIT[] = "GC"
staticconstexpr

◆ id

int32_t tpcc::Customer::id

◆ INITIAL_BALANCE

constexpr float tpcc::Customer::INITIAL_BALANCE = -10.00
staticconstexpr

◆ INITIAL_CREDIT_LIM

constexpr float tpcc::Customer::INITIAL_CREDIT_LIM = 50000.00
staticconstexpr

◆ INITIAL_DELIVERY_CNT

const int tpcc::Customer::INITIAL_DELIVERY_CNT = 0
static

◆ INITIAL_PAYMENT_CNT

const int tpcc::Customer::INITIAL_PAYMENT_CNT = 1
static

◆ INITIAL_YTD_PAYMENT

constexpr float tpcc::Customer::INITIAL_YTD_PAYMENT = 10.00
staticconstexpr

◆ last

std::array<char, MAX_LAST + 1> tpcc::Customer::last = {0}

◆ MAX_DATA

const int tpcc::Customer::MAX_DATA = 500
static

◆ MAX_DISCOUNT

constexpr float tpcc::Customer::MAX_DISCOUNT = 0.5000
staticconstexpr

◆ MAX_FIRST

const int tpcc::Customer::MAX_FIRST = 10
static

◆ MAX_LAST

const int tpcc::Customer::MAX_LAST = 16
static

◆ MIDDLE

const int tpcc::Customer::MIDDLE = 2
static

◆ middle

std::array<char, MIDDLE + 1> tpcc::Customer::middle = {0}

◆ MIN_DATA

const int tpcc::Customer::MIN_DATA = 300
static

◆ MIN_DISCOUNT

constexpr float tpcc::Customer::MIN_DISCOUNT = 0.0000
staticconstexpr

◆ MIN_FIRST

const int tpcc::Customer::MIN_FIRST = 6
static

◆ NUM_PER_DISTRICT

const int tpcc::Customer::NUM_PER_DISTRICT = 3000
static

◆ payment_cnt

int32_t tpcc::Customer::payment_cnt

◆ PHONE

const int tpcc::Customer::PHONE = 16
static

◆ phone

std::array<char, PHONE + 1> tpcc::Customer::phone = {0}

◆ since

std::array<char, DATETIME_SIZE + 1> tpcc::Customer::since = {0}

◆ state

std::array<char, Address::STATE + 1> tpcc::Customer::state = {0}

◆ street_1

std::array<char, Address::MAX_STREET + 1> tpcc::Customer::street_1 = {0}

◆ street_2

std::array<char, Address::MAX_STREET + 1> tpcc::Customer::street_2 = {0}

◆ w_id

int32_t tpcc::Customer::w_id

◆ ytd_payment

float tpcc::Customer::ytd_payment

◆ zip

std::array<char, Address::ZIP + 1> tpcc::Customer::zip = {0}

The documentation for this struct was generated from the following file: