www.digitalmars.com         C & C++   DMDScript  

c++.stlsoft - safearray's

reply "Pablo Aguilar" <paguilarg hotmail.com> writes:
have you thought about doing sequences over SAFEARRAY's?
Apr 12 2004
next sibling parent "Pablo Aguilar" <paguilarg hotmail.com> writes:
maybe not complete SAFEARRAY's but single dimension ones

 have you thought about doing sequences over SAFEARRAY's?

Apr 12 2004
prev sibling parent reply "Matthew" <matthew stlsoft.org> writes:
Many times. Just not got round to it.

I'll bump it up on the list. ;)

"Pablo Aguilar" <paguilarg hotmail.com> wrote in message
news:c5f5m8$1813$1 digitaldaemon.com...
 have you thought about doing sequences over SAFEARRAY's?

Apr 13 2004
next sibling parent reply "Pablo Aguilar" <paguilarg hotmail.com> writes:
"Matthew" <matthew stlsoft.org> wrote in message
news:c5g4k2$2ou5$1 digitaldaemon.com...
 Many times. Just not got round to it.

 I'll bump it up on the list. ;)

Glad to know... I cooked up something quick to work in the meantime... I'm finally getting into REALLY using stlsoft, and I'll be letting you know all comments I come up with.. To start, I've got a question about why you chose to do functionals (like listbox_add_inserter) as, well, functions, to use with for_each and not iterators (in the spirit of back_inserter and alike) to use with copy or transform? or can you use 'em like that anyway and I couldn't figure out how? I figure you thought about both ways, so I'm curious as to why the choice...
Apr 13 2004
next sibling parent reply "Matthew" <matthew stlsoft.org> writes:
Here's a very rough first draft. It presents all elements from N dimensions
in a single iterable (forward or backwards) sequence. It does not own the
SAFEARRAY.

"Pablo Aguilar" <paguilarg hotmail.com> wrote in message
news:c5hoe6$243r$1 digitaldaemon.com...
 "Matthew" <matthew stlsoft.org> wrote in message
 news:c5g4k2$2ou5$1 digitaldaemon.com...
 Many times. Just not got round to it.

 I'll bump it up on the list. ;)

Glad to know... I cooked up something quick to work in the meantime... I'm finally getting into REALLY using stlsoft, and I'll be letting you

 all comments I come up with..
 To start, I've got a question about why you chose to do functionals (like
 listbox_add_inserter) as, well, functions, to use with for_each and not
 iterators (in the spirit of back_inserter and alike) to use with copy or
 transform? or can you use 'em like that anyway and I couldn't figure out
 how? I figure you thought about both ways, so I'm curious as to why the
 choice...

Apr 17 2004
parent reply "Pablo Aguilar" <paguilarg hotmail.com> writes:
Seems to be working fine...

It treats the elements in all dimensions as a single sequence, right? works
fine for me right now, I've got single dimension arrays only...

Great work, thanks...

 Here's a very rough first draft. It presents all elements from N

 in a single iterable (forward or backwards) sequence. It does not own the
 SAFEARRAY.

Apr 19 2004
parent "Matthew" <matthew.hat stlsoft.dot.org> writes:
Pleasure.

Naturally I'll look to expand it in several ways in the future, but I think
it's a good STL-isation of safe-arrays for the moment. Glad that you agree
.... ;)

"Pablo Aguilar" <paguilarg hotmail.com> wrote in message
news:c617n2$19ba$1 digitaldaemon.com...
 Seems to be working fine...

 It treats the elements in all dimensions as a single sequence, right?

 fine for me right now, I've got single dimension arrays only...

 Great work, thanks...

 Here's a very rough first draft. It presents all elements from N

 in a single iterable (forward or backwards) sequence. It does not own


 SAFEARRAY.


Apr 20 2004
prev sibling parent "Matthew" <matthew.hat stlsoft.dot.org> writes:
"Pablo Aguilar" <paguilarg hotmail.com> wrote in message
news:c5hoe6$243r$1 digitaldaemon.com...
 "Matthew" <matthew stlsoft.org> wrote in message
 news:c5g4k2$2ou5$1 digitaldaemon.com...
 Many times. Just not got round to it.

 I'll bump it up on the list. ;)

Glad to know... I cooked up something quick to work in the meantime... I'm finally getting into REALLY using stlsoft, and I'll be letting you know all comments I come up with.. To start, I've got a question about why you chose to do functionals (like listbox_add_inserter) as, well, functions, to use with for_each and not iterators (in the spirit of back_inserter and alike) to use with copy or transform? or can you use 'em like that anyway and I couldn't figure out how? I figure you thought about both ways, so I'm curious as to why the choice...

Habit and truculence, probably. I am aware that I do bias towards for_each() a lot. It would be *very* helpful if you could identify a few cases where you think it's inappropriate, and suggest an alternative (presumably based on std::copy or std::transform). That could help me a lot. Cheers Matthew
Apr 25 2004
prev sibling parent "Javier Estrada" <ljestrada hotmail.com> writes:
Maybe you'd want to check Andrei Alexandrecu's automation_vector.  It is a
very complete wrapper over SAFEARRAY with an STL interface.

Try:
http://www.moderncppdesign.com

Then go to Publications.  The article was published on CUJ in April 1999.

There's a minor bump if you compile the source code with VC7 or VC7.1
compilers, but nothing major.

Regards,

Javier Estrada

mailto:developeer.com ljestrada
Apr 27 2004