Extra Examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
719abc61cc
commit
ad0a3d9179
9 changed files with 63 additions and 16 deletions
|
|
@ -8,6 +8,12 @@
|
|||
#include "example.h"
|
||||
%}
|
||||
|
||||
/*! Class vector description
|
||||
\author Fred
|
||||
\exception something random
|
||||
\since 1.0
|
||||
\name ignoreme
|
||||
\see something */
|
||||
class Vector {
|
||||
public:
|
||||
Vector(double x, double y, double z);
|
||||
|
|
@ -15,15 +21,18 @@ public:
|
|||
char *print();
|
||||
};
|
||||
|
||||
/* This helper function calls an overloaded operator */
|
||||
/** This helper function calls an overloaded operator */
|
||||
%inline %{
|
||||
Vector addv(Vector &a, Vector &b) {
|
||||
return a+b;
|
||||
}
|
||||
%}
|
||||
|
||||
/* Wrapper around an array of vectors class */
|
||||
|
||||
/*! Class Vector Array
|
||||
\exception something random
|
||||
\since 1.3
|
||||
\see something
|
||||
\author Fred */
|
||||
class VectorArray {
|
||||
public:
|
||||
VectorArray(int maxsize);
|
||||
|
|
@ -44,3 +53,6 @@ public:
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue