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

#include <PyImathFixedArray.h>

Classes

class  ReadOnlyDirectAccess
 
class  ReadOnlyMaskedAccess
 
class  WritableDirectAccess
 
class  WritableMaskedAccess
 

Public Types

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

Public Member Functions

 FixedArray (T *ptr, Py_ssize_t length, Py_ssize_t stride=1, bool writable=true)
 
 FixedArray (T *ptr, Py_ssize_t length, Py_ssize_t stride, hboost::any handle, bool writable=true)
 
 FixedArray (const T *ptr, Py_ssize_t length, Py_ssize_t stride=1)
 
 FixedArray (const T *ptr, Py_ssize_t length, Py_ssize_t stride, hboost::any handle)
 
 FixedArray (Py_ssize_t length)
 
 FixedArray (Py_ssize_t length, Uninitialized)
 
 FixedArray (const T &initialValue, Py_ssize_t length)
 
template<typename MaskArrayType >
 FixedArray (FixedArray &f, const MaskArrayType &mask)
 
template<typename MaskArrayType >
 FixedArray (const FixedArray &f, const MaskArrayType &mask)
 
template<class S >
 FixedArray (const FixedArray< S > &other)
 
 FixedArray (const FixedArray &other)
 
const FixedArrayoperator= (const FixedArray &other)
 
 ~FixedArray ()
 
 operator bool () const
 
const hboost::any & handle ()
 
size_t canonical_index (Py_ssize_t index) const
 
void extract_slice_indices (PyObject *index, size_t &start, size_t &end, Py_ssize_t &step, size_t &slicelength) const
 
get_type getitem (Py_ssize_t index)
 
get_type_const getitem (Py_ssize_t index) const
 
hboost::python::object getobjectTuple (Py_ssize_t index)
 
hboost::python::object getobjectTuple (Py_ssize_t index) const
 
FixedArray getslice (::PyObject *index) const
 
template<typename MaskArrayType >
FixedArray getslice_mask (const MaskArrayType &mask)
 
void setitem_scalar (PyObject *index, const T &data)
 
template<typename MaskArrayType >
void setitem_scalar_mask (const MaskArrayType &mask, const T &data)
 
template<typename ArrayType >
void setitem_vector (::PyObject *index, const ArrayType &data)
 
template<typename MaskArrayType , typename ArrayType >
void setitem_vector_mask (const MaskArrayType &mask, const ArrayType &data)
 
Py_ssize_t len () const
 
size_t stride () const
 
bool writable () const
 
void makeReadOnly ()
 
T & operator[] (size_t i)
 
const T & operator[] (size_t i) const
 
T & direct_index (size_t i)
 
const T & direct_index (size_t i) const
 
T & unchecked_index (size_t i)
 
T & unchecked_direct_index (size_t i)
 
bool isMaskedReference () const
 
size_t unmaskedLength () const
 
size_t raw_ptr_index (size_t i) const
 
template<typename ArrayType >
size_t match_dimension (const ArrayType &a1, bool strictComparison=true) const
 
FixedArray< T > ifelse_vector (const FixedArray< int > &choice, const FixedArray< T > &other)
 
FixedArray< T > ifelse_scalar (const FixedArray< int > &choice, const T &other)
 

Static Public Member Functions

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

Detailed Description

template<class T>
class PyImath::FixedArray< T >

Definition at line 89 of file PyImathFixedArray.h.

Member Typedef Documentation

template<class T>
typedef T PyImath::FixedArray< T >::BaseType

Definition at line 105 of file PyImathFixedArray.h.

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

Definition at line 367 of file PyImathFixedArray.h.

template<class T>
typedef hboost::mpl::if_<hboost::is_class<T>,const T&,T>::type PyImath::FixedArray< T >::get_type_const

Definition at line 369 of file PyImathFixedArray.h.

Constructor & Destructor Documentation

template<class T>
PyImath::FixedArray< T >::FixedArray ( T *  ptr,
Py_ssize_t  length,
Py_ssize_t  stride = 1,
bool  writable = true 
)
inline

Definition at line 107 of file PyImathFixedArray.h.

template<class T>
PyImath::FixedArray< T >::FixedArray ( T *  ptr,
Py_ssize_t  length,
Py_ssize_t  stride,
hboost::any  handle,
bool  writable = true 
)
inline

Definition at line 122 of file PyImathFixedArray.h.

template<class T>
PyImath::FixedArray< T >::FixedArray ( const T *  ptr,
Py_ssize_t  length,
Py_ssize_t  stride = 1 
)
inline

Definition at line 138 of file PyImathFixedArray.h.

template<class T>
PyImath::FixedArray< T >::FixedArray ( const T *  ptr,
Py_ssize_t  length,
Py_ssize_t  stride,
hboost::any  handle 
)
inline

Definition at line 153 of file PyImathFixedArray.h.

template<class T>
PyImath::FixedArray< T >::FixedArray ( Py_ssize_t  length)
inlineexplicit

Definition at line 168 of file PyImathFixedArray.h.

template<class T>
PyImath::FixedArray< T >::FixedArray ( Py_ssize_t  length,
Uninitialized   
)
inline

Definition at line 182 of file PyImathFixedArray.h.

template<class T>
PyImath::FixedArray< T >::FixedArray ( const T &  initialValue,
Py_ssize_t  length 
)
inline

Definition at line 194 of file PyImathFixedArray.h.

