[Doxygen-users] Displaying classes contained by smart pointer like contained by raw pointer
Brought to you by:
dimitri
From: Jens F. <fra...@st...> - 2015-01-07 07:33:32
|
Since the discussion and workarounds in Getting shared_ptr refs to appear in collaboration diagrams..... Eric J. Holtman 2010-03-01 and Re: templates and association diagrams James Ahlborn 2004-08-04 there is now the C++11 (and 14) standard (and one dos not need boost for certain smart pointer anymore) and I am still searching for an solution which is showing an embedded class object by a smart pointer (std::shared_ptr, std::week_ptr, std::unique_ptr) like a usual raw pointer. When generating UML look diagrams raw pointer s are indicated which the usually diamond symbol, but classed embedded by smart pointers are not shown. The workarounds managed in the posts (namespace std { template<class T> class shared_ptr { T *dummy; }; } ) above are not solving the problem because they are showing an intermediate object "shared_ptr" between class and embedded class object. (Maybe there are some good reasons that doxygen will not show all classes embedded in containers but since smart pointer can be use and treated like raw pointers (and provide a lot of advantages) I know no reasons why they should not be displayed like raw pointers.) Best Regards, Jens Frangenheim |