parsing fixes, helped behaviour of normal text descriptions in comments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10788 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d621d21617
commit
719abc61cc
6 changed files with 100 additions and 45 deletions
|
|
@ -1,8 +1,10 @@
|
|||
/** \file example.h
|
||||
/*! \file example.h
|
||||
comments on example.h */
|
||||
|
||||
/*! This is describing class Shape
|
||||
\author Bob
|
||||
\exception some sort of exception
|
||||
\see OtherShapes()
|
||||
*/
|
||||
|
||||
class Shape {
|
||||
|
|
@ -13,11 +15,12 @@ public:
|
|||
virtual ~Shape() {
|
||||
nshapes--;
|
||||
};
|
||||
double x, y; /*!< Important things */
|
||||
double x, y; /*!< Important variables */
|
||||
void move(double dx, double dy);
|
||||
virtual double area(void) = 0; /*!< \return the area */
|
||||
virtual double perimeter(void) = 0; /*!< \return the perimeter */
|
||||
static int nshapes;
|
||||
virtual double area(void) = 0; /*!< \return the area \exception exception description */
|
||||
virtual double perimeter(void) = 0; /*!< \exception exception description
|
||||
\return the perimeter */
|
||||
static int nshapes; /*!< Details about nshapes. */
|
||||
};
|
||||
/*! This is describing class Circle */
|
||||
class Circle : public Shape {
|
||||
|
|
@ -25,8 +28,9 @@ private:
|
|||
double radius;
|
||||
public:
|
||||
Circle(double r) : radius(r) { };
|
||||
virtual double area(void);
|
||||
virtual double perimeter(void);
|
||||
virtual double area(void); /*!< \return the area \exception exception description */
|
||||
virtual double perimeter(void); /*!< \exception exception description
|
||||
\return the perimeter */
|
||||
};
|
||||
|
||||
/*! This is describing class square */
|
||||
|
|
@ -34,7 +38,9 @@ class Square : public Shape {
|
|||
private:
|
||||
double width;
|
||||
public:
|
||||
Square(double w) : width(w) { };
|
||||
Square(double w) : width(w) { }; /*!< Create square
|
||||
/param w the width
|
||||
/exception some description */
|
||||
virtual double area(void);
|
||||
virtual double perimeter(void);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue