Lolly 1.4.28
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
list_rep< T > Class Template Reference

The list_rep class represents a node in a linked list. More...

#include <list.hpp>

Inheritance diagram for list_rep< T >:
Inheritance graph
[legend]
Collaboration diagram for list_rep< T >:
Collaboration graph
[legend]

Public Member Functions

 list_rep (T item2, list< T > next2)
 Construct a new list_rep object.
 
 ~list_rep ()
 Destroy the list_rep object.
 

Public Attributes

item
 
list< T > next
 

Friends

class list< T >
 

Additional Inherited Members

- Private Member Functions inherited from concrete_struct
 concrete_struct ()
 Default constructor for the concrete object. Increments the reference count.
 
virtual ~concrete_struct ()
 Virtual destructor for the concrete object. Decrements the reference count.
 
- Private Attributes inherited from concrete_struct
int ref_count
 The reference count for the concrete object.
 

Detailed Description

template<class T>
class list_rep< T >

The list_rep class represents a node in a linked list.

Template Parameters
TThe type of the data stored in the list.

Definition at line 113 of file list.hpp.

Constructor & Destructor Documentation

◆ list_rep()

template<class T >
list_rep< T >::list_rep ( T item2,
list< T > next2 )
inline

Construct a new list_rep object.

Parameters
item2The data to be stored in this node.
next2A pointer to the next node in the list.

Definition at line 116 of file list.hpp.

124 : item (item2), next (next2) {
126 }
#define TM_DEBUG(x)
Debugging macro used to disable debugging output.
Definition classdef.hpp:13
list< T > next
Definition list.hpp:116
The list class represents a linked list.
Definition list.hpp:48
int list_count

◆ ~list_rep()

template<class T >
list_rep< T >::~list_rep ( )
inline

Destroy the list_rep object.

Definition at line 116 of file list.hpp.

131{ TM_DEBUG (list_count--); }

Friends And Related Symbol Documentation

◆ list< T >

template<class T >
friend class list< T >
friend

Definition at line 116 of file list.hpp.

Member Data Documentation

◆ item

template<class T >
T list_rep< T >::item

The data stored in the node.

Definition at line 115 of file list.hpp.

◆ next

template<class T >
list<T> list_rep< T >::next

A pointer to the next node in the list.

Definition at line 116 of file list.hpp.


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