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

#include <pat.h>

Public 成员函数

int get_dist () const
 
bool operator< (const player &) const
 

Public 属性

string id
 
int x {}
 
int y {}
 

详细描述

在文件 pat.h510 行定义.

成员函数说明

◆ get_dist()

int pat::b::b1082::player::get_dist ( ) const

在文件 pat.cpp2907 行定义.

2907{ return x * x + y * y; }

引用了 x , 以及 y.

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

◆ operator<()

bool pat::b::b1082::player::operator< ( const player p) const

在文件 pat.cpp2909 行定义.

2909{ return this->get_dist() < p.get_dist(); }
int get_dist() const
Definition: pat.cpp:2907

引用了 get_dist().

类成员变量说明

◆ id

string pat::b::b1082::player::id

在文件 pat.h511 行定义.

◆ x

int pat::b::b1082::player::x {}

在文件 pat.h512 行定义.

被这些函数引用 get_dist().

◆ y

int pat::b::b1082::player::y {}

在文件 pat.h513 行定义.

被这些函数引用 get_dist().


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