first commit
This commit is contained in:
113
Lab7/list.h
Normal file
113
Lab7/list.h
Normal file
@@ -0,0 +1,113 @@
|
||||
//## begin module.cm preserve=no
|
||||
|
||||
// %X% %Q% %Z% %W%
|
||||
|
||||
//## end module.cm
|
||||
|
||||
|
||||
|
||||
//## begin module.cp preserve=no
|
||||
|
||||
//## end module.cp
|
||||
|
||||
|
||||
|
||||
//## Module: List; Pseudo Package specification
|
||||
|
||||
//## Subsystem: figures
|
||||
|
||||
//## Source file: H:\kurs\avC++\lab4\List.h
|
||||
|
||||
|
||||
|
||||
#ifndef List_h
|
||||
|
||||
#define List_h 1
|
||||
|
||||
|
||||
|
||||
//## begin module.additionalIncludes preserve=no
|
||||
|
||||
//## end module.additionalIncludes
|
||||
|
||||
|
||||
|
||||
//## begin module.includes preserve=yes
|
||||
|
||||
//## end module.includes
|
||||
|
||||
|
||||
|
||||
// Node
|
||||
|
||||
#include "Node.h"
|
||||
|
||||
//## begin module.additionalDeclarations preserve=yes
|
||||
|
||||
//## end module.additionalDeclarations
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//## Class: List; Parameterized Class
|
||||
|
||||
//## Category: Figures
|
||||
|
||||
//## Subsystem: figures
|
||||
|
||||
//## Persistence: Transient
|
||||
|
||||
//## Cardinality/Multiplicity: n
|
||||
|
||||
|
||||
|
||||
template <class T>
|
||||
|
||||
class List
|
||||
|
||||
{
|
||||
|
||||
//## begin List.initialDeclarations preserve=yes
|
||||
|
||||
//## end List.initialDeclarations
|
||||
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//## Constructors (generated)
|
||||
|
||||
List();
|
||||
|
||||
|
||||
|
||||
//## Destructor (generated)
|
||||
|
||||
~List();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//## Other Operations (specified)
|
||||
|
||||
//## Operation: getFirst%937920679
|
||||
|
||||
T getFirst ();
|
||||
|
||||
|
||||
|
||||
//## Operation: getNext%937920680
|
||||
|
||||
T getNext ();
|
||||
|
||||
|
||||
|
||||
//## Operation: isLast%937920681
|
||||
|
||||
bool isLast ();
|
||||
|
||||
|
||||
|
||||
//## Operation: addElement%938503949
|
||||
Reference in New Issue
Block a user