Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

TmxArray Class Reference

#include <TmxArray.h>


Detailed Description

C++-Wrapper Class for Mathworks mxArrray structure
Author:
Peter Jung

Definition at line 30 of file TmxArray.h.

Public Member Functions

 TmxArray ()
 TmxArray (const char *)
 TmxArray (void *)
 ~TmxArray ()
void Set (TDSPVector *)
void Set (TDSPMatrix *)
TmxArrayoperator= (TDSPVector &x)
TmxArrayoperator= (TDSPMatrix &x)
void * Getmx ()
void Setmx (void *m)
TDSPMatrixGet (TDSPMatrix *s)
TDSPVectorGet (TDSPVector *s=NULL)
Bool_t IsString ()
char * GetString (char *buf=NULL, Int_t buflen=0)
TDSPVectorGetRow (Int_t r, TDSPVector *row=NULL)
TDSPVectorGetColumn (Int_t r, TDSPVector *row=NULL)
Int_t GetN ()
Int_t GetM ()
Int_t GetCols ()
Int_t GetRows ()
void SetName (const char *)
const char * GetName ()
void Print ()
void Clean ()
 Cleanup - remove the fmxarray if alloced by me.

void Detach ()
 Detach the mxArray - is necessary for use in return arguments of mex-files.

TComplex Element (Int_t index)
TComplex operator() (Int_t index)

Protected Attributes

Bool_t fMymx
void * fmxArray


Constructor & Destructor Documentation

TmxArray::TmxArray  ) 
 

TmxArray::TmxArray const char *   ) 
 

TmxArray::TmxArray void *   ) 
 

TmxArray::~TmxArray  ) 
 


Member Function Documentation

void TmxArray::Clean  ) 
 

Cleanup - remove the fmxarray if alloced by me.

void TmxArray::Detach  ) 
 

Detach the mxArray - is necessary for use in return arguments of mex-files.

TComplex TmxArray::Element Int_t  index  ) 
 

Referenced by operator()().

TDSPVector* TmxArray::Get TDSPVector s = NULL  ) 
 

TDSPMatrix* TmxArray::Get TDSPMatrix s  ) 
 

Int_t TmxArray::GetCols  )  [inline]
 

Definition at line 60 of file TmxArray.h.

References GetN().

00060 { return GetN();};

TDSPVector* TmxArray::GetColumn Int_t  r,
TDSPVector row = NULL
 

Int_t TmxArray::GetM  ) 
 

Referenced by GetRows().

void* TmxArray::Getmx  )  [inline]
 

Definition at line 50 of file TmxArray.h.

References fmxArray.

00050 { return fmxArray;};

Int_t TmxArray::GetN  ) 
 

Referenced by GetCols().

const char* TmxArray::GetName  ) 
 

TDSPVector* TmxArray::GetRow Int_t  r,
TDSPVector row = NULL
 

Int_t TmxArray::GetRows  )  [inline]
 

Definition at line 61 of file TmxArray.h.

References GetM().

00061 { return GetM();};

char* TmxArray::GetString char *  buf = NULL,
Int_t  buflen = 0
 

Bool_t TmxArray::IsString  ) 
 

TComplex TmxArray::operator() Int_t  index  )  [inline]
 

Definition at line 72 of file TmxArray.h.

References Element().

00072 { return Element(index);};

TmxArray& TmxArray::operator= TDSPMatrix x  )  [inline]
 

Definition at line 48 of file TmxArray.h.

References Set().

00048 {Set(&x);return *this;};

TmxArray& TmxArray::operator= TDSPVector x  )  [inline]
 

Definition at line 47 of file TmxArray.h.

References Set().

00047 {Set(&x);return *this;};

void TmxArray::Print  ) 
 

void TmxArray::Set TDSPMatrix  ) 
 

void TmxArray::Set TDSPVector  ) 
 

Referenced by operator=().

void TmxArray::Setmx void *  m  ) 
 

void TmxArray::SetName const char *   ) 
 


Field Documentation

void* TmxArray::fmxArray [protected]
 

Definition at line 35 of file TmxArray.h.

Referenced by Getmx().

Bool_t TmxArray::fMymx [protected]
 

Definition at line 34 of file TmxArray.h.


The documentation for this class was generated from the following file:
Generated on Fri Apr 23 16:24:16 2004 by doxygen 1.3.2