casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
casac::array< t > Class Template Reference

#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)
 
vtypevec ()
 
const vtypevec () const
 
stypeshape ()
 
const stypeshape () 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

vtypevalue_
 
stypeshape_
 

Detailed Description

template<class t>
class casac::array< t >

Definition at line 8 of file array.h.

Member Typedef Documentation

template<class t >
typedef std::vector<int> casac::array< t >::stype

Definition at line 11 of file array.h.

template<class t >
typedef std::vector<t> casac::array< t >::vtype

Definition at line 10 of file array.h.

Constructor & Destructor Documentation

template<class t >
casac::array< t >::array ( )
inline

Definition at line 13 of file array.h.

template<class t >
casac::array< t >::array ( const vtype v,
const stype s 
)
inline

Definition at line 14 of file array.h.

template<class t >
casac::array< t >::array ( vtype v,
const stype s 
)
inline

Definition at line 16 of file array.h.

template<class t >
casac::array< t >::~array ( )
inline

Definition at line 37 of file array.h.

References casac::array< t >::shape_, and casac::array< t >::value_.

Member Function Documentation

template<class t >
void casac::array< t >::init ( ) const
inlineprivate
template<class t >
void casac::array< t >::resize ( const stype shp)
inline
template<class t >
void casac::array< t >::set ( const vtype v,
const stype s 
)
inline

Definition at line 28 of file array.h.

References casac::array< t >::shape_, and casac::array< t >::value_.

template<class t >
void casac::array< t >::set ( vtype v,
const stype s 
)
inline

Definition at line 32 of file array.h.

References casac::array< t >::shape_, and casac::array< t >::value_.

template<class t >
stype& casac::array< t >::shape ( )
inline

Definition at line 19 of file array.h.

References casac::array< t >::init(), and casac::array< t >::shape_.

template<class t >
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_.

template<class t >
vtype& casac::array< t >::vec ( )
inline

Definition at line 17 of file array.h.

References casac::array< t >::init(), and casac::array< t >::value_.

template<class t >
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_.

Member Data Documentation

template<class t >
stype* casac::array< t >::shape_
private
template<class t >
vtype* casac::array< t >::value_
private

The documentation for this class was generated from the following file: