Hyrum K. Wright hyrum_wright_at_mail.utexas.edu
mailto:hyrum_wright_at_mail.utexas.edu?Subject=Re:%20object-model:%20Wrapping%20Subversion%20C-structs%20in%20C%2B%2B
wrote:
For the C++ folks out there, I've got a question about an approach to
take on the object-model branch. At issue is how
Hyrum K. Wright hyrum_wri...@mail.utexas.edu:
This could get ugly.
Creating and destroying pools all over the place could get ugly, but
it's necessary evil because all of our object creation / duplication
functions all require a pool. An alternative would be a set of
functions returning
Branko Čibej br...@xbc.nu:
I suggest you take a look at auto_ptr and auto_ptr_ref.
auto_ptr is very limited in that it allows only a single pointer to a
single object.
You need a similar pair of classes that will deal with pools,
...but the idea of smart pointers is the correct one here,
On 25.09.2010 10:34, Steinar Bang wrote:
Branko Čibej br...@xbc.nu:
I suggest you take a look at auto_ptr and auto_ptr_ref.
auto_ptr is very limited in that it allows only a single pointer to a
single object.
Which is why I mentioned auto_ptr_ref, which is a reference to an
auto_ptr
Steinar Bang s...@dod.no:
What exactly is it you want to do? Have a thin C++ wrapper around C
objects, where the C objects do the work? Why do you want to?
Ie. what benefit do you expect to get, compared to just using the C
objects from inside your C++ code?
Another pattern that I've used
On Sat, Sep 25, 2010 at 3:30 AM, Steinar Bang s...@dod.no wrote:
Hyrum K. Wright hyrum_wri...@mail.utexas.edu:
This could get ugly.
Creating and destroying pools all over the place could get ugly, but
it's necessary evil because all of our object creation / duplication
functions all require
On 24.09.2010 04:05, Hyrum K. Wright wrote:
On Thu, Sep 23, 2010 at 2:20 PM, Branko Čibej br...@xbc.nu wrote:
On 22.09.2010 21:41, Hyrum K. Wright wrote:
[ apologizes for the somewhat stream-of-conscious nature of these mails ]
On Wed, Sep 22, 2010 at 7:16 PM, Hyrum K. Wright
On Fri, Sep 24, 2010 at 1:02 AM, Branko Čibej br...@xbc.nu wrote:
On 24.09.2010 04:05, Hyrum K. Wright wrote:
On Thu, Sep 23, 2010 at 2:20 PM, Branko Čibej br...@xbc.nu wrote:
On 22.09.2010 21:41, Hyrum K. Wright wrote:
[ apologizes for the somewhat stream-of-conscious nature of these mails
On 24.09.2010 18:43, Hyrum K. Wright wrote:
All of the Pools used to hold the child objects are children of the
global parent (created with NULL as the parent pool). As such, they
are independent of each other, and won't have destruction order
issues. It's pretty wasteful in terms of the
On Fri, Sep 24, 2010 at 12:04 PM, Branko Čibej br...@xbc.nu wrote:
On 24.09.2010 18:43, Hyrum K. Wright wrote:
All of the Pools used to hold the child objects are children of the
global parent (created with NULL as the parent pool). As such, they
are independent of each other, and won't have
On 22.09.2010 21:41, Hyrum K. Wright wrote:
[ apologizes for the somewhat stream-of-conscious nature of these mails ]
On Wed, Sep 22, 2010 at 7:16 PM, Hyrum K. Wright
hyrum_wri...@mail.utexas.edu wrote:
On Wed, Sep 22, 2010 at 5:35 PM, Hyrum K. Wright
hyrum_wri...@mail.utexas.edu wrote:
On Thu, Sep 23, 2010 at 2:20 PM, Branko Čibej br...@xbc.nu wrote:
On 22.09.2010 21:41, Hyrum K. Wright wrote:
[ apologizes for the somewhat stream-of-conscious nature of these mails ]
On Wed, Sep 22, 2010 at 7:16 PM, Hyrum K. Wright
hyrum_wri...@mail.utexas.edu wrote:
On Wed, Sep 22, 2010
For the C++ folks out there, I've got a question about an approach to
take on the object-model branch. At issue is how to wrap the various
C structures returned to callers, particularly in a backward
compatible manner. Currently, I'm looking at svn_wc_notify_t *. As I
see it, there are a few
On Wed, Sep 22, 2010 at 5:35 PM, Hyrum K. Wright
hyrum_wri...@mail.utexas.edu wrote:
For the C++ folks out there, I've got a question about an approach to
take on the object-model branch. At issue is how to wrap the various
C structures returned to callers, particularly in a backward
[ apologizes for the somewhat stream-of-conscious nature of these mails ]
On Wed, Sep 22, 2010 at 7:16 PM, Hyrum K. Wright
hyrum_wri...@mail.utexas.edu wrote:
On Wed, Sep 22, 2010 at 5:35 PM, Hyrum K. Wright
hyrum_wri...@mail.utexas.edu wrote:
For the C++ folks out there, I've got a question
15 matches
Mail list logo