problemscpp
A collection of my answers to algorithm problems in c++.
载入中...
搜索中...
未找到
pat::a::a1017::customer结构体 参考

#include <pat.h>

Public 成员函数

 customer ()=default
 
 customer (unsigned id, const string &arrive_time_str, unsigned p)
 
bool operator< (const customer &b) const
 

Public 属性

unsigned arrive_time {}
 
string arrive_time_str
 客户的到达时间,用 HH:MM:SS 表示
 
unsigned id {}
 
unsigned p {}
 客户的业务办理时间 P(单位:分钟)
 
unsigned start_time {}
 

详细描述

在文件 pat.h840 行定义.

构造及析构函数说明

◆ customer() [1/2]

pat::a::a1017::customer::customer ( )
default

引用了 arrive_time_str , 以及 p.

被这些函数引用 operator<().

◆ customer() [2/2]

pat::a::a1017::customer::customer ( unsigned id,
const string & arrive_time_str,
unsigned p )

在文件 pat.cpp4555 行定义.

4557 const int h = stoi(arrive_time_str.substr(0, 2));
4558 const int m = stoi(arrive_time_str.substr(3, 2));
4559 const int s = stoi(arrive_time_str.substr(6, 2));
4560 this->arrive_time = h * 60 * 60 + m * 60 + s;
4561 }
string arrive_time_str
客户的到达时间,用 HH:MM:SS 表示
定义 pat.h:842
unsigned p
客户的业务办理时间 P(单位:分钟)
定义 pat.h:844

引用了 arrive_time, arrive_time_str, id , 以及 p.

成员函数说明

◆ operator<()

bool pat::a::a1017::customer::operator< ( const customer & b) const

在文件 pat.cpp4553 行定义.

4553{ return this->arrive_time_str < b.arrive_time_str; }

引用了 customer() , 以及 arrive_time_str.

类成员变量说明

◆ arrive_time

unsigned pat::a::a1017::customer::arrive_time {}

在文件 pat.h843 行定义.

843{};

被这些函数引用 customer().

◆ arrive_time_str

string pat::a::a1017::customer::arrive_time_str

客户的到达时间,用 HH:MM:SS 表示

在文件 pat.h842 行定义.

被这些函数引用 customer(), customer() , 以及 operator<().

◆ id

unsigned pat::a::a1017::customer::id {}

在文件 pat.h841 行定义.

841{};

被这些函数引用 customer().

◆ p

unsigned pat::a::a1017::customer::p {}

客户的业务办理时间 P(单位:分钟)

在文件 pat.h844 行定义.

844{};

被这些函数引用 customer(), customer() , 以及 pat::a::a1017::customer_comp_p::operator()().

◆ start_time

unsigned pat::a::a1017::customer::start_time {}

在文件 pat.h845 行定义.

845{};

该结构体的文档由以下文件生成: