[Doxygen-users] C++ class declared in a function
Brought to you by:
dimitri
From: Barnes, P. D. <bar...@ll...> - 2014-10-13 23:40:29
|
Hello Folks, When I have a class declared *inside* a function, the docs for the class and members get merged into the function docs. Instead I expect the internal class to be documented separately, just a class declared within another class. Here's a minimal example, declaring an API with an abstract base class, then specializing within a templated function body: /// Base class with pure virtual function. class Base { /// Api declaration, including a pure virtual function: virtual void PureVirtual (void) = 0; }; // class Base /// Make a specialized instance of Base Base * MakeSpecialized (void) { /// Specialized class (shouldn't appear in MakeSpecialized) class Specialized : public Base { /// Specialized implementation (shouldn't appear in MakeSpecialized virtual void PureVirtual (void) { }; }; Specialized s = new Specialized; return s; } // MakeSpecialized Any ideas? Thanks, Peter _______________________________________________________________________ Dr. Peter D. Barnes, Jr. Physics Division Lawrence Livermore National Laboratory Physical and Life Sciences 7000 East Avenue, L-50 email: pdb...@ll... P. O. Box 808 Voice: (925) 422-3384 Livermore, California 94550 Fax: (925) 423-3371 |