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
without examplesFound in 1 dictionary

Computer Science
  • 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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
© Издательский дом "Вильямс", 2006
C++ Primer Plus
Prata, 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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
© Издательский дом "Вильямс", 2006
C++ Primer Plus
Prata, 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.
© Издательский дом "Вильямс", 2002
Modern C++ Design: Generic Programming and Design Patterns Applied
Alexandrescu, 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, 2002
Expert One-on-One Oracle
Kyte, 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-Obraz
Real-Time 3D Terrain Engines Using C++ and DirectX 9
Snook, 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
© Издательский дом "Вильямс", 2006
C++ Primer Plus
Prata, 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
нестатическая функция-член