carray< T > Class Template Reference

Wrapper template class of array implementing Perl specific methods. More...

#include <carray.h>

Inheritance diagram for carray< T >:
array< T > vector

List of all members.

Public Member Functions

 carray ()
 carray (const carray &ar2)
 carray (SV *sv)
 carray (T val, int32 size)
 ~carray ()
void put (SV *sv)
void put (SV *sv, int32 idx)
void put (SV *sv, int32 idx, int32 len)
void replace (SV *sv)
void replace (SV *sv, int32 idx)
void replace (SV *sv, int32 idx, int32 len)
void selectFill (T val, SV *idxs)
void selectPut (SV *ar2, SV *idxs)
carray< T > * selectGet (carray< int32 > &idxs)
carray< T > * selectGet (SV *idxs)
SV * printToString ()
 prints the array to string
SV * toa ()
SV * tos ()
template<>
SV * toa ()

Protected Member Functions

void _set (SV *sv, int32 idx, int32 len, bool repl, bool srcsize=false)

Detailed Description

template<class T>
class carray< T >

Wrapper template class of array implementing Perl specific methods.

Inherits from template class array. Additionally implements methods which can deal with perl specific SV* values and arrays specified therin. depends on perl inlcude files


Constructor & Destructor Documentation

template<class T >
carray< T >::carray (  )  [inline]
template<class T >
carray< T >::carray ( const carray< T > &  ar2  )  [inline]
template<class T >
carray< T >::carray ( SV *  sv  )  [inline]
template<class T >
carray< T >::carray ( val,
int32  size 
) [inline]
template<class T >
carray< T >::~carray (  )  [inline]

Member Function Documentation

template<class T >
void carray< T >::_set ( SV *  sv,
int32  idx,
int32  len,
bool  repl,
bool  srcsize = false 
) [inline, protected]
template<class T >
SV * carray< T >::printToString (  )  [inline]

prints the array to string

Note: This only works for certain types T

Reimplemented from array< T >.

template<class T >
void carray< T >::put ( SV *  sv,
int32  idx,
int32  len 
) [inline]
template<class T >
void carray< T >::put ( SV *  sv,
int32  idx 
) [inline]
template<class T >
void carray< T >::put ( SV *  sv  )  [inline]
template<class T >
void carray< T >::replace ( SV *  sv,
int32  idx,
int32  len 
) [inline]
template<class T >
void carray< T >::replace ( SV *  sv,
int32  idx 
) [inline]
template<class T >
void carray< T >::replace ( SV *  sv  )  [inline]
template<class T >
void carray< T >::selectFill ( val,
SV *  idxs 
) [inline]
template<class T >
carray< T > * carray< T >::selectGet ( SV *  idxs  )  [inline]
template<class T >
carray< T > * carray< T >::selectGet ( carray< int32 > &  idxs  )  [inline]
template<class T >
void carray< T >::selectPut ( SV *  ar2,
SV *  idxs 
) [inline]
template<>
SV * carray< double >::toa (  )  [inline]
template<class T >
SV * carray< T >::toa (  )  [inline]
template<class T >
SV * carray< T >::tos (  )  [inline]

The documentation for this class was generated from the following file:
Generated on Tue May 3 16:06:08 2011 for Scopes C++ Core by  doxygen 1.6.3