lab1 - / written by: Jamie Milhoan & Jacob McConnell /...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// /*----------------------------------------------------------------------*\ // | Concrete Template : Sorting_Machine_Kernel_2 // \*----------------------------------------------------------------------*/ #ifndef CT_SORTING_MACHINE_KERNEL_2 #define CT_SORTING_MACHINE_KERNEL_2 1 ///------------------------------------------------------------------------ /// Global Context -------------------------------------------------------- ///------------------------------------------------------------------------ #include "AT/Sorting_Machine/Kernel.h" #include "CT/Queue/Kernel_1a.h" #include "CT/Array/Kernel_1.h" #include "CT/Array/Are_In_Order_At_1.h" #include "CT/Array/Exchange_At_1.h" ///--------------------------------------------------------------------- /// Interface ---------------------------------------------------------- ///--------------------------------------------------------------------- concrete_template < concrete_instance class Item, concrete_instance utility_class Item_Are_In_Order, /*! implements abstract_instance General_Are_In_Order <Item> !*/ concrete_instance class Queue_Of_Item = Queue_Kernel_1a <Item>, concrete_instance class Array_Of_Item = Array_Exchange_At_1 < Item, Array_Are_In_Order_At_1 < Item, Item_Are_In_Order, Array_Kernel_1 <Item> > >, concrete_instance class Rep = Representation < Boolean, Queue_Of_Item, Array_Of_Item, Integer > > class Sorting_Machine_Kernel_2 : implements abstract_instance Sorting_Machine_Kernel <Item, Item_Are_In_Order>, encapsulates concrete_instance Rep { private: rep_field_name (Rep, 0, Boolean, inserting_rep); rep_field_name (Rep, 1, Queue_Of_Item, queue); rep_field_name (Rep, 2, Array_Of_Item, array);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

lab1 - / written by: Jamie Milhoan &amp; Jacob McConnell /...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online