src/My Reference Project.cpp
view::StringListViewRef loadPrintAndMergeLists () {
	model::StringListRef  	listRef = loadList ();

	if (listRef == NULL) {
		cout << "loadPrintAndMergeLists: listRef is NULL";
		return NULL;
	}
	view::StringListViewRef listViewRef = new view::StringListView (listRef);

	printAndSortList (listViewRef);
	mergeAdditionalValues (listViewRef);
	return listViewRef;
}
/*
 * Performs the steps implied in the function name. Steps are:
 * 1. Load the list from a file
 * 2. Print and sort the list
 * 3. Merge additional values into the list
 *
 * The listRef and listViewRef reference classes automatically delete all class instances
 * created once all references are released.  Since the listViewRef has a reference to the
 * listRef, both instances still exist at the end of the function.   Returning the listViewRef
 * causes the Reference class copy constructor to be called, which in turn adds a reference.
 * See:  Referencable.h for more information about reference classes.
 */
Performs the steps implied in the function name. Steps are:
1. Load the list from a file
2. Print and sort the list
3. Merge additional values into the list

The listRef and listViewRef reference classes automatically delete all class instances
created once all references are released.  Since the listViewRef has a reference to the
listRef, both instances still exist at the end of the function.   Returning the listViewRef
causes the Reference class copy constructor to be called, which in turn adds a reference.
See:  Referencable.h for more information about reference classes.
Performs the steps implied in the function name . Steps are : 1 . Load the list from a file 2 . Print and sort the list 3 . Merge additional values into the list The listRef and listViewRef reference classes automatically delete all class instances created once all references are released . Since the listViewRef has a reference to the listRef both instances still exist at the end of the function . Returning the listViewRef causes the Reference class copy constructor to be called which in turn adds a reference . See : Referencable . h for more information about reference classes .
view::StringListViewRef loadPrintAndMergeLists () {
	model::StringListRef  	listRef = loadList ();
	if (listRef == NULL) {
		cout << "loadPrintAndMergeLists: listRef is NULL";
		return NULL;
	}
	view::StringListViewRef listViewRef = new view::StringListView (listRef);
	printAndSortList (listViewRef);
	mergeAdditionalValues (listViewRef);
	return listViewRef;
}
view :: StringListViewRef loadPrintAndMergeLists ( ) { model :: StringListRef listRef = loadList ( ) ; if ( listRef == NULL ) { cout << " " ; return NULL ; } view :: StringListViewRef listViewRef = new view :: StringListView ( listRef ) ; printAndSortList ( listViewRef ) ; mergeAdditionalValues ( listViewRef ) ; return listViewRef ; }
Performs the steps implied in the function name.
Performs the steps implied in the function name .