problemscpp
A collection of my answers to algorithm problems in c++.
Public 成员函数 | Public 属性 | 所有成员列表
pat::a::a1016::record结构体 参考

#include <pat.h>

Public 成员函数

 record (string name, const string &time, const string &online)
 
unsigned get_minutes () const
 
bool operator< (const record &r) const
 

Public 属性

unsigned day
 
unsigned hour
 
unsigned minute
 
unsigned month
 
string name
 
bool online
 
string time
 

详细描述

在文件 pat.h809 行定义.

构造及析构函数说明

◆ record()

pat::a::a1016::record::record ( string  name,
const string &  time,
const string &  online 
)

在文件 pat.cpp4503 行定义.

4504 : name(std::move(std::move(name))), time(time), online(online == "on-line") {
4505 month = stoi(time.substr(0, 2));
4506 day = stoi(time.substr(3, 2));
4507 hour = stoi(time.substr(6, 2));
4508 minute = stoi(time.substr(9, 2));
4509 }
unsigned day
Definition: pat.h:814
unsigned minute
Definition: pat.h:816
unsigned hour
Definition: pat.h:815
unsigned month
Definition: pat.h:813

引用了 day, hour, minute, month , 以及 time.

成员函数说明

◆ get_minutes()

unsigned pat::a::a1016::record::get_minutes ( ) const

在文件 pat.cpp4513 行定义.

4513{ return this->day * 24 * 60 + this->hour * 60 + this->minute; }

引用了 day, hour , 以及 minute.

◆ operator<()

bool pat::a::a1016::record::operator< ( const record r) const

在文件 pat.cpp4511 行定义.

4511{ return this->time < r.time; }

引用了 time.

类成员变量说明

◆ day

unsigned pat::a::a1016::record::day

在文件 pat.h814 行定义.

被这些函数引用 record() , 以及 get_minutes().

◆ hour

unsigned pat::a::a1016::record::hour

在文件 pat.h815 行定义.

被这些函数引用 record() , 以及 get_minutes().

◆ minute

unsigned pat::a::a1016::record::minute

在文件 pat.h816 行定义.

被这些函数引用 record() , 以及 get_minutes().

◆ month

unsigned pat::a::a1016::record::month

在文件 pat.h813 行定义.

被这些函数引用 record().

◆ name

string pat::a::a1016::record::name

在文件 pat.h810 行定义.

◆ online

bool pat::a::a1016::record::online

在文件 pat.h812 行定义.

被这些函数引用 pat::a::a1016::main().

◆ time

string pat::a::a1016::record::time

在文件 pat.h811 行定义.

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


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