HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PyImath::FixedArray2D< T > Class Template Reference

#include <PyImathFixedArray2D.h>

Public Types

typedef hboost::mpl::if_
< hboost::is_class< T >, T
&, T >::type 
get_type
 

Public Member Functions

 FixedArray2D (T *ptr, Py_ssize_t lengthX, Py_ssize_t lengthY, Py_ssize_t strideX=1)
 
 FixedArray2D (T *ptr, Py_ssize_t lengthX, Py_ssize_t lengthY, Py_ssize_t strideX, Py_ssize_t strideY)
 
 FixedArray2D (T *ptr, Py_ssize_t lengthX, Py_ssize_t lengthY, Py_ssize_t strideX, Py_ssize_t strideY, hboost::any handle)
 
 FixedArray2D (Py_ssize_t lengthX, Py_ssize_t lengthY)
 
 FixedArray2D (const IMATH_NAMESPACE::V2i &length)
 
 FixedArray2D (const T &initialValue, Py_ssize_t lengthX, Py_ssize_t lengthY)
 
void initializeSize ()
 
template<class S >
 FixedArray2D (const FixedArray2D< S > &other)
 
 FixedArray2D (const FixedArray2D &other)
 
const FixedArray2Doperator= (const FixedArray2D &other)
 
 ~FixedArray2D ()
 
const hboost::any & handle ()
 
size_t canonical_index (Py_ssize_t index, size_t length) const
 
void extract_slice_indices (PyObject *index, size_t length, size_t &start, size_t &end, Py_ssize_t &step, size_t &slicelength) const
 
get_type getitem (Py_ssize_t i, Py_ssize_t j)
 
FixedArray2D getslice (PyObject *index) const
 
FixedArray2D getslice_mask (const FixedArray2D< int > &mask) const
 
void setitem_scalar (PyObject *index, const T &data)
 
void setitem_scalar_mask (const FixedArray2D< int > &mask, const T &data)
 
void setitem_vector (PyObject *index, const FixedArray2D &data)
 
void setitem_vector_mask (const FixedArray2D< int > &mask, const FixedArray2D &data)
 
void setitem_array1d_mask (const FixedArray2D< int > &mask, const FixedArray< T > &data)
 
void setitem_array1d (PyObject *index, const FixedArray< T > &data)
 
IMATH_NAMESPACE::Vec2< size_t > len () const
 
IMATH_NAMESPACE::Vec2< size_t > stride () const
 
T & operator() (size_t i, size_t j)
 
const T & operator() (size_t i, size_t j) const
 
size_t totalLen () const
 
hboost::python::tuple size () const
 
template<class T2 >
IMATH_NAMESPACE::Vec2< size_t > match_dimension (const FixedArray2D< T2 > &a1) const
 
FixedArray2D< T > ifelse_vector (const FixedArray2D< int > &choice, const FixedArray2D< T > &other)
 
FixedArray2D< T > ifelse_scalar (const FixedArray2D< int > &choice, const T &other)
 

Static Public Member Functions

static hboost::python::class_
< FixedArray2D< T > > 
register_ (const char *name, const char *doc)
 

Detailed Description

template<class T>
class PyImath::FixedArray2D< T >

Definition at line 24 of file PyImathFixedArray2D.h.

Member Typedef Documentation

template<class T>
typedef hboost::mpl::if_<hboost::is_class<T>,T&,T>::type PyImath::FixedArray2D< T >::get_type

Definition at line 195 of file PyImathFixedArray2D.h.

Constructor & Destructor Documentation

template<class T>
PyImath::FixedArray2D< T >::FixedArray2D ( T *  ptr,
Py_ssize_t  lengthX,
Py_ssize_t  lengthY,
Py_ssize_t  strideX = 1 
)
inline

Definition at line 37 of file PyImathFixedArray2D.h.

template<class T>
PyImath::FixedArray2D< T >::FixedArray2D ( T *  ptr,
Py_ssize_t  lengthX,
Py_ssize_t  lengthY,
Py_ssize_t  strideX,
Py_ssize_t  strideY 
)
inline

Definition at line 49 of file PyImathFixedArray2D.h.

template<class T>
PyImath::FixedArray2D< T >::FixedArray2D ( T *  ptr,
Py_ssize_t  lengthX,
Py_ssize_t  lengthY,
Py_ssize_t  strideX,
Py_ssize_t  strideY,
hboost::any  handle 
)
inline

Definition at line 61 of file PyImathFixedArray2D.h.

template<class T>
PyImath::FixedArray2D< T >::FixedArray2D ( Py_ssize_t  lengthX,
Py_ssize_t  lengthY 
)
inlineexplicit

Definition at line 69 of file PyImathFixedArray2D.h.

template<class T>
PyImath::FixedArray2D< T >::FixedArray2D ( const IMATH_NAMESPACE::V2i length)
inlineexplicit

Definition at line 82 of file PyImathFixedArray2D.h.

template<class T>
PyImath::FixedArray2D< T >::FixedArray2D ( const T &  initialValue,
Py_ssize_t  lengthX,
Py_ssize_t  lengthY 
)
inline

Definition at line 95 of file PyImathFixedArray2D.h.

template<class T>
template<class S >
PyImath::FixedArray2D< T >::FixedArray2D ( const FixedArray2D< S > &  other)
inlineexplicit

Definition at line 112 of file PyImathFixedArray2D.h.

