about icon-addNote android4 Answer apple4 icon-appStoreEN icon-appStoreES icon-appStorePT icon-appStoreRU Imported Layers Copy 7 icon-arrow-spined icon-ask icon-attention icon-bubble-blue icon-bubble-red ButtonError ButtonLoader ButtonOk icon-cake icon-camera icon-card-add icon-card-calendar icon-card-remove icon-card-sort chrome-extension-ru chrome-extension-es-mx chrome-extension-pt-br chrome-extension-ru comment comment icon-cop-cut icon-cop-star Cross Dislike icon-editPen icon-entrance icon-errorBig facebook flag flag_vector icon-globe icon-googlePlayEN icon-googlePlayRU icon-greyLoader icon-cake Heart 4EB021E9-B441-4209-A542-9E882D3252DE Created with sketchtool. Info Kebab icon-lamp icon-lampBig icon-learnHat icon-learning-hat Dislike Loup Loup icon-more icon-note icon-notifications icon-pen Pencil icon-play icon-plus-light icon-plus icon-rosie-cut Rune scrollUp Share-icon Shevron-Down Shevron Left Shevron Right sound sound1 sound2 sound3 sound4 sound2 icon-star Swap icon-translate Trash icon-tutor-ellipsis icon-tutor-flip Tutor folder icon icon-tutor-learned icon-twoWayArrow Mezhdunarodny_logotip_VK vk icon-word pen_icon Logo Logo Logo
без примеровНайдено в 1 словаре

Вычислительная техника и программирование
  • Настоящее издание существенно дополнено терминами из области проектирования и моделирования логических устройств, систем представления знаний, компьютеризации производства, систем искусственного интеллекта, вычислительных сетей, цифровой обработки сигналов, параллельных и конвейерных вычислений, системного анализа, интернет-технологий.

шаблонный класс

template class C++

Примеры из текстов

В этой главе шаблонный класс представляет собой механизм двойной диспетчеризации, а шаблонный булевский параметр дает возможность осуществлять симметричную диспетчеризацию.
There, the template class is a double-dispatch engine, and the bool template parameter provides the option of supporting symmetric dispatch or not.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Теперь напишем простой шаблонный класс visitor.
Now we provide a simple class template Visitor.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Итак, все детали этого механизма работают хорошо, и настало время упаковать их в шаблонный класс, который скрывает подробности, связанные с процессом вывода классов, оставляя на поверхности лишь окончательный результат.
Now that we have it working, let's package everything in a class template that hides all the details of type deduction and exposes only the result.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Шаблонный класс, определенный пользователем, теперь должен принимать два шаблонных параметра.
The user-provided class template must now accept two template parameters.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Шаблонный класс StaticDispatcher можно рассматривать как механизм динамической перегрузки — он откладывает перегрузку на период выполнения программы.
You can see the StaticDispatcher class template as a mechanism that achieves dynamic overloading—it defers overloading rules to runtime.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
По умолчанию сохраняемым типом является тип T* (тип T — это первый шаблонный параметр класса SmartPtr), типом указателей — тоже T*, а ссылочным типом — T&.
By default, the stored type is T* (T is the first template parameter of SmartPtr), the pointer type is again T*, and the reference type is T&.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Для этого можно применить шаблонные классы характеристик.
You can use a traits class template, as follows.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Краткое описание шаблонного класса GenScatterHierarchy:
Synopsis of class template GenScatterHierarchy:
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Наиболее распространенной стратегией создания объектов является шаблон проектирования Prototype. Эту стратегию можно легко реализовать в классе ConcreteFactory с помощью шаблонного класса PrototypeFactoryunit.
A popular creation policy is to apply the Prototype design pattern; you can easily use Prototype with ConcreteFactory by using the canned PrototypeFactoryUnit class template.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Между сложным шаблонным классом std::vector и динамическими массивами пролегает довольно глубокая пропасть.
There is a certain gap between the sophisticated std::vector and dynamically allocated arrays.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Чтобы создать класс, управляемый единственным экземпляром другого класса, просто породите класс с единственным экземпляром от шаблона и передайте управляемый класс как шаблонный параметр.
To create a class managed by the singleton method, simply derive the class from the singleton template and provide the managed class as the template parameter.
Снук, Грег / Создание ЗD-ландшафтов в реальном времени с использованием C++ и DirectX 9Snook, Greg / Real-Time 3D Terrain Engines Using C++ and DirectX 9
Real-Time 3D Terrain Engines Using C++ and DirectX 9
Snook, Greg
© 2003 by CHARLES RIVER MEDIA, INC
Создание ЗD-ландшафтов в реальном времени с использованием C++ и DirectX 9
Снук, Грег
© Перевод, макет и обложка «ИД КУДИЦ-ОБРАЗ», 2006, 2007
© 2003 by CHARLES RIVER MEDIA, INC
© 2005, 2007
© Translation 2005 by Kudits-Obraz
Класс Functor является шаблонным и позволяет выражать вызовы функций, имеющих до 15 аргументов.
Functor is a template that allows the expression of calls with up to 15 arguments.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002
Класс SmartPtr реализует шаблонную копию конструктора, получающую другую конкретизацию класса SmartPtr.
SmartPtr implements a templated copy constructor, which accepts any other instantiation of SmartPtr.
Александреску, Андрей / Современное проектирование на C++Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns Applied
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, Andrei
© 2001 by Addison-Wesley
Современное проектирование на C++
Александреску, Андрей
© Addison-Wesley Publishing Company, Inc.
© Издательский дом "Вильямс", 2002

Добавить в мой словарь

шаблонный класс
template class

Переводы пользователей

Пока нет переводов этого текста.
Будьте первым, кто переведёт его!

Словосочетания

библиотека шаблонных классов
ATL