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

#include <PyImathStringArray.h>

+ Inheritance diagram for PyImath::StringArrayT< T >:

Public Types

typedef T BaseType
 
typedef FixedArray
< StringTableIndex
super
 
- Public Types inherited from PyImath::FixedArray< StringTableIndex >
typedef StringTableIndex BaseType
 
typedef hboost::mpl::if_
< hboost::is_class
< StringTableIndex >
, StringTableIndex
&, StringTableIndex >::type 
get_type
 
typedef hboost::mpl::if_
< hboost::is_class
< StringTableIndex >, const
StringTableIndex
&, StringTableIndex >::type 
get_type_const
 

Public Member Functions

 StringArrayT (StringTableT< T > &table, StringTableIndex *ptr, size_t length, size_t stride=1, hboost::any tableHandle=hboost::any(), bool writable=true)
 
 StringArrayT (StringTableT< T > &table, StringTableIndex *ptr, size_t length, size_t stride, hboost::any handle, hboost::any tableHandle=hboost::any(), bool writable=true)
 
 StringArrayT (const StringTableT< T > &table, const StringTableIndex *ptr, size_t length, size_t stride=1, hboost::any tableHandle=hboost::any())
 
 StringArrayT (const StringTableT< T > &table, const StringTableIndex *ptr, size_t length, size_t stride, hboost::any handle, hboost::any tableHandle=hboost::any())
 
 StringArrayT (StringArrayT &s, const FixedArray< int > &mask)
 
const StringTableT< T > & stringTable () const
 
getitem_string (Py_ssize_t index) const
 
StringArrayTgetslice_string (PyObject *index) const
 
StringArrayTgetslice_mask_string (const FixedArray< int > &mask)
 
void setitem_string_scalar (PyObject *index, const T &data)
 
void setitem_string_scalar_mask (const FixedArray< int > &mask, const T &data)
 
void setitem_string_vector (PyObject *index, const StringArrayT< T > &data)
 
void setitem_string_vector_mask (const FixedArray< int > &mask, const StringArrayT< T > &data)
 
- Public Member Functions inherited from PyImath::FixedArray< StringTableIndex >
 FixedArray (StringTableIndex *ptr, Py_ssize_t length, Py_ssize_t stride=1, bool writable=true)
 
 FixedArray (StringTableIndex *ptr, Py_ssize_t length, Py_ssize_t stride, hboost::any handle, bool writable=true)
 
 FixedArray (const StringTableIndex *ptr, Py_ssize_t length, Py_ssize_t stride=1)
 
 FixedArray (const StringTableIndex *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 StringTableIndex &initialValue, Py_ssize_t length)
 
 FixedArray (FixedArray &f, const MaskArrayType &mask)
 
 FixedArray (const FixedArray &f, const MaskArrayType &mask)
 
 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
 
FixedArray getslice_mask (const MaskArrayType &mask)
 
void setitem_scalar (PyObject *index, const StringTableIndex &data)
 
void setitem_scalar_mask (const MaskArrayType &mask, const StringTableIndex &data)
 
void setitem_vector (::PyObject *index, const ArrayType &data)
 
void setitem_vector_mask (const MaskArrayType &mask, const ArrayType &data)
 
Py_ssize_t len () const
 
size_t stride () const
 
bool writable () const
 
void makeReadOnly ()
 
StringTableIndexoperator[] (size_t i)
 
const StringTableIndexoperator[] (size_t i) const
 
StringTableIndexdirect_index (size_t i)
 
const StringTableIndexdirect_index (size_t i) const
 
StringTableIndexunchecked_index (size_t i)
 
StringTableIndexunchecked_direct_index (size_t i)
 
bool isMaskedReference () const
 
size_t unmaskedLength () const
 
size_t raw_ptr_index (size_t i) const
 
size_t match_dimension (const ArrayType &a1, bool strictComparison=true) const
 
FixedArray< StringTableIndexifelse_vector (const FixedArray< int > &choice, const FixedArray< StringTableIndex > &other)
 
