树  0.1
数据结构_第6章
Queue::linkQueue< T >::node Struct Reference

linkQueue的结点类 More...

Collaboration diagram for Queue::linkQueue< T >::node:

Public Member Functions

 node (const value_type &data=value_type(), node *next=nullptr)
 Construct a new node object. More...
 
 node (value_type &&data, node *next=nullptr)
 Construct a new node object. More...
 
 ~node ()=default
 Destroy the node object. More...
 

Public Attributes

value_type _data
 数据域 More...
 
node_next
 指向后继node的指针 More...
 

Detailed Description

template<typename T>
struct Queue::linkQueue< T >::node

linkQueue的结点类

Definition at line 77 of file linkQueue.hh.

Constructor & Destructor Documentation

◆ node() [1/2]

template<typename T >
Queue::linkQueue< T >::node::node ( const value_type data = value_type(),
node next = nullptr 
)
inline

Construct a new node object.

Parameters
data数据
next指向后继结点的指针

Definition at line 97 of file linkQueue.hh.

◆ node() [2/2]

template<typename T >
Queue::linkQueue< T >::node::node ( value_type &&  data,
node next = nullptr 
)
inline

Construct a new node object.

Parameters
data数据的值
next指向后继结点的指针

Definition at line 106 of file linkQueue.hh.

◆ ~node()

template<typename T >
Queue::linkQueue< T >::node::~node ( )
default

Destroy the node object.

Member Data Documentation

◆ _data

template<typename T >
value_type Queue::linkQueue< T >::node::_data

数据域

Definition at line 83 of file linkQueue.hh.

◆ _next

template<typename T >
node* Queue::linkQueue< T >::node::_next

指向后继node的指针

Definition at line 89 of file linkQueue.hh.

Referenced by Queue::linkQueue< T >::push().


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