Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i AT&T 2:38 PM a babbage.cs.atu.edu Use the following UML for a template struct for the nodes of a linked list to be used in
i AT&T 2:38 PM a babbage.cs.atu.edu Use the following UML for a template struct for the nodes of a linked list to be used in ListType: NodeType +info: T +link: NodeTypecT>* Use the following abstract list template class in order to derive UListType and oListType and name this file ListType.h. The list structure will use a linked list for its storage mechanism. ListType #head: NodeType * #count: size_t +ListType() ListType(const ListType&) : const ListTypecT>& tinsert (const T&)-0: virtual bool teraseAll): virtual void terase(const T&): void +find(const T&) const: bool +size) const: size t tempty() const: bool -destroy): void -copy (const ListType&): void operator +insert (const T&): bool OListType::ListType tinsert (const T&): bool NOTE: When printing' the list with the overloaded output operator, it should output the elements of the list separated by a comma-space, no new line-feeds. Derive classes UListType (filename UListType.h) and OListType (filename OListType.h) from the abstract template class ListType (filename ListType.h). Main program file should be named Program03.cpp and should illustrate that both the unordered and ordered lists are working. Since the main program should effectively be your 'test plan' so the test plan.pdf document isn't neccesary. i AT&T 2:38 PM a babbage.cs.atu.edu Use the following UML for a template struct for the nodes of a linked list to be used in ListType: NodeType +info: T +link: NodeTypecT>* Use the following abstract list template class in order to derive UListType and oListType and name this file ListType.h. The list structure will use a linked list for its storage mechanism. ListType #head: NodeType * #count: size_t +ListType() ListType(const ListType&) : const ListTypecT>& tinsert (const T&)-0: virtual bool teraseAll): virtual void terase(const T&): void +find(const T&) const: bool +size) const: size t tempty() const: bool -destroy): void -copy (const ListType&): void operator +insert (const T&): bool OListType::ListType tinsert (const T&): bool NOTE: When printing' the list with the overloaded output operator, it should output the elements of the list separated by a comma-space, no new line-feeds. Derive classes UListType (filename UListType.h) and OListType (filename OListType.h) from the abstract template class ListType (filename ListType.h). Main program file should be named Program03.cpp and should illustrate that both the unordered and ordered lists are working. Since the main program should effectively be your 'test plan' so the test plan.pdf document isn't neccesary
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started