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

#include <PyImathFixedVArray.h>

Classes

struct  SizeHelper
 

Public Types

typedef T BaseType
 

Public Member Functions

 FixedVArray (std::vector< T > *ptr, Py_ssize_t length, Py_ssize_t stride=1, bool writable=true)
 
 FixedVArray (std::vector< T > *ptr, Py_ssize_t length, Py_ssize_t stride, hboost::any handle, bool writable=true)
 
 FixedVArray (const std::vector< T > *ptr, Py_ssize_t length, Py_ssize_t stride=1)
 
 FixedVArray (const std::vector< T > *ptr, Py_ssize_t length, Py_ssize_t stride, hboost::any handle)
 
 FixedVArray (Py_ssize_t length)
 
 FixedVArray (const T &initialValue, Py_ssize_t length)
 
 FixedVArray (FixedVArray< T > &f, const FixedArray< int > &mask)
 
 FixedVArray (const FixedArray< int > &size, const T &initialValue)
 
 FixedVArray (const FixedVArray< T > &other)
 
const FixedVArrayoperator= (const FixedVArray< T > &other)
 
 ~FixedVArray ()
 
const hboost::any & handle ()
 
Py_ssize_t len () const
 
size_t stride () const
 
bool writable () const
 
void makeReadOnly ()
 
bool isMaskedReference () const
 
size_t unmaskedLength () const
 
std::vector< T > & operator[] (size_t i)
 
const std::vector< T > & operator[] (size_t i) const
 
FixedArray< T > getitem (Py_ssize_t index)
 
FixedVArray< T > getslice (PyObject *index) const
 
FixedVArray< T > getslice_mask (const FixedArray< int > &mask)
 
void setitem_scalar (PyObject *index, const FixedArray< T > &data)
 
void setitem_scalar_mask (const FixedArray< int > &mask, const FixedArray< T > &data)
 
void setitem_vector (PyObject *index, const FixedVArray< T > &data)
 
void setitem_vector_mask (const FixedArray< int > &mask, const FixedVArray< T > &data)
 
hboost::shared_ptr< SizeHelpergetSizeHelper ()
 
template<class T2 >
size_t match_dimension (const FixedArray< T2 > &mask, bool strictComparison=true) const
 
size_t match_dimension (const FixedVArray< T > &other, bool strictComparison=true) const
 

Static Public Member Functions

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

Protected Member Functions

size_t raw_ptr_index (size_t i) const
 

Friends

struct SizeHelper
 

Detailed Description

template<class T>
class PyImath::FixedVArray< T >

Definition at line 20 of file PyImathFixedVArray.h.

Member Typedef Documentation

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

Definition at line 41 of file PyImathFixedVArray.h.

Constructor & Destructor Documentation

template<class T>
PyImath::FixedVArray< T >::FixedVArray ( std::vector< T > *  ptr,
Py_ssize_t  length,
Py_ssize_t  stride = 1,
bool  writable = true 
)
template<class T>
PyImath::FixedVArray< T >::FixedVArray ( std::vector< T > *  ptr,
Py_ssize_t  length,
Py_ssize_t  stride,
hboost::any  handle,
bool  writable = true 
)
template<class T>
PyImath::FixedVArray< T >::FixedVArray ( const std::vector< T > *  ptr,
Py_ssize_t  length,
Py_ssize_t  stride = 1 
)
template<class T>
PyImath::FixedVArray< T >::FixedVArray ( const std::vector< T > *  ptr,
Py_ssize_t  length,
Py_ssize_t  stride,
hboost::any  handle 
)
template<class T>
PyImath::FixedVArray< T >::FixedVArray ( Py_ssize_t  length)
explicit
template<class T>
PyImath::FixedVArray< T >::FixedVArray ( const T &  initialValue,
Py_ssize_t  length 
)
template<class T>
PyImath::FixedVArray< T >::FixedVArray ( FixedVArray< T > &  f,
const FixedArray< int > &  mask 
)
template<class T>
PyImath::FixedVArray< T >::FixedVArray ( const FixedArray< int > &  size,
const T &  initialValue 
)
template<class T>
PyImath::FixedVArray< T >::FixedVArray ( const FixedVArray< T > &  other)
template<class T>
PyImath::FixedVArray< T >::~FixedVArray ( )

Member Function Documentation

template<class T>
FixedArray<T> PyImath::FixedVArray< T >::getitem ( Py_ssize_t  index)
template<class T>
hboost::shared_ptr<SizeHelper> PyImath::FixedVArray< T >::getSizeHelper ( )
template<class T>
FixedVArray<T> PyImath::FixedVArray< T >::getslice ( PyObject *  index) const
template<class T>
FixedVArray<T> PyImath::FixedVArray< T >::getslice_mask ( const FixedArray< int > &  mask)
template<class T>
const hboost::any& PyImath::FixedVArray< T >::handle ( )
inline

Definition at line 71 of file PyImathFixedVArray.h.

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

Definition at line 83 of file PyImathFixedVArray.h.

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

Definition at line 73 of file PyImathFixedVArray.h.

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

Definition at line 81 of file PyImathFixedVArray.h.

template<class T>
template<class T2 >
size_t PyImath::FixedVArray< T >::match_dimension ( const FixedArray< T2 > &  mask,
bool  strictComparison = true 
) const
inline

Definition at line 130 of file PyImathFixedVArray.h.

template<class T>
size_t PyImath::FixedVArray< T >::match_dimension ( const FixedVArray< T > &  other,
bool  strictComparison = true 
) const
inline

Definition at line 163 of file PyImathFixedVArray.h.

template<class T>
static const char* PyImath::FixedVArray< T >::name ( )
static
template<class T>
const FixedVArray& PyImath::FixedVArray< T >::operator= ( const FixedVArray< T > &  other)
template<class T>
std::vector<T>& PyImath::FixedVArray< T >::operator[] ( size_t  i)
template<class T>
const std::vector<T>& PyImath::FixedVArray< T >::operator[] ( size_t  i) const
template<class T>
size_t PyImath::FixedVArray< T >::raw_ptr_index ( size_t  i) const
protected
template<class T>
static hboost::python::class_<FixedVArray<T> > PyImath::FixedVArray< T >::register_ ( const char *  doc)
static
template<class T>
void PyImath::FixedVArray< T >::setitem_scalar ( PyObject *  index,
const FixedArray< T > &  data 
)
template<class T>
void PyImath::FixedVArray< T >::setitem_scalar_mask ( const FixedArray< int > &  mask,
const FixedArray< T > &  data 
)
template<class T>
void PyImath::FixedVArray< T >::setitem_vector ( PyObject *  index,
const FixedVArray< T > &  data 
)
template<class T>
void PyImath::FixedVArray< T >::setitem_vector_mask ( const FixedArray< int > &  mask,
const FixedVArray< T > &  data 
)
template<class T>
size_t PyImath::FixedVArray< T >::stride ( ) const
inline

Definition at line 74 of file PyImathFixedVArray.h.

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

Definition at line 84 of file PyImathFixedVArray.h.

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

Definition at line 75 of file PyImathFixedVArray.h.

Friends And Related Function Documentation

template<class T>
friend struct SizeHelper
friend

Definition at line 120 of file PyImathFixedVArray.h.


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