ATF-log archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

#34: Adopt the pimpl idiom



#34: Adopt the pimpl idiom
-------------------+--------------------------------------------------------
 Reporter:  jmmv   |       Owner:  jmmv
     Type:  task   |      Status:  new 
 Priority:  minor  |   Milestone:      
Component:  MISC   |     Version:      
 Keywords:         |  
-------------------+--------------------------------------------------------
 The pimpl idiom allows header files to not expose the implementation
 details of the data types defined in them.  This means that such headers
 don't need to pull in many other headers to get the definition of types.

 Additionally, by using the pimpl idiom, all objects will need to be kept
 in dynamic memory.  This has a small performance penalty but has the
 advantage that it's easy to track object leaks (missing calls to fini);
 how? just run the code under, e.g. valgrind.

-- 
Ticket URL: <https://www.julipedia.org/projects/atf/trac/ticket/34>
Automated Testing Framework <http://www.NetBSD.org/~jmmv/atf/>
Automated Testing Framework


Home | Main Index | Thread Index | Old Index