\hypertarget{classItemlyWorker}{
\section{ItemlyWorker$<$ ItemType $>$ Class Template Reference}
\label{classItemlyWorker}\index{ItemlyWorker@{ItemlyWorker}}
}
{\tt \#include $<$itemly.h$>$}

Inheritance diagram for ItemlyWorker$<$ ItemType $>$:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=88pt]{classItemlyWorker__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for ItemlyWorker$<$ ItemType $>$:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=96pt]{classItemlyWorker__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classItemlyWorker_a5c35f4beab6e04903868b2e046d5f19}{ItemlyWorker} (const char first\mbox{[}$\,$\mbox{]}=\char`\"{}\char`\"{}, const char last\mbox{[}$\,$\mbox{]}=\char`\"{}\char`\"{}, double wage\_\-per=0.0, const ItemType \&quant=ItemType())
\item 
\hyperlink{classItemlyWorker_af0f57a8077a46b7d6d2ae122d2422d0}{ItemlyWorker} (const \hyperlink{classItemlyWorker}{ItemlyWorker} \&worker)
\item 
virtual \hyperlink{classItemlyWorker_99c5dd19d90a21ed0afa7ea91751edab}{$\sim$ItemlyWorker} ()
\item 
\hyperlink{classItemlyWorker}{ItemlyWorker} \& \hyperlink{classItemlyWorker_c2103b2ed7ec1c87a056fb7be93d7fad}{operator=} (const \hyperlink{classItemlyWorker}{ItemlyWorker} \&worker)
\item 
void \hyperlink{classItemlyWorker_1b645adbc91220e0d461c0db9b6d997d}{set\_\-wage\_\-per} (double wage\_\-per)
\item 
void \hyperlink{classItemlyWorker_c6323c1615f185c6fd0119a93c9a0a67}{set\_\-quantity} (const ItemType \&quant)
\item 
virtual double \hyperlink{classItemlyWorker_1befb43c32a8f0c44b6946ec6e47c76b}{earnings} (void) const 
\item 
virtual void \hyperlink{classItemlyWorker_c703160154493609bf1a4892495332f1}{print} (std::ostream \&out) const 
\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
double \hyperlink{classItemlyWorker_38dd5dc97f88afbcb06eeec8d32010f1}{wage\_\-per\_\-item}
\item 
ItemType \hyperlink{classItemlyWorker_f2bb156dcf7c4d4dcf2dfb3fc203abef}{item\_\-quantity}
\end{CompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename ItemType$>$ class ItemlyWorker$<$ ItemType $>$}



Definition at line 8 of file itemly.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classItemlyWorker_a5c35f4beab6e04903868b2e046d5f19}{
\index{ItemlyWorker@{ItemlyWorker}!ItemlyWorker@{ItemlyWorker}}
\index{ItemlyWorker@{ItemlyWorker}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ {\bf ItemlyWorker}$<$ ItemType $>$::{\bf ItemlyWorker} (const char {\em first}\mbox{[}$\,$\mbox{]} = {\tt \char`\"{}\char`\"{}}, \/  const char {\em last}\mbox{[}$\,$\mbox{]} = {\tt \char`\"{}\char`\"{}}, \/  double {\em wage\_\-per} = {\tt 0.0}, \/  const ItemType \& {\em quant} = {\tt ItemType()})}}
\label{classItemlyWorker_a5c35f4beab6e04903868b2e046d5f19}


\hypertarget{classItemlyWorker_af0f57a8077a46b7d6d2ae122d2422d0}{
\index{ItemlyWorker@{ItemlyWorker}!ItemlyWorker@{ItemlyWorker}}
\index{ItemlyWorker@{ItemlyWorker}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ {\bf ItemlyWorker}$<$ ItemType $>$::{\bf ItemlyWorker} (const {\bf ItemlyWorker}$<$ ItemType $>$ \& {\em worker})}}
\label{classItemlyWorker_af0f57a8077a46b7d6d2ae122d2422d0}


\hypertarget{classItemlyWorker_99c5dd19d90a21ed0afa7ea91751edab}{
\index{ItemlyWorker@{ItemlyWorker}!$\sim$ItemlyWorker@{$\sim$ItemlyWorker}}
\index{$\sim$ItemlyWorker@{$\sim$ItemlyWorker}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ virtual {\bf ItemlyWorker}$<$ ItemType $>$::$\sim${\bf ItemlyWorker} ()\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{classItemlyWorker_99c5dd19d90a21ed0afa7ea91751edab}




\subsection{Member Function Documentation}
\hypertarget{classItemlyWorker_c2103b2ed7ec1c87a056fb7be93d7fad}{
\index{ItemlyWorker@{ItemlyWorker}!operator=@{operator=}}
\index{operator=@{operator=}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ {\bf ItemlyWorker}\& {\bf ItemlyWorker}$<$ ItemType $>$::operator= (const {\bf ItemlyWorker}$<$ ItemType $>$ \& {\em worker})}}
\label{classItemlyWorker_c2103b2ed7ec1c87a056fb7be93d7fad}




Here is the caller graph for this function:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=176pt]{classItemlyWorker_c2103b2ed7ec1c87a056fb7be93d7fad_icgraph}
\end{center}
\end{figure}
\hypertarget{classItemlyWorker_1b645adbc91220e0d461c0db9b6d997d}{
\index{ItemlyWorker@{ItemlyWorker}!set\_\-wage\_\-per@{set\_\-wage\_\-per}}
\index{set\_\-wage\_\-per@{set\_\-wage\_\-per}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ void {\bf ItemlyWorker}$<$ ItemType $>$::set\_\-wage\_\-per (double {\em wage\_\-per})}}
\label{classItemlyWorker_1b645adbc91220e0d461c0db9b6d997d}




Here is the caller graph for this function:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=200pt]{classItemlyWorker_1b645adbc91220e0d461c0db9b6d997d_icgraph}
\end{center}
\end{figure}
\hypertarget{classItemlyWorker_c6323c1615f185c6fd0119a93c9a0a67}{
\index{ItemlyWorker@{ItemlyWorker}!set\_\-quantity@{set\_\-quantity}}
\index{set\_\-quantity@{set\_\-quantity}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ void {\bf ItemlyWorker}$<$ ItemType $>$::set\_\-quantity (const ItemType \& {\em quant})}}
\label{classItemlyWorker_c6323c1615f185c6fd0119a93c9a0a67}


\hypertarget{classItemlyWorker_1befb43c32a8f0c44b6946ec6e47c76b}{
\index{ItemlyWorker@{ItemlyWorker}!earnings@{earnings}}
\index{earnings@{earnings}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ virtual double {\bf ItemlyWorker}$<$ ItemType $>$::earnings (void) const\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{classItemlyWorker_1befb43c32a8f0c44b6946ec6e47c76b}




Implements \hyperlink{classEmployee_046a9737511d6024686645a4f07d93a3}{Employee}.

Reimplemented in \hyperlink{classCommissionWorker_0f8e3f3fd958c5a38f3b806c8c13d056}{CommissionWorker}, and \hyperlink{classHourlyWorker_c7d4298f778f9ecdd8054af4279a7206}{HourlyWorker}.

Here is the caller graph for this function:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=171pt]{classItemlyWorker_1befb43c32a8f0c44b6946ec6e47c76b_icgraph}
\end{center}
\end{figure}
\hypertarget{classItemlyWorker_c703160154493609bf1a4892495332f1}{
\index{ItemlyWorker@{ItemlyWorker}!print@{print}}
\index{print@{print}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ virtual void {\bf ItemlyWorker}$<$ ItemType $>$::print (std::ostream \& {\em out}) const\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{classItemlyWorker_c703160154493609bf1a4892495332f1}




Reimplemented from \hyperlink{classEmployee_2e4c10066a24cfbaee4fe21353aedd6a}{Employee}.

Reimplemented in \hyperlink{classCommissionWorker_ab5b96fe278657c737316617e61f818b}{CommissionWorker}, \hyperlink{classHourlyWorker_a6caa2fe75a35e35fd3b78319916eca3}{HourlyWorker}, and \hyperlink{classPieceWorker_e28755a276e16a2ecee6e57dc231ec3f}{PieceWorker}.

\subsection{Member Data Documentation}
\hypertarget{classItemlyWorker_38dd5dc97f88afbcb06eeec8d32010f1}{
\index{ItemlyWorker@{ItemlyWorker}!wage\_\-per\_\-item@{wage\_\-per\_\-item}}
\index{wage\_\-per\_\-item@{wage\_\-per\_\-item}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ double {\bf ItemlyWorker}$<$ ItemType $>$::{\bf wage\_\-per\_\-item}\hspace{0.3cm}{\tt  \mbox{[}protected\mbox{]}}}}
\label{classItemlyWorker_38dd5dc97f88afbcb06eeec8d32010f1}




Definition at line 10 of file itemly.h.\hypertarget{classItemlyWorker_f2bb156dcf7c4d4dcf2dfb3fc203abef}{
\index{ItemlyWorker@{ItemlyWorker}!item\_\-quantity@{item\_\-quantity}}
\index{item\_\-quantity@{item\_\-quantity}!ItemlyWorker@{ItemlyWorker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$typename ItemType$>$ ItemType {\bf ItemlyWorker}$<$ ItemType $>$::{\bf item\_\-quantity}\hspace{0.3cm}{\tt  \mbox{[}protected\mbox{]}}}}
\label{classItemlyWorker_f2bb156dcf7c4d4dcf2dfb3fc203abef}




Definition at line 11 of file itemly.h.

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
\hyperlink{itemly_8h}{itemly.h}\end{CompactItemize}