template<class T>
template<typename MaskArrayType >
PyImath::FixedArray< T >::FixedArray ( FixedArray< T > &  f,
const MaskArrayType &  mask 
)
inline

Definition at line 208 of file PyImathFixedArray.h.

template<class T>
template<typename MaskArrayType >
PyImath::FixedArray< T >::FixedArray ( const FixedArray< T > &  f,
const MaskArrayType &  mask 
)
inline

Definition at line 239 of file PyImathFixedArray.h.

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

Definition at line 270 of file PyImathFixedArray.h.

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

Definition at line 288 of file PyImathFixedArray.h.

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

Definition at line 313 of file PyImathFixedArray.h.

Member Function Documentation

template<class T>
size_t PyImath::FixedArray< T >::canonical_index ( Py_ssize_t  index) const
inline

Definition at line 327 of file PyImathFixedArray.h.

template<class T>
T& PyImath::FixedArray< T >::direct_index ( size_t  i)
inline

Definition at line 602 of file PyImathFixedArray.h.

template<class T>
const T& PyImath::FixedArray< T >::direct_index ( size_t  i) const
inline

Definition at line 611 of file PyImathFixedArray.h.

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

Definition at line 337 of file PyImathFixedArray.h.

template<class T>
get_type PyImath::FixedArray< T >::getitem ( Py_ssize_t  index)
inline

Definition at line 368 of file PyImathFixedArray.h.

template<class T>
get_type_const PyImath::FixedArray< T >::getitem ( Py_ssize_t  index) const
inline

Definition at line 370 of file PyImathFixedArray.h.

template<class T>
hboost::python::object PyImath::FixedArray< T >::getobjectTuple ( Py_ssize_t  index)
inline

Definition at line 376 of file PyImathFixedArray.h.

template<class T>
hboost::python::object PyImath::FixedArray< T >::getobjectTuple ( Py_ssize_t  index) const
inline

Definition at line 410 of file PyImathFixedArray.h.

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

Definition at line 432 of file PyImathFixedArray.h.

template<class T>
template<typename MaskArrayType >
FixedArray PyImath::FixedArray< T >::getslice_mask ( const MaskArrayType &  mask)
inline

Definition at line 453 of file PyImathFixedArray.h.

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

Definition at line 320 of file PyImathFixedArray.h.

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

Definition at line 718 of file PyImathFixedArray.h.

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

Definition at line 710 of file PyImathFixedArray.h.

template<class T>
bool PyImath::FixedArray< T >::isMaskedReference ( ) const
inline

Definition at line 628 of file PyImathFixedArray.h.

template<class T>
Py_ssize_t PyImath::FixedArray< T >::len ( ) const
inline

Definition at line 576 of file PyImathFixedArray.h.

template<class T>
void PyImath::FixedArray< T >::makeReadOnly ( )
inline

Definition at line 584 of file PyImathFixedArray.h.

template<class T>
template<typename ArrayType >
size_t PyImath::FixedArray< T >::match_dimension ( const ArrayType &  a1,
bool  strictComparison = true 
) const
inline

Definition at line 686 of file PyImathFixedArray.h.

template<class T>
static const char* PyImath::FixedArray< T >::name ( )
static
template<class T>
PyImath::FixedArray< T >::operator bool ( ) const
inlineexplicit

Definition at line 318 of file PyImathFixedArray.h.

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

Definition at line 298 of file PyImathFixedArray.h.

template<class T>
T& PyImath::FixedArray< T >::operator[] ( size_t  i)
inline

Definition at line 587 of file PyImathFixedArray.h.

template<class T>
const T& PyImath::FixedArray< T >::operator[] ( size_t  i) const
inline

Definition at line 596 of file PyImathFixedArray.h.

template<class T>
size_t PyImath::FixedArray< T >::raw_ptr_index ( size_t  i) const
inline

Definition at line 634 of file PyImathFixedArray.h.

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

Definition at line 642 of file PyImathFixedArray.h.

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

Definition at line 461 of file PyImathFixedArray.h.

template<class T>
template<typename MaskArrayType >
void PyImath::FixedArray< T >::setitem_scalar_mask ( const MaskArrayType &  mask,
const T &  data 
)
inline

Definition at line 484 of file PyImathFixedArray.h.

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

Definition at line 505 of file PyImathFixedArray.h.

template<class T>
template<typename MaskArrayType , typename ArrayType >
void PyImath::FixedArray< T >::setitem_vector_mask ( const MaskArrayType &  mask,
const ArrayType &  data 
)
inline

Definition at line 534 of file PyImathFixedArray.h.

template<class T>
size_t PyImath::FixedArray< T >::stride ( ) const
inline

Definition at line 577 of file PyImathFixedArray.h.

template<class T>
T& PyImath::FixedArray< T >::unchecked_direct_index ( size_t  i)
inline

Definition at line 623 of file PyImathFixedArray.h.

template<class T>
T& PyImath::FixedArray< T >::unchecked_index ( size_t  i)
inline

Definition at line 618 of file PyImathFixedArray.h.

template<class T>
size_t PyImath::FixedArray< T >::unmaskedLength ( ) const
inline

Definition at line 629 of file PyImathFixedArray.h.

template<class T>
bool PyImath::FixedArray< T >::writable ( ) const
inline

Definition at line 578 of file PyImathFixedArray.h.


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