diff --git a/Doc/Manual/CSharp.html b/Doc/Manual/CSharp.html index d618f5a08..bb3524ac5 100644 --- a/Doc/Manual/CSharp.html +++ b/Doc/Manual/CSharp.html @@ -677,7 +677,7 @@ As a result, we get the following method in the module class:
public static void myArrayCopy(int[] sourceArray, int[] targetArray, int nitems) {
- examplePINVOKE.myArrayCopy(sourceArray, targetArray, nitems);
+ examplePINVOKE.myArrayCopy(sourceArray, targetArray, nitems);
}
int *Foo_x_get(Foo *self) {
- return self->x;
+ return self->x;
};
Foo *Bar_f_get(Bar *b) {
- return &b->f;
+ return &b->f;
}
void Bar_f_set(Bar *b, Foo *val) {
- b->f = *val;
+ b->f = *val;
}
%typemap(out) int {
- $result = sv_newmortal();
- set_setiv($result, (IV) $1);
- argvi++;
+ $result = sv_newmortal();
+ set_setiv($result, (IV) $1);
+ argvi++;
}
#define SIZE 8
typedef struct {
- int values[SIZE];
- ...
+ int values[SIZE];
+ ...
} Foo;
%typemap(memberin) int [SIZE] {
- int i;
- for (i = 0; i < SIZE; i++) {
- $1[i] = $input[i];
- }
+ int i;
+ for (i = 0; i < SIZE; i++) {
+ $1[i] = $input[i];
+ }
}
sub dot_product {
- my @args = @_;
- $args[0] = tied(%{$args[0]}); # Get the real pointer values
- $args[1] = tied(%{$args[1]});
- my $result = vectorc::dot_product(@args);
- return $result;
+ my @args = @_;
+ $args[0] = tied(%{$args[0]}); # Get the real pointer values
+ $args[1] = tied(%{$args[1]});
+ my $result = vectorc::dot_product(@args);
+ return $result;
}
%exception {
- try { $action }
- catch (Swig::DirectorException &e) { SWIG_fail; }
+ try { $action }
+ catch (Swig::DirectorException &e) { SWIG_fail; }
}
class Foo {
public:
- ...
+ ...
};
class FooContainer {
public:
- void addFoo(Foo *);
- ...
+ void addFoo(Foo *);
+ ...
};
@@ -1204,8 +1204,8 @@ suitable exception handler:
%exception {
- try { $action }
- catch (Swig::DirectorException &e) { SWIG_fail; }
+ try { $action }
+ catch (Swig::DirectorException &e) { SWIG_fail; }
}
struct Bar {
- int x[16];
+ int x[16];
};
class Foo {
public:
- Foo();
- Foo(const Foo &);
- ...
+ Foo();
+ Foo(const Foo &);
+ ...
};
@@ -1950,11 +1950,11 @@ For example:
%rename(Bar_spam) Bar::spam;
namespace Foo {
- int spam();
+ int spam();
}
namespace Bar {
- int spam();
+ int spam();
}
@@ -2165,9 +2165,9 @@ have a class like this
class Foo {
public:
- int x;
- int spam(int);
- ...
+ int x;
+ int spam(int);
+ ...
@@ -2178,19 +2178,19 @@ then SWIG transforms it into a set of low-level procedural wrappers. For example
Foo *new_Foo() {
- return new Foo();
+ return new Foo();
}
void delete_Foo(Foo *f) {
- delete f;
+ delete f;
}
int Foo_x_get(Foo *f) {
- return f->x;
+ return f->x;
}
void Foo_x_set(Foo *f, int value) {
- f->x = value;
+ f->x = value;
}
int Foo_spam(Foo *f, int arg1) {
- return f->spam(arg1);
+ return f->spam(arg1);
}
typedef struct {
- PyObject_HEAD
- PyObject *dict;
- PyObject *args;
- PyObject *message;
+ PyObject_HEAD
+ PyObject *dict;
+ PyObject *args;
+ PyObject *message;
} PyBaseExceptionObject;
typedef struct {
- PyObject_HEAD
- void *ptr;
- swig_type_info *ty;
- int own;
- PyObject *next;
- PyObject *dict;
+ PyObject_HEAD
+ void *ptr;
+ swig_type_info *ty;
+ int own;
+ PyObject *next;
+ PyObject *dict;
} SwigPyObject;
class MyException {
public:
- MyException (const char *msg_);
- ~MyException ();
+ MyException (const char *msg_);
+ ~MyException ();
- const char *what () const;
+ const char *what () const;
private:
- char *msg;
+ char *msg;
};
@@ -2371,9 +2371,9 @@ strings, you can define an 'operator+ (const char*)' method :
class MyString {
public:
- MyString (const char *init);
- MyString operator+ (const char *other) const;
- ...
+ MyString (const char *init);
+ MyString operator+ (const char *other) const;
+ ...
};
@@ -2472,11 +2472,12 @@ slot entries. For example, suppose you have this class:
class Twit {
public:
- Twit operator+ (const Twit& twit) const;
+ Twit operator+ (const Twit& twit) const;
- // Forward to operator+
- Twit add (const Twit& twit) const
- { return *this + twit; }
+ // Forward to operator+
+ Twit add (const Twit& twit) const {
+ return *this + twit;
+ }
};
@@ -2635,8 +2636,8 @@ ownership of the result. For example:
class Foo {
public:
- Foo();
- Foo bar();
+ Foo();
+ Foo bar();
};
@@ -2665,9 +2666,9 @@ they came from. Therefore, the ownership is set to zero. For example:
class Foo {
public:
- ...
- Foo *spam();
- ...
+ ...
+ Foo *spam();
+ ...
};
@@ -2706,8 +2707,8 @@ or global variable. For example, consider this interface:
%module example
struct Foo {
- int value;
- Foo *next;
+ int value;
+ Foo *next;
};
Foo *head = 0;
@@ -2938,15 +2939,15 @@ the methods one() and two() (but not three()):
%feature("director") Foo;
class Foo {
public:
- Foo(int foo);
- virtual ~Foo();
- virtual void one();
- virtual void two();
+ Foo(int foo);
+ virtual ~Foo();
+ virtual void one();
+ virtual void two();
};
class Bar: public Foo {
public:
- virtual void three();
+ virtual void three();
};
@@ -3090,8 +3091,8 @@ public:
};
class FooContainer {
public:
- void addFoo(Foo *);
- ...
+ void addFoo(Foo *);
+ ...
};
@@ -3161,8 +3162,8 @@ suitable exception handler:
%exception {
- try { $action }
- catch (Swig::DirectorException &e) { SWIG_fail; }
+ try { $action }
+ catch (Swig::DirectorException &e) { SWIG_fail; }
}
class Foo {
…
- virtual const int& bar();
+ virtual const int& bar();
…
};
@@ -3257,7 +3258,7 @@ types, wherever possible, for example
class Foo {
…
- virtual int bar();
+ virtual int bar();
…
};
@@ -3510,7 +3511,7 @@ def bar(*args):
class Foo {
public:
- int bar(int x);
+ int bar(int x);
};
@@ -3547,7 +3548,7 @@ proxy, just before the return statement.
class Foo {
public:
- int bar(int x);
+ int bar(int x);
};
@@ -3576,7 +3577,7 @@ SWIG version 1.3.28 you can use the directive forms
class Foo {
public:
- int bar(int x);
+ int bar(int x);
};
@@ -3605,8 +3606,8 @@ as it will then get attached to all the overloaded C++ methods. For example:
class Foo {
public:
- int bar(int x);
- int bar();
+ int bar(int x);
+ int bar();
};
diff --git a/Doc/Manual/SWIG.html b/Doc/Manual/SWIG.html
index cff4e7dc2..a43ff94b5 100644
--- a/Doc/Manual/SWIG.html
+++ b/Doc/Manual/SWIG.html
@@ -1236,9 +1236,9 @@ creating a wrapper equivalent to the following:
double wrap_dot_product(Vector *a, Vector *b) {
- Vector x = *a;
- Vector y = *b;
- return dot_product(x, y);
+ Vector x = *a;
+ Vector y = *b;
+ return dot_product(x, y);
}
struct Vector *new_Vector() {
- return (Vector *) calloc(1, sizeof(struct Vector));
+ return (Vector *) calloc(1, sizeof(struct Vector));
}
void delete_Vector(struct Vector *obj) {
- free(obj);
+ free(obj);
}
WORD Foo_w_get(Foo *f) {
- return f->w;
+ return f->w;
}
void Foo_w_set(FOO *f, WORD value) {
- f->w = value;
+ f->w = value;
}
// Add a new attribute to Vector
%extend Vector {
- const double magnitude;
+ const double magnitude;
}
// Now supply the implementation of the Vector_magnitude_get function
%{
diff --git a/Doc/Manual/SWIGPlus.html b/Doc/Manual/SWIGPlus.html
index 87fe30fa8..da4f54603 100644
--- a/Doc/Manual/SWIGPlus.html
+++ b/Doc/Manual/SWIGPlus.html
@@ -4042,7 +4042,7 @@ namespace foo {
typedef int Integer;
class bar {
public:
- ...
+ ...
};
}
diff --git a/Doc/Manual/Tcl.html b/Doc/Manual/Tcl.html
index 31408b312..41cb78661 100644
--- a/Doc/Manual/Tcl.html
+++ b/Doc/Manual/Tcl.html
@@ -958,7 +958,7 @@ Foo *BarToFoo(Bar *b) {
}
Foo *IncrFoo(Foo *f, int i) {
- return f+i;
+ return f+i;
}
%}
@@ -1054,7 +1054,7 @@ example, consider this:
struct Bar {
- int x[16];
+ int x[16];
};
class Foo {
public:
- Foo();
- Foo(const Foo &);
- ...
+ Foo();
+ Foo(const Foo &);
+ ...
};
@@ -1693,11 +1693,11 @@ For example:
%rename(Bar_spam) Bar::spam;
namespace Foo {
- int spam();
+ int spam();
}
namespace Bar {
- int spam();
+ int spam();
}
@@ -1886,19 +1886,19 @@ then SWIG transforms it into a set of low-level procedural wrappers. For example
Foo *new_Foo() {
- return new Foo();
+ return new Foo();
}
void delete_Foo(Foo *f) {
- delete f;
+ delete f;
}
int Foo_x_get(Foo *f) {
- return f->x;
+ return f->x;
}
void Foo_x_set(Foo *f, int value) {
- f->x = value;
+ f->x = value;
}
int Foo_spam(Foo *f, int arg1) {
- return f->spam(arg1);
+ return f->spam(arg1);
}
class Foo {
public:
- Foo();
- Foo bar();
+ Foo();
+ Foo bar();
};
@@ -1975,9 +1975,9 @@ they came from. Therefore, the ownership is set to zero. For example:
class Foo {
public:
- ...
- Foo *spam();
- ...
+ ...
+ Foo *spam();
+ ...
};
@@ -2011,8 +2011,8 @@ or global variable. For example, consider this interface:
%module example
struct Foo {
- int value;
- Foo *next;
+ int value;
+ Foo *next;
};
Foo *head = 0;
@@ -2465,9 +2465,9 @@ you might define a typemap like this:
%module example
%typemap(in) int {
- if (Tcl_GetIntFromObj(interp, $input, &$1) == TCL_ERROR)
- return TCL_ERROR;
- printf("Received an integer : %d\n", $1);
+ if (Tcl_GetIntFromObj(interp, $input, &$1) == TCL_ERROR)
+ return TCL_ERROR;
+ printf("Received an integer : %d\n", $1);
}
%inline %{
extern int fact(int n);
@@ -2585,7 +2585,7 @@ like this:
%typemap(out) int {
- Tcl_SetObjResult(interp, Tcl_NewIntObj($1));
+ Tcl_SetObjResult(interp, Tcl_NewIntObj($1));
}