- A Logic Circuit Simulation Library in C++

lcs::ListNode< T > Class Template Reference

#include <listnode.h>

List of all members.

Detailed Description

template<class T>
class lcs::ListNode< T >

A class to hold each node of a lcs::List object. This class is not intended for use by a user willing to use the List class. ListNode is hidden from the user of class lcs::List. Under normal circumstances, a user of libLCS will not need to make use of this class directly.

Public Member Functions

 ListNode (void)
 ~ListNode ()

Public Attributes

int key

Constructor & Destructor Documentation

template<class T>
lcs::ListNode< T >::ListNode ( void   ) 

Default Constructor. A copy constructor is not provided. Hence data is partially or fully prone to multiple references as the compiler synthesized copy constructor would only be a reference copier.

template<class T>
lcs::ListNode< T >::~ListNode (  ) 

Destructor. Does not keep track of the data items having multiple references. Hence use the objects created with care.

Member Data Documentation

template<class T>
T lcs::ListNode< T >::data

The member which actually holds the data.

template<class T>
int lcs::ListNode< T >::key

A key to the node.

template<class T>
ListNode* lcs::ListNode< T >::nextNodePtr

Pointer to the next ListNode in the list.

template<class T>
ListNode* lcs::ListNode< T >::previousNodePtr

Pointer to the previous ListNode in the list.

Copyright © 2006, 2007 Siva Chandra