без примеровНайдено в 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 9Real-Time 3D Terrain Engines Using C++ and DirectX 9Snook, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, 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 AppliedModern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-WesleyСовременное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002
Добавить в мой словарь
шаблонный класс
template class
Переводы пользователей
Пока нет переводов этого текста.
Будьте первым, кто переведёт его!
Словосочетания
библиотека шаблонных классов
ATL