队列  0.1
数据结构_第4章
data_t Struct Reference

用于测试队列的简单类 More...

Collaboration diagram for data_t:
[legend]

Public Member Functions

 data_t (size_t id=0, std::string name="name")
 Construct a new data t object. More...
 
void prn () const
 print More...
 

Public Attributes

size_t _id
 size_t More...
 
std::string _name
 std::string More...
 

Detailed Description

用于测试队列的简单类

含有两个字段和一个打印字段到屏幕的公有函数

Definition at line 24 of file test0.cc.

Constructor & Destructor Documentation

◆ data_t()

data_t::data_t ( size_t  id = 0,
std::string  name = "name" 
)
inline

Construct a new data t object.

Parameters
idsize_t
namestd::string

Definition at line 47 of file test0.cc.

Member Function Documentation

◆ prn()

void data_t::prn ( ) const
inline

print

Definition at line 54 of file test0.cc.

Referenced by main().

Here is the caller graph for this function:

Member Data Documentation

◆ _id

size_t data_t::_id

size_t

Definition at line 38 of file test0.cc.

◆ _name

std::string data_t::_name

std::string

Definition at line 39 of file test0.cc.


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