mirror of
https://github.com/nasa/trick.git
synced 2025-01-17 10:20:28 +00:00
37 lines
759 B
C++
37 lines
759 B
C++
|
|
||
|
#ifndef __SWIG_REF_HH__
|
||
|
#define __SWIG_REF_HH__
|
||
|
|
||
|
#include <string>
|
||
|
#include "sim_services/MemoryManager/include/reference.h"
|
||
|
|
||
|
#define TRICK_SWIG_PARAMETER_INCORRECT_TYPE 9
|
||
|
#define TRICK_SWIG_SLICE_ASSIGNMENT 10
|
||
|
#define TRICK_SWIG_UNKNOWN_INDEX_TYPE 11
|
||
|
|
||
|
class swig_ref {
|
||
|
public:
|
||
|
|
||
|
REF2 ref ;
|
||
|
char * str_output ;
|
||
|
|
||
|
swig_ref() ;
|
||
|
~swig_ref() ;
|
||
|
|
||
|
PyObject * __getitem__(int ii) ;
|
||
|
PyObject * __getitem__(PyObject * index) ;
|
||
|
int __setitem__( int ii, PyObject * obj1 ) ;
|
||
|
int __setitem__( PyObject * index , PyObject * obj1 ) ;
|
||
|
|
||
|
char * __str__() ;
|
||
|
char * __repr__() ;
|
||
|
|
||
|
PyObject * __len__() ;
|
||
|
|
||
|
private:
|
||
|
bool need_to_deref ;
|
||
|
void deref_address() ;
|
||
|
} ;
|
||
|
|
||
|
#endif
|