11-10-2011
If you remove the virtual keyword then the function doesn't get put into the virtual function table. Therefore, I believe any calls to the function are bound to the function within the type's class. Since yahoo is using base, all calls it makes inside that class are bound to base's function. However, virtual functions are always bound to the vtable (unless you explicitly override it).
This User Gave Thanks to DreamWarrior For This Post:
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
will anybody tell me how can i access all the fields of process table .if there is any structure and a system call please specify . (1 Reply)
Discussion started by: vish_shan
1 Replies
2. HP-UX
. (2 Replies)
Discussion started by: Driver
2 Replies
3. UNIX for Dummies Questions & Answers
Not really a newbie, but I have a strange problem and I'm not sure how to further troubleshoot it.
I have to log out of a virtual terminal by typing exit, then exit again as in:
woodnt@toshiba-laptop ~ $ exit
logout
woodnt@toshiba-laptop ~ $ exit
logout
I DON'T have to do this when I'm... (1 Reply)
Discussion started by: Narnie
1 Replies
4. AIX
First of all I have performed a Google search and internal search and found several descriptions but nothing I can wrap my head around and feel 100% confident about.
I feel really silly for asking this as I manage a P6 570 with 12 lpars but I have difficulity with Virtual Processors.
I can... (3 Replies)
Discussion started by: juredd1
3 Replies
5. Shell Programming and Scripting
I learn using RS in awk to extract portion of file in this forum which is wonderful solution to the problem. However, I don't understand how exactly it operates.
I don't quite understand the mechanism behind how searching for /DATA2/ can result in extracting the whole section under "DATA2"
... (3 Replies)
Discussion started by: joe228
3 Replies
6. UNIX for Dummies Questions & Answers
Hello,
i would like to figute out, if there is any JVM installed on my unix account.
How can i figure that out??
Thanks (1 Reply)
Discussion started by: g_p
1 Replies
7. Solaris
Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12).
I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies
8. Shell Programming and Scripting
I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line
if
then... (8 Replies)
Discussion started by: saku
8 Replies
9. What is on Your Mind?
Hello,
Long-time Unix hacker here - I've worked on four variants of the kernel prior to the introduction of Linux. In my spare time, I've written Linux (Ubuntu) device drivers, kernel modules, cross-compiled, and built the kernel.
I'd like to do Linux internals/device drivers as a day job,... (1 Reply)
Discussion started by: OriginalVersion
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
Is there any way I can prioritize my VMs when there is resource crunch in host machine so that some VMs will be allocated more vcpu, more memory than other VMs in kvm/qemu hypervisor based virtual machines?
Lets say in my cloud environment my Ubuntu 16 compute hosts are running some... (0 Replies)
Discussion started by: SanjayK
0 Replies
LEARN ABOUT SUSE
xkbvirtualmodstoreal
XkbVirtualModsToReal(3) XKB FUNCTIONS XkbVirtualModsToReal(3)
NAME
XkbVirtualModsToReal - Determines the mapping of virtual modifiers to core X protocol modifiers
SYNOPSIS
Bool XkbVirtualModsToReal (XkbDescPtr xkb, unsigned int virtual_mask, unsigned int *mask_rtrn);
ARGUMENTS
- xkb keyboard description for input device
- virtual_mask
virtual modifier mask to translate
- mask_rtrn
backfilled with real modifiers
DESCRIPTION
Xkb maintains a virtual modifier mapping, which lists the virtual modifiers associated with, or bound to, each key. The real modifiers
bound to a virtual modifier always include all of the modifiers bound to any of the keys that specify that virtual modifier in their vir-
tual modifier mapping. The server.vmodmap array indicates which virtual modifiers are bound to each key; each entry is a bitmask for the
virtual modifier bits. The server.vmodmap array is indexed by keycode.
The vmodmap and vmods members of the server map are the "master" virtual modifier definitions. Xkb automatically propagates any changes to
these fields to all other fields that use virtual modifier mappings.
For example, if Mod3 is bound to the Num_Lock key by the core protocol modifier mapping, and the NumLock virtual modifier is bound to they
Num_Lock key by the virtual modifier mapping, Mod3 is added to the set of modifiers associated with NumLock.
The virtual modifier mapping is normally updated whenever actions are automatically applied to symbols and few applications should need to
change the virtual modifier mapping explicitly.
Use XkbGetMap to get the virtual modifiers from the server or use XkbGetVirtualMods to update a local copy of the virtual modifiers bind-
ings from the server. To set the binding of a virtual modifier to a real modifier, use XkbGetVirtualMods
If the keyboard description defined by xkb includes bindings for virtual modifiers, XkbVirtualModsToReal uses those bindings to determine
the set of real modifiers that correspond to the set of virtual modifiers specified in virtual_mask. The virtual_mask parameter is a mask
specifying the virtual modifiers to translate; the i-th bit (0 relative) of the mask represents the i-th virtual modifier. If mask_rtrn is
non-NULL, XkbVirtualModsToReal backfills it with the resulting real modifier mask. If the keyboard description in xkb does not include vir-
tual modifier bindings, XkbVirtualModsToReal returns False; otherwise, it returns True.
RETURN VALUES
True The XkbVirtualModsToReal function returns True if the keyboard description in xkb does include virtual modifier bindings.
False The XkbVirtualModsToReal function returns False if the keyboard description in xkb does not include virtual modifier bind-
ings.
SEE ALSO
XkbGetMap(3), XkbGetVirtualMods(3)
NOTES
It is possible for a local (client-side) keyboard description (the xkb parameter) to not contain any virtual modifier information (simply
because the client has not requested it) while the server's corresponding definition may contain virtual modifier information.
X Version 11 libX11 1.3.2 XkbVirtualModsToReal(3)