Fragments
A Collection of Statements, kinda
Ref-counting Pointers

 
Post new topic   Reply to topic    Fragments Forum Index -> Other Articles
View previous topic :: View next topic  
Author Message
martin
Site Admin


Joined: 19 Jan 2004
Posts: 455
Location: In the middle of Sweden

Reply with quote

PostPosted: Fri May 14, 2004 1:57 pm    Post subject: Ref-counting Pointers

Reference counting pointer templates (some call them reference counted pointers for some agrammatical reason) are a special type of smart pointer templates in C++, especially suited for the application of the facade pattern in the design of COM servers. (If "facade pattern" doesn't ring a bell, you're in urgent need of "Design Patterns". That's a book, by the way.) When such COM servers make use of containers, it's much easier to store non-COM objects as pointer objects in those containers and only wrap them in COM-objects once they need to be delivered to the COM client. Reference counted pointer templates, as distinct from other C++ pointer templates, make it easy to just use a single instance of a data object that is then both kept in a container (STL or otherwise) and at the same time given back to the COM client.[full article]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Fragments Forum Index -> Other Articles All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Theme created by K.Nevelsteen