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

#include <tpcc_tables.h>

Classes

struct  Key
 

Public Member Functions

Key get_key ()
 

Public Attributes

int32_t id
 
int32_t im_id
 
float price
 
std::array< char, MAX_NAME+1 > name = {0}
 
std::array< char, MAX_DATA+1 > data = {0}
 

Static Public Attributes

static const int MIN_IM = 1
 
static const int MAX_IM = 10000
 
static constexpr float MIN_PRICE = 1.00
 
static constexpr float MAX_PRICE = 100.00
 
static const int MIN_NAME = 14
 
static const int MAX_NAME = 24
 
static const int MIN_DATA = 26
 
static const int MAX_DATA = 50
 
static const int NUM_ITEMS = 100000
 

Member Function Documentation

◆ get_key()

Key tpcc::Item::get_key ( )
inline

Member Data Documentation

◆ data

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

◆ id

int32_t tpcc::Item::id

◆ im_id

int32_t tpcc::Item::im_id

◆ MAX_DATA

const int tpcc::Item::MAX_DATA = 50
static

◆ MAX_IM

const int tpcc::Item::MAX_IM = 10000
static

◆ MAX_NAME

const int tpcc::Item::MAX_NAME = 24
static

◆ MAX_PRICE

constexpr float tpcc::Item::MAX_PRICE = 100.00
staticconstexpr

◆ MIN_DATA

const int tpcc::Item::MIN_DATA = 26
static

◆ MIN_IM

const int tpcc::Item::MIN_IM = 1
static

◆ MIN_NAME

const int tpcc::Item::MIN_NAME = 14
static

◆ MIN_PRICE

constexpr float tpcc::Item::MIN_PRICE = 1.00
staticconstexpr

◆ name

std::array<char, MAX_NAME + 1> tpcc::Item::name = {0}

◆ NUM_ITEMS

const int tpcc::Item::NUM_ITEMS = 100000
static

◆ price

float tpcc::Item::price

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