casa
$Rev:20696$
|
#include <array.h>
Public Types | |
typedef std::vector< t > | vtype |
typedef std::vector< int > | stype |
Public Member Functions | |
array () | |
array (const vtype &v, const stype &s) | |
array (vtype *v, const stype &s) | |
vtype & | vec () |
const vtype & | vec () const |
stype & | shape () |
const stype & | shape () const |
void | resize (const stype &shp) |
void | set (const vtype &v, const stype &s) |
void | set (vtype *v, const stype &s) |
~array () | |
Private Member Functions | |
void | init () const |
Private Attributes | |
vtype * | value_ |
stype * | shape_ |
typedef std::vector<int> casac::array< t >::stype |
typedef std::vector<t> casac::array< t >::vtype |
casac::array< t >::array | ( | ) | [inline] |
casac::array< t >::array | ( | const vtype & | v, |
const stype & | s | ||
) | [inline] |
casac::array< t >::array | ( | vtype * | v, |
const stype & | s | ||
) | [inline] |
casac::array< t >::~array | ( | ) | [inline] |
Definition at line 37 of file array.h.
References casac::array< t >::shape_, and casac::array< t >::value_.
void casac::array< t >::init | ( | ) | const [inline, private] |
Definition at line 41 of file array.h.
References casac::array< t >::shape_, and casac::array< t >::value_.
Referenced by casac::array< t >::resize(), casac::array< t >::shape(), and casac::array< t >::vec().
void casac::array< t >::resize | ( | const stype & | shp | ) | [inline] |
Definition at line 22 of file array.h.
References casac::array< t >::init(), casac::array< t >::shape_, and casac::array< t >::value_.
void casac::array< t >::set | ( | const vtype & | v, |
const stype & | s | ||
) | [inline] |
Definition at line 28 of file array.h.
References casa::s, casac::array< t >::shape_, and casac::array< t >::value_.
void casac::array< t >::set | ( | vtype * | v, |
const stype & | s | ||
) | [inline] |
Definition at line 32 of file array.h.
References casa::s, casac::array< t >::shape_, and casac::array< t >::value_.
stype& casac::array< t >::shape | ( | ) | [inline] |
Definition at line 19 of file array.h.
References casac::array< t >::init(), and casac::array< t >::shape_.
const stype& casac::array< t >::shape | ( | ) | const [inline] |
Definition at line 20 of file array.h.
References casac::array< t >::init(), and casac::array< t >::shape_.
vtype& casac::array< t >::vec | ( | ) | [inline] |
Definition at line 17 of file array.h.
References casac::array< t >::init(), and casac::array< t >::value_.
const vtype& casac::array< t >::vec | ( | ) | const [inline] |
Definition at line 18 of file array.h.
References casac::array< t >::init(), and casac::array< t >::value_.
stype* casac::array< t >::shape_ [private] |
Definition at line 44 of file array.h.
Referenced by casac::array< t >::init(), casac::array< t >::resize(), casac::array< t >::set(), casac::array< t >::shape(), and casac::array< t >::~array().
vtype* casac::array< t >::value_ [private] |
Definition at line 43 of file array.h.
Referenced by casac::array< t >::init(), casac::array< t >::resize(), casac::array< t >::set(), casac::array< t >::vec(), and casac::array< t >::~array().