diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-03-13 11:56:50 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-03-13 11:56:50 -0600 |
commit | 9c4602f98096abed5632d5fd1f12549a2c5b360c (patch) | |
tree | b154e4d7a7fff6e491216b2e3750d238645903e2 /doc/swig/test/Farray.h | |
parent | dfe6c7ed74c087c0deabfd4f7a50224498840838 (diff) | |
parent | f151004567f61c1a613dd78a87521adf795a4942 (diff) | |
download | numpy-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.h | 56 |
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 |