Paul Wolfgang - Integration of the Standard Template Library and the Microsoft Foundation Class

Здесь есть возможность читать онлайн «Paul Wolfgang - Integration of the Standard Template Library and the Microsoft Foundation Class» весь текст электронной книги совершенно бесплатно (целиком полную версию без сокращений). В некоторых случаях можно слушать аудио, скачать через торрент в формате fb2 и присутствует краткое содержание. Жанр: Программирование, на английском языке. Описание произведения, (предисловие) а так же отзывы посетителей доступны на портале библиотеки ЛибКат.

Integration of the Standard Template Library and the Microsoft Foundation Class: краткое содержание, описание и аннотация

Предлагаем к чтению аннотацию, описание, краткое содержание или предисловие (зависит от того, что написал сам автор книги «Integration of the Standard Template Library and the Microsoft Foundation Class»). Если вы не нашли необходимую информацию о книге — напишите в комментариях, мы постараемся отыскать её.

Integration of the Standard Template Library and the Microsoft Foundation Class — читать онлайн бесплатно полную книгу (весь текст) целиком

Ниже представлен текст книги, разбитый по страницам. Система сохранения места последней прочитанной страницы, позволяет с удобством читать онлайн бесплатно книгу «Integration of the Standard Template Library and the Microsoft Foundation Class», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

copy(ii, ii + s, back_inserter(*this));

Output of a CStroke

CArchive_output_iterator‹CPoint› oi(ar);

copy(m_pointArray.begin(), m_pointArray.end(), oi);

Input of a CStroke

CArchive_input_iterator‹CPoint› ii(ar);

copy(ii, ii + w, back_inserter(m_pointArray));

3 Conclusion

The STL containers can be easily adapted to be used in Windows® applications in place of the MFC collection classes. By adding the CArchive input and output iterators, the use of the standard algorithms can be applied to the serialization process.

The STL containers are more general than the MFC collection classes. By separating the iterators from the containers themselves, and by providing a common interface for all containers, the STL container choice is independent of the algorithm. The Scribble example uses a linked list of arrays to represent the strokes. This was replicated in the STL version. The STL version could easily be changed to use an array (vector) of lists, or a list of lists, or an array of arrays.

We first developed this example using Microsoft's Visual C++ version 5.0. We experienced numerous difficulties requiring us to define a class, MYCPoint to extend the CPoint class and developing modified versions of the function binders and adapters. Microsoft's Visual C++ version 6.0 does not require these workarounds.

4 References

[1] Shepherd, George and Wingo, Scot. MFC Internals. Addison-Wesley, 1996.

[2] Stepanov, A. A. and Lee, M. The Standard Template Library. Technical Report HPL-94-34, Hewlett-Packard Laboratories, April 1994.

[3] The Microsoft Developer Studio Help Files and Example Files.

[4] Stroustrup, Bjarne. The C++ Programming Language Third Edition. Addison-Wesley, 1997.

Paul Wolfgang is a Staff Engineer at Boeing and an Adjunct Professor at Temple University. He can be reached at Paul.Wolfgang@Boeing.com or at wolfgang@falcon.cis.temple.edu.

Yang Song is a graduate student at Temple University. She can be reached at yangsong@astro.ocis.temple.edu.

Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

Похожие книги на «Integration of the Standard Template Library and the Microsoft Foundation Class»

Представляем Вашему вниманию похожие книги на «Integration of the Standard Template Library and the Microsoft Foundation Class» списком для выбора. Мы отобрали схожую по названию и смыслу литературу в надежде предоставить читателям больше вариантов отыскать новые, интересные, ещё непрочитанные произведения.


Отзывы о книге «Integration of the Standard Template Library and the Microsoft Foundation Class»

Обсуждение, отзывы о книге «Integration of the Standard Template Library and the Microsoft Foundation Class» и просто собственные мнения читателей. Оставьте ваши комментарии, напишите, что Вы думаете о произведении, его смысле или главных героях. Укажите что конкретно понравилось, а что нет, и почему Вы так считаете.

x