what is needed to implement a memory table?

M

monkeydragon

what is needed to implement a memory table, that will be accessed later
via reference "label".
for example,
i read the NUMBER of DATA the table will have and along with it the
DATA itself in a binary file.

and Using some kind of addressing, how would the table of DATA values
be accessed?

Regards,
krby_xtrm
 
N

Neelesh Bodas

monkeydragon said:
what is needed to implement a memory table, that will be accessed later
via reference "label".

What does that mean?
for example,
i read the NUMBER of DATA the table will have and along with it the
DATA itself in a binary file.

Ok, nice.
and Using some kind of addressing, how would the table of DATA values
be accessed?

Accessed from where?
Nothing is clear from above.

http://www.parashift.com/c++-faq-lite/how-to-post.html

This newsgroup is specific to C++ issues. In case you have a problem
with C++ code, please post the code.
 
K

Karl Heinz Buchegger

monkeydragon said:
what is needed to implement a memory table, that will be accessed later
via reference "label".
for example,
i read the NUMBER of DATA the table will have and along with it the
DATA itself in a binary file.

and Using some kind of addressing, how would the table of DATA values
be accessed?

Can you rephrase that question as it is not clear (at least) for
me what you are asking. If you provide some example, things
are often easier to explain.

From the above I could guess you are looking for a std::map, but I may
be totally wrong also.
 
M

monkeydragon

accessed by the application itself, but it will be creating as many
tables that it might not be easy to manage. (the tables of values)

so for example:
DO_THE_TABLE_MACRO(&CURRENT_TABLE_LOCATOR);
// this in turn will create the table reading starting from the
"CURRENT_TABLE_LOCATOR" in the FILE
// and then update the CURRENT_TABLE_LOCATOR

take a look:
http://tinypic.com/imjpd3.jpg
 
K

Karl Heinz Buchegger

monkeydragon said:
accessed by the application itself, but it will be creating as many
tables that it might not be easy to manage. (the tables of values)

so for example:
DO_THE_TABLE_MACRO(&CURRENT_TABLE_LOCATOR);
// this in turn will create the table reading starting from the
"CURRENT_TABLE_LOCATOR" in the FILE
// and then update the CURRENT_TABLE_LOCATOR

take a look:
http://tinypic.com/imjpd3.jpg

Sorry. I still not sure what you are asking for.

From the image, it seems you are looking for an array of arrays.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top