Re: [boost] Re: circular_buffer ver. 3.3 [long]

2003-09-02 Thread Jan Gaspar
d.) > > There's one good reason to avoid catch(...): on Win32 it interferes with > system exceptions handling. If someone uses __try/__catch/__finally, > these won't be called after throw; and also it won't be possible > to fix and continue system exception. > > I

[boost] circular_buffer ver. 3.3

2003-08-22 Thread Jan Gaspar
e. > Small note: the source code contains some tabs. Boost requirement is to use > spaces only. > I forgot. Now should be everything OK. S pozdravom, Jano P.S. I will be on holiday next week. -- Jan Gaspar | [EMAIL PROTECTED] Whitest

Re: [boost] Re: circular_buffer update

2003-08-04 Thread Jan Gaspar
Hi Pavel, I agree with most of your comments. > > 2. in function cb_iterator::operator -(), shouldn't it be std::less instead > of less? (actually I do not see why < isn't enough here). I call less() just because efficiency reasons. If I called operator < it would result in unnecessary calls

[boost] circular_buffer update

2003-07-29 Thread Jan Gaspar
pt one special case when the capacity == 0). Regards, Jan -- Jan Gaspar | [EMAIL PROTECTED] Whitestein Technologies | www.whitestein.com Panenska 28 | SK-81103 Bratislava | Slovak Republic Tel +421(2)5930-0735 | Fax +421(2)5443-5512 ___ Unsubscribe &a

Re: [boost] circular_buffer: minor feature request

2003-07-23 Thread Jan Gaspar
could present result as (nonresizable) vector<> > > Alternatives are simple but much more CPU/memory expensive. > > /Pavel > > _______ > Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost -- Jan Gaspar | [EMA

Re: [boost] Re: Formal Review Request: circular_buffer

2003-07-22 Thread Jan Gaspar
re the semantics of inserting a huge sequence to > the middle of a circular buffer? What exactly gets kept? > > Nigel > > ___ > Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost -- Jan Gaspar | [EMAIL PROTECT

Re: [boost] Re: Re: Formal Review Request: circular_buffer [long]

2003-07-22 Thread Jan Gaspar
functions like insert/erase cannot use >reverse iterators (similarly to standard >containers). > >Some structures like LRU could find use for it. > I don't want to bother with this. > > -- > > "Jan Gaspar&

Re: [boost] circular_buffer: minor feature request

2003-07-22 Thread Jan Gaspar
when buffer is being saved to file or written to socket > - special purpose adaptor could present result as (nonresizable) vector<> > > Alternatives are simple but much more CPU/memory expensive. > > /Pavel > > ___________ > Unsubscribe

Re: [boost] Quick thought on circular_buffer

2003-07-22 Thread Jan Gaspar
gt; > Daryle > > ___ > Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost -- Jan Gaspar | [EMAIL PROTECTED] Whitestein Technologies | www.whitestein.com Panenska 28 | SK-81103 Bratislava | Slovak Republic Tel +421(2)5930

Re: [boost] Re: Formal Review Request: circular_buffer

2003-07-22 Thread Jan Gaspar
rom some other file, or should I simply > hand-edit it? > > Cheers, > > Nigel > > ___ > Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost -- Jan Gaspar | [EMAIL PROTECTED] Whitestein Technologies | www

[boost] circular buffer

2003-07-16 Thread Jan Gaspar
uff(new_size, begin(), pos); buff.insert(buff.end(), first, last); buff.insert(buff.end(), pos, end()); m_buff.swap(buff); } else { m_buff.insert(pos, first, last); } } }; Regards, Jan -- Jan Gaspar | [EMAIL PROTECTED] Whitestein

Re: [boost] Re: Review Request: cyclic_buffer

2003-06-11 Thread Jan Gaspar
Hi all Cyclics! I want to summarize what we have till now. What should be changed in the proposed cyclic_buffer. - Rename to circular_buffer. - Add push_front() and pop_front(). - resize() to behave similarly to vector::resize(). - change_capacity() becomes again change_capacity(). I think the

Re: [boost] Re: Review Request: cyclic_buffer

2003-06-10 Thread Jan Gaspar
Hi Howard! Howard Hinnant wrote: > For the general container I propose that insert reallocates if size() > would exceed capacity (invalidating all iterators, pointers and > references). And if size() does not exceed capacity, all iterators, > pointers and references are still invalidated, unless

Re: [boost] Re: Review Request: cyclic_buffer

2003-06-10 Thread Jan Gaspar
> } >} > >change_capacity(size_type new_cap) >{ > if (new_cap > c.capacity()) > c.reserve(new_cap); > else if (new_cap < c.capacity()) > { > c.erase(c.begin(), c.begin() + c.size() - new_cap); > Container t

Re: [boost] Re: Review Request: cyclic_buffer

2003-06-09 Thread Jan Gaspar
vector and keep only first n items. > > - change_capacity() becomes reserve() > > For consistency with std::vector. > > Otherwise, should cyclic_buffer be named cyclic_fifo ? > > Cheers, and thanks for being open to input and r

Re: [boost] Re: Review Request: cyclic_buffer

2003-06-09 Thread Jan Gaspar
Hi Nigel, Nigel Stewart wrote: > > So the issue here seems to be whether a cyclic_buffer > should be circular-list-like or FIFO-like. Given > that there is already a queue container adapter, > perhaps it's worth listing some applications > of cyclic_buffer

Re: [boost] Review Request: cyclic_buffer

2003-06-06 Thread Jan Gaspar
st code? > > Thanks > > Paul > > Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK > +44 1539 561830 Mobile +44 7714 33 02 04 > Mobile mailto:[EMAIL PROTECTED] > mailto:[EMAIL PROTECTED] > > | -Original Message- > | From: [EMAIL PROTEC

Re: [boost] Review Request: cyclic_buffer

2003-06-05 Thread Jan Gaspar
ECTED] > > | -Original Message- > | From: [EMAIL PROTECTED] > | [mailto:[EMAIL PROTECTED] Behalf Of Jan Gaspar > | Sent: Wednesday, June 04, 2003 10:49 AM > | To: [EMAIL PROTECTED] > | Subject: [boost] Review Request: cyclic_buffer > | > | > | Hi all! > | >

Re: [boost] Review Request: cyclic_buffer

2003-06-05 Thread Jan Gaspar
TED] > > | -Original Message- > | From: [EMAIL PROTECTED] > | [mailto:[EMAIL PROTECTED] Behalf Of Jan Gaspar > | Sent: Wednesday, June 04, 2003 10:49 AM > | To: [EMAIL PROTECTED] > | Subject: [boost] Review Request: cyclic_buffer > | > | > | Hi all! > | &g

[boost] Review Request: cyclic_buffer

2003-06-04 Thread Jan Gaspar
Hi all! The cyclic buffer implementation and documentation (cyclic_buffer.zip) can be found at: http://groups.yahoo.com/group/boost/files/ Regards, Jan -- Jan Gaspar | [EMAIL PROTECTED] Whitestein Technologies | www.whitestein.com Panenska 28 | SK-81103 Bratislava | Slovak Republic Tel +421(2

Re: [boost] cyclic buffer

2002-11-15 Thread Jan Gaspar
Rob Stewart wrote: > From: Jan Gaspar <[EMAIL PROTECTED]> > > > > This is something different - it is an iterator; if it reaches an end of the >container it shifts to its beginning. Cyclic buffer is a > > container with different capabilities. I can send it to y