summaryrefslogtreecommitdiff
path: root/doc/swig/test/Farray.h
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-03-13 11:56:50 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-03-13 11:56:50 -0600
commit9c4602f98096abed5632d5fd1f12549a2c5b360c (patch)
treeb154e4d7a7fff6e491216b2e3750d238645903e2 /doc/swig/test/Farray.h
parentdfe6c7ed74c087c0deabfd4f7a50224498840838 (diff)
parentf151004567f61c1a613dd78a87521adf795a4942 (diff)
downloadnumpy-9c4602f98096abed5632d5fd1f12549a2c5b360c.tar.gz
Merge pull request #4487 from charris/move-swig-to-tools-directory
Move swig to tools directory
Diffstat (limited to 'doc/swig/test/Farray.h')
-rw-r--r--doc/swig/test/Farray.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/doc/swig/test/Farray.h b/doc/swig/test/Farray.h
deleted file mode 100644
index 4199a287c..000000000
--- a/doc/swig/test/Farray.h
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef FARRAY_H
-#define FARRAY_H
-
-#include <stdexcept>
-#include <string>
-
-class Farray
-{
-public:
-
- // Size constructor
- Farray(int nrows, int ncols);
-
- // Copy constructor
- Farray(const Farray & source);
-
- // Destructor
- ~Farray();
-
- // Assignment operator
- Farray & operator=(const Farray & source);
-
- // Equals operator
- bool operator==(const Farray & other) const;
-
- // Length accessors
- int nrows() const;
- int ncols() const;
-
- // Set item accessor
- long & operator()(int i, int j);
-
- // Get item accessor
- const long & operator()(int i, int j) const;
-
- // String output
- std::string asString() const;
-
- // Get view
- void view(int* nrows, int* ncols, long** data) const;
-
-private:
- // Members
- int _nrows;
- int _ncols;
- long * _buffer;
-
- // Default constructor: not implemented
- Farray();
-
- // Methods
- void allocateMemory();
- int offset(int i, int j) const;
-};
-
-#endif