problemscpp
A collection of my answers to algorithm problems in c++.
Public 成员函数 | Public 属性 | 所有成员列表
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

◆ 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 表示
Definition: pat.h:842
unsigned arrive_time
Definition: pat.h:843
unsigned p
客户的业务办理时间 P(单位:分钟)
Definition: pat.h:844

引用了 arrive_time , 以及 arrive_time_str.

成员函数说明

◆ operator<()

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

在文件 pat.cpp4553 行定义.

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

引用了 arrive_time_str.

类成员变量说明

◆ arrive_time

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

在文件 pat.h843 行定义.

被这些函数引用 customer().

◆ arrive_time_str

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

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

在文件 pat.h842 行定义.

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

◆ id

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

在文件 pat.h841 行定义.

◆ p

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

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

在文件 pat.h844 行定义.

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

◆ start_time

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

在文件 pat.h845 行定义.


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