without examplesFound in 1 dictionary
Computer Science- dicts.lingvocomputer_en_ru.description
- dicts.lingvocomputer_en_ru.description
member function
C++
функция-член, метод (функция, объявленная в классе без описателя friend)
Examples from texts
On typical 32-bit systems, these objects occupy 4 and 20 bytes, respectively (4 for the pointer to an object and 16 for the pointer to a member function).В типичных 32-разрядных системах эти объекты занимают от 4 до 20 байт соответственно (4 байт для указателя на объект и 16 байт для указателя на функцию-член).Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
The FunctorDispatcher::Add member function defines a specialized FunctorImpl class by deriving from it.Функция-член FunctorDispatcher: :Add определяет специализированный класс Adapter, производный от класса Functorlmpl.Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
The reference to the unknown class will be automatically converted to a reference to the DocElement base class, and the catch-all member function will be called.Ссылка на объект неизвестного класса автоматически конвертируется в ссылку на объект базового класса DocElement, и вызывается функция-ловушка.Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
Instead, the string library defines a non-member function getline() that takes an istream object as its first argument and a string object as its second argument.Вместо этого строковая библиотека определяет функцию, не являющуюся элементом класса getline(), имеющую объект класса istream первым аргументом и объект класса string — вторым.Prata, Stephen / C++ Primer PlusПрата, Стивен / Язык программирования C++. Лекции и упражненияЯзык программирования C++. Лекции и упражненияПрата, Стивен© 2002 by Sams Publishing© Издательский дом "Вильямс", 2006C++ Primer PlusPrata, Stephen© 2002 by Sams Publishing
A generic smart pointer cannot count on knowing the exact name of the cloning member function—maybe it's clone, or maybe MakeCopy.Обобщенный интеллектуальный указатель не знает точно имя функции клонирования: может быть, clone, а может— МакеСору.Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
The Singleton above added a new member function, KillPhoenixSingleton.В приведенном выше описании класса singleton добавлена новая функция Kill-PhoenixSingleton.Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
All you have to commit to is the return type and the arguments of the pointer to a member function.Все, что для этого нужно — тип возвращаемого значения и аргументы указателя на функцию-член.Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
The implementation must handle the three essential cases: simple function calls, functor calls (including Functor calls; that is, you should be able to forward calls from one Functor to another), and member function calls.Реализация должна учитывать три основных варианта: простые вызовы функций, вызовы функторов (включая вызовы объектов класса Functor, т.е. возможность передавать вызовы от одного объекта класса Functor другому) и вызовы функций-членов.Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
Because of its Add member function, FnDispatcher is easy to use.Благодаря функции-члену Add класс FnDispatcher легко использовать.Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
Furthermore, let's make the pointer to a member function a template parameter as well.Более того, указатель на функцию-член мы также сделаем шаблонным параметром.Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
That is, to invoke a public member function, you have to use an object:Иначе говоря, чтобы обратиться к общедоступной функции-элементу, нужно воспользоваться объектом:Prata, Stephen / C++ Primer PlusПрата, Стивен / Язык программирования C++. Лекции и упражненияЯзык программирования C++. Лекции и упражненияПрата, Стивен© 2002 by Sams Publishing© Издательский дом "Вильямс", 2006C++ Primer PlusPrata, Stephen© 2002 by Sams Publishing
It only defines an OnEvent member function.В нем определяется только функция-член OnEvent.Alexandrescu, Andrei / Modern C++ Design: Generic Programming and Design Patterns AppliedАлександреску, Андрей / Современное проектирование на C++Современное проектирование на C++Александреску, Андрей© Addison-Wesley Publishing Company, Inc.© Издательский дом "Вильямс", 2002Modern C++ Design: Generic Programming and Design Patterns AppliedAlexandrescu, Andrei© 2001 by Addison-Wesley
Any time you are thinking of coding an ORDER member function, you should try to find a way to make it into a MAP member function instead.Задумав написать метод ORDER, попробуйте использовать вместо него метод MAP.Kyte, Tom / Expert One-on-One OracleКайт, Том / Oracle для профессионаловOracle для профессионаловКайт, Том© Перевод на русский язык. ООО «ДиаСофтЮП», 2003© Wrox Press Ltd, 2002Expert One-on-One OracleKyte, Tom© Wrox Press Ltd, 2002
The wrapper class also adds member functions for loading resource strings, formatting text, and performing case-independent string compares.Кроме того, этот контейнер содержит функции-члены для загрузки строк из ресурсов, форматирования текста и сравнения строк независимо от регистра.Snook, Greg / Real-Time 3D Terrain Engines Using C++ and DirectX 9Снук, Грег / Создание ЗD-ландшафтов в реальном времени с использованием C++ и DirectX 9Создание ЗD-ландшафтов в реальном времени с использованием C++ и DirectX 9Снук, Грег© Перевод, макет и обложка «ИД КУДИЦ-ОБРАЗ», 2006, 2007© 2003 by CHARLES RIVER MEDIA, INC© 2005, 2007© Translation 2005 by Kudits-ObrazReal-Time 3D Terrain Engines Using C++ and DirectX 9Snook, Greg© 2003 by CHARLES RIVER MEDIA, INC
Suppose, for example, that a class has protected members, which could either be data members or member functions.Например, предположите, что класс имеет защищенные элементы, которые могут быть элементами данных или функциями-элементами.Prata, Stephen / C++ Primer PlusПрата, Стивен / Язык программирования C++. Лекции и упражненияЯзык программирования C++. Лекции и упражненияПрата, Стивен© 2002 by Sams Publishing© Издательский дом "Вильямс", 2006C++ Primer PlusPrata, Stephen© 2002 by Sams Publishing
Add to my dictionary
member function
функция-член; метод
User translations
No translations for this text yet.
Be the first to translate it!
Collocations
nonstatic member function
нестатическая функция-член