01-24-2002
If the virtual function table is in process A, then the pointer to the table is in the process address space of process A and has no meaning in process B, so if you pass the pointer to process B, it would be meaningless. I don't know what OS you're using, but have you thought of using shared libraries to share the code. If that isn't an option, what about shared memory?
10 More Discussions You Might Find Interesting
1. Programming
HI,
Here is some thing that is puzzling me from a long time.
Can some body explain me this with example.
The question is :-
What is the difference between function pointer and pointer to a function.
Where do we actually use the function pointers and pointer to functions.
Thanks in... (0 Replies)
Discussion started by: S.Vishwanath
0 Replies
2. IP Networking
I have RedHat 9.0 installed on three of my servers (PIII - 233MHz) and want that they share a common IP address so that any request made reaches each of the servers.
Can anyone suggest how should I setup my LAN. I'm new to networking in Linux so please elaborate and would be thankful for a timely... (2 Replies)
Discussion started by: Rakesh Ranjan
2 Replies
3. Programming
Dear All,
Here I want to know why we put =0 in case of pure virtual function, why not =1, =2 or any thing else
Please send me answer any one as soon as possible. (1 Reply)
Discussion started by: krishna_sicsr
1 Replies
4. OS X (Apple)
Hi,
I'm trying to create a virtual screen, (maybe xvfb? or any other virtual screen buffer) and be able to use Screen Sharing to connect to it.
The setup is that I have a Mac Mini connected to the TV. But when my girlfriend is using Front Row, I can't use Screen Sharing at the same time from... (0 Replies)
Discussion started by: linge
0 Replies
5. Shell Programming and Scripting
What I am trying to achieve is turning crosstab into a normal table
e.g.
convert following table
Jan Feb Mar Apr May Jun
Australia 1 2 3 4 5 6
USA 7 8 9 10 11 12
China 13 14 15 16 17 18
to
Australia Jan 1
Australia Feb 2
Australia Mar 3 ... (2 Replies)
Discussion started by: asdban
2 Replies
6. Shell Programming and Scripting
Hi
I am new to Unix shell scripting. But i need help to slove the below issue.
Issue description:
I want to read table, view names and package names in a file
my plan to find the table name is : search "From" key word find the table or view
To find the packge name : Search "Package... (5 Replies)
Discussion started by: sboss
5 Replies
7. Programming
Hello forum memebers
As iam new to C++ programming i am little bit confuse to understand the function pointers.
Please help me to understand the function pointers with examples are suggest me good site for this,Its better if it have picturial representation ie any PPTS available in Google.... (2 Replies)
Discussion started by: rajkumar_g
2 Replies
8. UNIX for Advanced & Expert Users
I want address of current virtual memory block?
i am using fedora10:wall::wall: (1 Reply)
Discussion started by: powyama
1 Replies
9. Programming
I am attempting to create an array of function pointers. The examples I follow to do this are from:
support.microsoft.com/en-us/help/30580/how-to-declare-an-array-of-pointers-to-functions-in-visual-c
... (3 Replies)
Discussion started by: spflanze
3 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 DEBIAN
uhashtable
UHashTable(3U) InterViews Reference Manual UHashTable(3U)
NAME
UHashTable, UHashElem - hash table classes
SYNOPSIS
#include <Unidraw/uhash.h>
DESCRIPTION
UHashTable implements a simple open hash table. The number of slots can be specified when the table is created. UHashTable stores
UHashElem instances, which contain the key that is hashed. Code that uses UHashTables may derive from UHashElem to store data in addition
to the key. UHashTable also provides operations for iterating over the elements in the hash table.
UHASHELEM OPERATIONS
UHashElem(void* = nil)
Create a UHashElem with the given key value.
void* GetKey()
void SetKey(void*)
Explicitly get and set the element's key value.
UHASHTABLE PUBLIC OPERATIONS
UHashTable(int nslots)
Create a new UHashTable, specifying its number of slots.
virtual void Register(void* key, UHashElem* = nil)
Make an entry into the hash table. If no UHashElem is supplied, this function call the CreateElem function (described below) to
create one, and it will call SetKey (with key as its argument) on the result.
virtual void Unregister(void* key)
Remove the element with the matching key from the hash table and delete it.
void First(Iterator&)
void Next(Iterator&)
boolean Done(Iterator)
UHashElem* GetElem(Iterator)
Operations for iterating over the elements in the hash table. These operation do not guarantee a particular ordering for the itera-
tion. First initializes an iterator to point to the first element in the traversal, Next increments the iterator to point to the
following element, and Done returns whether or not the iterator points beyond the last element in the traversal. GetElem returns
the element to which the given iterator points.
UHashElem* Find(void* key)
Find the element with the matching key (as defined by the Equal operation, described below) in the hash table.
UHASHTABLE PROTECTED OPERATIONS
virtual UHashElem* CreateElem()
Return a new UHashElem instance. Subclasses of UHashTable should redefine this function if they use subclasses of UHashElem.
virtual int Hash(void* key)
Hash the specified key to return a slot index. This value should be less than the value of the _nslots member variable.
virtual boolean Equal(void* key1, void* key2)
Return whether the specified keys are equivalent. By default, Equal simply compares the pointers for equality. Subclasses may
redefine this operation to make more sophisticated comparisons.
SEE ALSO
Iterator(3U)
Unidraw 3 October 1990 UHashTable(3U)