63 lines
1.4 KiB
C++
63 lines
1.4 KiB
C++
//## begin module.cm preserve=no
|
|
|
|
// %X% %Q% %Z% %W%
|
|
|
|
//## end module.cm
|
|
|
|
|
|
|
|
//## begin module.cp preserve=no
|
|
|
|
//## end module.cp
|
|
|
|
|
|
|
|
//## Module: XList; Pseudo Package body
|
|
|
|
//## Subsystem: lab7
|
|
|
|
//## Source file: H:\kurs\avC++\lab7\XList.cpp
|
|
|
|
|
|
|
|
//## begin module.additionalIncludes preserve=no
|
|
|
|
//## end module.additionalIncludes
|
|
|
|
|
|
|
|
//## begin module.includes preserve=yes
|
|
|
|
//## end module.includes
|
|
|
|
|
|
|
|
// XList
|
|
|
|
#include "H:\kurs\avC++\lab7\XList.h"
|
|
|
|
//## begin module.additionalDeclarations preserve=yes
|
|
|
|
//## end module.additionalDeclarations
|
|
|
|
|
|
|
|
|
|
|
|
// Parameterized Class XList
|
|
|
|
|
|
|
|
template <class T>
|
|
|
|
XList<T>::XList()
|
|
|
|
//## begin XList::XList%.hasinit preserve=no
|
|
|
|
//## end XList::XList%.hasinit
|
|
|
|
//## begin XList::XList%.initialization preserve=yes
|
|
|
|
//## end XList::XList%.initialization
|
|
|
|
{
|
|
|
|
//## begin XList::XList%.body preserve=yes
|
|
|
|
//## end XList::XList%.body
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
template <class T>
|
|
|
|
XList<T>::~XList()
|
|
|
|
{
|
|
|
|
//## begin XList::~XList%.body preserve=yes
|
|
|
|
//## end XList::~XList%.body
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//## Other Operations (implementation)
|
|
|
|
template <class T>
|
|
|
|
void XList<T>::add (T element)
|
|
|
|
{
|
|
|
|
//## begin XList::add%940854125.body preserve=yes
|
|
|
|
//## end XList::add%940854125.body
|
|
|
|
}
|
|
|
|
|
|
|
|
// Additional Declarations
|
|
|
|
//## begin XList.declarations preserve=yes
|
|
|
|
//## end XList.declarations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//## begin module.epilog preserve=yes
|
|
|
|
//## end module.epilog
|
|
|