FixedArray< StringTableIndexifelse_scalar (const FixedArray< int > &choice, const StringTableIndex &other)
 

Static Public Member Functions

static StringArrayT< T > * createDefaultArray (size_t length)
 
static StringArrayT< T > * createUniformArray (const T &initialValue, size_t length)
 
static StringArrayT< T > * createFromRawArray (const T *rawArray, size_t length, bool writable=true)
 
- Static Public Member Functions inherited from PyImath::FixedArray< StringTableIndex >
static hboost::python::class_
< FixedArray< StringTableIndex > > 
register_ (const char *doc)
 
static const char * name ()
 

Detailed Description

template<class T>
class PyImath::StringArrayT< T >

Definition at line 23 of file PyImathStringArray.h.

Member Typedef Documentation

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

Definition at line 26 of file PyImathStringArray.h.

template<class T>
typedef FixedArray<StringTableIndex> PyImath::StringArrayT< T >::super

Definition at line 27 of file PyImathStringArray.h.

Constructor & Destructor Documentation

template<class T>
PyImath::StringArrayT< T >::StringArrayT ( StringTableT< T > &  table,
StringTableIndex ptr,
size_t  length,
size_t  stride = 1,
hboost::any  tableHandle = hboost::any(),
bool  writable = true 
)
template<class T>
PyImath::StringArrayT< T >::StringArrayT ( StringTableT< T > &  table,
StringTableIndex ptr,
size_t  length,
size_t  stride,
hboost::any  handle,
hboost::any  tableHandle = hboost::any(),
bool  writable = true 
)
template<class T>
PyImath::StringArrayT< T >::StringArrayT ( const StringTableT< T > &  table,
const StringTableIndex ptr,
size_t  length,
size_t  stride = 1,
hboost::any  tableHandle = hboost::any() 
)
template<class T>
PyImath::StringArrayT< T >::StringArrayT ( const StringTableT< T > &  table,
const StringTableIndex ptr,
size_t  length,
size_t  stride,
hboost::any  handle,
hboost::any  tableHandle = hboost::any() 
)
template<class T>
PyImath::StringArrayT< T >::StringArrayT ( StringArrayT< T > &  s,
const FixedArray< int > &  mask 
)

Member Function Documentation

template<class T>
static StringArrayT<T>* PyImath::StringArrayT< T >::createDefaultArray ( size_t  length)
static
template<class T>
static StringArrayT<T>* PyImath::StringArrayT< T >::createFromRawArray ( const T *  rawArray,
size_t  length,
bool  writable = true 
)
static
template<class T>
static StringArrayT<T>* PyImath::StringArrayT< T >::createUniformArray ( const T &  initialValue,
size_t  length 
)
static
template<class T>
T PyImath::StringArrayT< T >::getitem_string ( Py_ssize_t  index) const
inline

Definition at line 52 of file PyImathStringArray.h.

template<class T>
StringArrayT* PyImath::StringArrayT< T >::getslice_mask_string ( const FixedArray< int > &  mask)
template<class T>
StringArrayT* PyImath::StringArrayT< T >::getslice_string ( PyObject *  index) const
template<class T>
void PyImath::StringArrayT< T >::setitem_string_scalar ( PyObject *  index,
const T &  data 
)
template<class T>
void PyImath::StringArrayT< T >::setitem_string_scalar_mask ( const FixedArray< int > &  mask,
const T &  data 
)
template<class T>
void PyImath::StringArrayT< T >::setitem_string_vector ( PyObject *  index,
const StringArrayT< T > &  data 
)
template<class T>
void PyImath::StringArrayT< T >::setitem_string_vector_mask ( const FixedArray< int > &  mask,
const StringArrayT< T > &  data 
)
template<class T>
const StringTableT<T>& PyImath::StringArrayT< T >::stringTable ( ) const
inline

Definition at line 50 of file PyImathStringArray.h.


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