Back to index

salome-kernel  6.5.0
Public Member Functions | Public Attributes
stringArray Struct Reference

List of all members.

Public Member Functions

 stringArray (int nelements, int size=0)
 ~stringArray ()
char * __getitem__ (int index)
void __setitem__ (int index, char *value)

Public Attributes

char ** data
int nelem
int size

Detailed Description

Definition at line 3473 of file calcium_wrap.cpp.

Constructor & Destructor Documentation

stringArray::stringArray ( int  nelements,
int  size = 0 
) [inline]

Definition at line 3475 of file calcium_wrap.cpp.

    data= new char*[nelements];
    for(int i=0;i<nelements;i++)
      data[i]=(char *)malloc((size+1)*sizeof(char));

Definition at line 3485 of file calcium_wrap.cpp.

    for(int i=0;i<nelem;i++)
    delete [] data;

Member Function Documentation

char* stringArray::__getitem__ ( int  index) [inline]

Definition at line 3491 of file calcium_wrap.cpp.

    return data[index];
void stringArray::__setitem__ ( int  index,
char *  value 
) [inline]

Definition at line 3494 of file calcium_wrap.cpp.

    data[index] = strdup(value);

Member Data Documentation

Definition at line 3498 of file calcium_wrap.cpp.

Definition at line 3499 of file calcium_wrap.cpp.

Definition at line 3500 of file calcium_wrap.cpp.

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