Click here to Skip to main content
15,897,519 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: iterator. Pin
WREY3-Nov-03 17:55
WREY3-Nov-03 17:55 
GeneralRe: iterator. Pin
Stuart Dootson3-Nov-03 21:13
professionalStuart Dootson3-Nov-03 21:13 
GeneralRe: iterator. Pin
ZoogieZork3-Nov-03 19:01
ZoogieZork3-Nov-03 19:01 
GeneralRe: iterator. Pin
Stuart Dootson3-Nov-03 21:16
professionalStuart Dootson3-Nov-03 21:16 
GeneralRe: iterator. Pin
Jörgen Sigvardsson6-Nov-03 13:50
Jörgen Sigvardsson6-Nov-03 13:50 
GeneralRe: iterator. Pin
Stuart Dootson6-Nov-03 22:22
professionalStuart Dootson6-Nov-03 22:22 
GeneralRe: iterator. Pin
ZoogieZork3-Nov-03 19:14
ZoogieZork3-Nov-03 19:14 
GeneralRe: iterator. Pin
WREY3-Nov-03 22:16
WREY3-Nov-03 22:16 
Thank you for replying.

Your response was neither long-winded, nor off-beat; to the contrary, I found it to be eloquent and informative.

Since I'm dealing with iterators of vectors, maps and multimaps, I'll restrict myself to the way iterators pertain to them.

There is this huge vector of strings I'm dealing with that acts as the repository of data. The data are classified (meaning, categorized and differentiated) according to certain criteria. For example, when the program is handling blue data, they are deposited to the vector, but their place in the vector is being recorded in the multimap relative to where (in the vector) they are located. This means there is a beginning and an ending point the multimap record for each set of color data. The same is done for red data, green data, yellow data (etc.).

The idea is that someone can go to the multimap and find where all the red data reside in the vector. (The same for blue data, and green data, etc.) This is because each entry in the multimap records a beginning and an ending point for each different set of data. Those beginning and ending points relate to positions in the vector, and herein is where I'm experiencing iterator nightmares.

While the entry of data to the vector is done sequentially through a series of "push_back()'s", the simple idea of using "v.begin()" and "v.end()" to register boundaries for the various colors, isn't turning out to be a walk in the park. For example, "v.end()" of one color does not always lend itself valid as far as where the next color should begin. IOW, "v,end()" is NOT necessarily "v.begin()" for the next color, which has caused me to look at everything pertaining to iterators.

This is why I was thinking of checking the value of "v.end()" iterator to determine if there might be some break, or incorrect value being passed to "v.begin()" for the next set of color data.

BTW, I'm just using colors figuratively to distinguish one set of data from another.

Sigh | :sigh:

William

Fortes in fide et opere!
GeneralDlg's; Pin
Bo Hunter3-Nov-03 12:01
Bo Hunter3-Nov-03 12:01 
GeneralRe: Dlg's; Pin
Michael Dunn3-Nov-03 16:57
sitebuilderMichael Dunn3-Nov-03 16:57 
Questioncan i set the height of the item in CListViewCtrl and add a image for every item? Pin
HeartFriend2-Nov-03 21:07
HeartFriend2-Nov-03 21:07 
AnswerRe: can i set the height of the item in CListViewCtrl and add a image for every item? Pin
Dudi Avramov3-Nov-03 4:26
Dudi Avramov3-Nov-03 4:26 
AnswerRe: can i set the height of the item in CListViewCtrl and add a image for every item? Pin
Mil104-Nov-03 2:46
Mil104-Nov-03 2:46 
QuestionOLEDB issue new with MDAC 2.8? Pin
Steve S31-Oct-03 1:37
Steve S31-Oct-03 1:37 
GeneralDHTM binary behavior Pin
jackalwisdom30-Oct-03 22:38
jackalwisdom30-Oct-03 22:38 
GeneralReference to object using handle Pin
Member 60189830-Oct-03 18:24
Member 60189830-Oct-03 18:24 
GeneralContext Menu on web page shown ... Pin
byblostas30-Oct-03 11:11
byblostas30-Oct-03 11:11 
GeneralGetting notification on <CR> from Edit control Pin
janman30-Oct-03 0:49
janman30-Oct-03 0:49 
GeneralRe: Getting notification on <CR> from Edit control Pin
umeca741-Nov-03 1:29
umeca741-Nov-03 1:29 
GeneralRe: Getting notification on <CR> from Edit control Pin
janman1-Nov-03 22:42
janman1-Nov-03 22:42 
GeneralRe: Getting notification on <CR> from Edit control Pin
Simon Cooke4-Nov-03 12:29
Simon Cooke4-Nov-03 12:29 
GeneralATL NT Service module 49,7 bug Pin
User 3842129-Oct-03 21:33
User 3842129-Oct-03 21:33 
GeneralWindowing in ATL Pin
Sakusys29-Oct-03 16:57
Sakusys29-Oct-03 16:57 
GeneralRe: Windowing in ATL Pin
Michael Dunn29-Oct-03 19:14
sitebuilderMichael Dunn29-Oct-03 19:14 
GeneralCFile; Pin
Bo Hunter24-Oct-03 17:53
Bo Hunter24-Oct-03 17:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.