template<class T>
PyImath::FixedArray2D< T >::FixedArray2D ( const FixedArray2D< T > &  other)
inline

Definition at line 125 of file PyImathFixedArray2D.h.

template<class T>
PyImath::FixedArray2D< T >::~FixedArray2D ( )
inline

Definition at line 149 of file PyImathFixedArray2D.h.

Member Function Documentation

template<class T>
size_t PyImath::FixedArray2D< T >::canonical_index ( Py_ssize_t  index,
size_t  length 
) const
inline

Definition at line 156 of file PyImathFixedArray2D.h.

template<class T>
void PyImath::FixedArray2D< T >::extract_slice_indices ( PyObject *  index,
size_t  length,
size_t &  start,
size_t &  end,
Py_ssize_t &  step,
size_t &  slicelength 
) const
inline

Definition at line 166 of file PyImathFixedArray2D.h.

template<class T>
get_type PyImath::FixedArray2D< T >::getitem ( Py_ssize_t  i,
Py_ssize_t  j 
)
inline

Definition at line 198 of file PyImathFixedArray2D.h.

template<class T>
FixedArray2D PyImath::FixedArray2D< T >::getslice ( PyObject *  index) const
inline

Definition at line 204 of file PyImathFixedArray2D.h.

template<class T>
FixedArray2D PyImath::FixedArray2D< T >::getslice_mask ( const FixedArray2D< int > &  mask) const
inline

Definition at line 229 of file PyImathFixedArray2D.h.

template<class T>
const hboost::any& PyImath::FixedArray2D< T >::handle ( )
inline

Definition at line 154 of file PyImathFixedArray2D.h.

template<class T>
FixedArray2D<T> PyImath::FixedArray2D< T >::ifelse_scalar ( const FixedArray2D< int > &  choice,
const T &  other 
)
inline

Definition at line 443 of file PyImathFixedArray2D.h.

template<class T>
FixedArray2D<T> PyImath::FixedArray2D< T >::ifelse_vector ( const FixedArray2D< int > &  choice,
const FixedArray2D< T > &  other 
)
inline

Definition at line 433 of file PyImathFixedArray2D.h.

template<class T>
void PyImath::FixedArray2D< T >::initializeSize ( )
inline

Definition at line 106 of file PyImathFixedArray2D.h.

template<class T>
IMATH_NAMESPACE::Vec2<size_t> PyImath::FixedArray2D< T >::len ( ) const
inline

Definition at line 369 of file PyImathFixedArray2D.h.

template<class T>
template<class T2 >
IMATH_NAMESPACE::Vec2<size_t> PyImath::FixedArray2D< T >::match_dimension ( const FixedArray2D< T2 > &  a1) const
inline

Definition at line 424 of file PyImathFixedArray2D.h.

template<class T>
T& PyImath::FixedArray2D< T >::operator() ( size_t  i,
size_t  j 
)
inline

Definition at line 371 of file PyImathFixedArray2D.h.

template<class T>
const T& PyImath::FixedArray2D< T >::operator() ( size_t  i,
size_t  j 
) const
inline

Definition at line 372 of file PyImathFixedArray2D.h.

template<class T>
const FixedArray2D& PyImath::FixedArray2D< T >::operator= ( const FixedArray2D< T > &  other)
inline

Definition at line 133 of file PyImathFixedArray2D.h.

template<class T>
static hboost::python::class_<FixedArray2D<T> > PyImath::FixedArray2D< T >::register_ ( const char *  name,
const char *  doc 
)
inlinestatic

Definition at line 379 of file PyImathFixedArray2D.h.

template<class T>
void PyImath::FixedArray2D< T >::setitem_array1d ( PyObject *  index,
const FixedArray< T > &  data 
)
inline

Definition at line 350 of file PyImathFixedArray2D.h.

template<class T>
void PyImath::FixedArray2D< T >::setitem_array1d_mask ( const FixedArray2D< int > &  mask,
const FixedArray< T > &  data 
)
inline

Definition at line 323 of file PyImathFixedArray2D.h.

template<class T>
void PyImath::FixedArray2D< T >::setitem_scalar ( PyObject *  index,
const T &  data 
)
inline

Definition at line 258 of file PyImathFixedArray2D.h.

template<class T>
void PyImath::FixedArray2D< T >::setitem_scalar_mask ( const FixedArray2D< int > &  mask,
const T &  data 
)
inline

Definition at line 278 of file PyImathFixedArray2D.h.

template<class T>
void PyImath::FixedArray2D< T >::setitem_vector ( PyObject *  index,
const FixedArray2D< T > &  data 
)
inline

Definition at line 288 of file PyImathFixedArray2D.h.

template<class T>
void PyImath::FixedArray2D< T >::setitem_vector_mask ( const FixedArray2D< int > &  mask,
const FixedArray2D< T > &  data 
)
inline

Definition at line 308 of file PyImathFixedArray2D.h.

template<class T>
hboost::python::tuple PyImath::FixedArray2D< T >::size ( void  ) const
inline

Definition at line 374 of file PyImathFixedArray2D.h.

template<class T>
IMATH_NAMESPACE::Vec2<size_t> PyImath::FixedArray2D< T >::stride ( ) const
inline

Definition at line 370 of file PyImathFixedArray2D.h.

template<class T>
size_t PyImath::FixedArray2D< T >::totalLen ( ) const
inline

Definition at line 373 of file PyImathFixedArray2D.h.


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