diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile | 6 | ||||
-rw-r--r-- | examples/example.cfg | 1 | ||||
-rw-r--r-- | examples/example.tag | 2 | ||||
-rw-r--r-- | examples/resdefine.cfg | 6 | ||||
-rw-r--r-- | examples/resdefine.cpp | 21 | ||||
-rw-r--r-- | examples/templ.cpp | 10 |
6 files changed, 7 insertions, 39 deletions
diff --git a/examples/Makefile b/examples/Makefile index dd97c2c..1bbc2c1 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -17,7 +17,6 @@ all: class/html/index.html \ jdstyle/html/index.html \ structcmd/html/index.html \ autolink/html/index.html \ - resdefine/html/index.html \ restypedef/html/index.html \ afterdoc/html/index.html \ template/html/index.html \ @@ -26,7 +25,7 @@ all: class/html/index.html \ clean: rm -rf class define enum file func page relates author \ par overload example include qtstyle jdstyle structcmd \ - autolink tag resdefine restypedef afterdoc template + autolink tag restypedef afterdoc template class/html/index.html: class.h class.cfg $(DOXYDIR)/doxygen class.cfg @@ -81,9 +80,6 @@ tag/html/index.html: tag.cpp tag.cfg sed -e "1,1s.perl.$(PERL).g" tag/html/installdox >tag/html/installdox.perl cd tag/html ; $(PERL) installdox.perl -lexample.tag@../../example/html -resdefine/html/index.html: resdefine.cpp resdefine.cfg - $(DOXYDIR)/doxygen resdefine.cfg - restypedef/html/index.html: restypedef.cpp restypedef.cfg $(DOXYDIR)/doxygen restypedef.cfg diff --git a/examples/example.cfg b/examples/example.cfg index a30b3ff..dc4cb86 100644 --- a/examples/example.cfg +++ b/examples/example.cfg @@ -1,5 +1,6 @@ PROJECT_NAME = "Example Command" OUTPUT_DIRECTORY = example +GENERATE_TAGFILE = example.tag GENERATE_LATEX = NO GENERATE_MAN = NO INPUT = example.cpp diff --git a/examples/example.tag b/examples/example.tag index 3998b90..d30de7b 100644 --- a/examples/example.tag +++ b/examples/example.tag @@ -1,2 +1,2 @@ ->Test: +>Test: "class_test.html" example a0 "()" diff --git a/examples/resdefine.cfg b/examples/resdefine.cfg deleted file mode 100644 index 009a4e8..0000000 --- a/examples/resdefine.cfg +++ /dev/null @@ -1,6 +0,0 @@ -PROJECT_NAME = "Resolving Defines" -OUTPUT_DIRECTORY = resdefine -GENERATE_LATEX = NO -GENERATE_MAN = NO -INPUT = resdefine.cpp -QUIET = YES diff --git a/examples/resdefine.cpp b/examples/resdefine.cpp deleted file mode 100644 index 05a77c5..0000000 --- a/examples/resdefine.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#define ExportedName InternalName - -class InternalName -{ - public: - InternalName() {} - ~InternalName() {} -}; - -/*! \class ExportedName - * This class's real name is InternalName but everyone should use - * ExportedName. - */ - -/*! \fn ExportedName::ExportedName() - * The constructor - */ - -/*! \fn ExportedName::~ExportedName() - * The destructor - */ diff --git a/examples/templ.cpp b/examples/templ.cpp index c838c6e..3250abc 100644 --- a/examples/templ.cpp +++ b/examples/templ.cpp @@ -1,10 +1,10 @@ + /*! A template class */ template<class T,int i=100> class Test { public: Test(); Test(const Test &); - friend void friendTempFunc(Test &, int=5); }; /*! complete specialization */ @@ -15,7 +15,7 @@ template<> class Test<void *,200> }; /*! A partial template specialization */ -template<class T> class Test< T * > : public Test<void *,200> +template<class T> class Test<T *> : public Test<void *,200> { public: Test(); @@ -27,11 +27,9 @@ template<class T,int i> Test<T,i>::Test() {} /*! The copy constructor */ template<class T,int i> Test<T,i>::Test(const Test<T,i> &t) {} -/*! A friend function of a template class */ -template<class T,int i> void friendTempFunc(Test<T,i> &t,int a) {} +/*! The constructor of the partial specilization */ +template<class T> Test<T *>::Test() {} /*! The constructor of the specilization */ template<> Test<void *,200>::Test() {} -/*! The constructor of the partial specilization */ -template<class T> Test<T*>::Test() {} |