gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
EmbeddedPython Struct Reference

#include <init.hh>

Public Member Functions

 EmbeddedPython (const char *filename, const char *abspath, const char *modpath, const uint8_t *code, int zlen, int len)
 
PyObjectgetCode () const
 
bool addModule () const
 

Static Public Member Functions

static std::list
< EmbeddedPython * > & 
getList ()
 
static int initAll ()
 

Public Attributes

const char * filename
 
const char * abspath
 
const char * modpath
 
const uint8_t * code
 
int zlen
 
int len
 

Static Public Attributes

static EmbeddedPythonimporter = NULL
 
static PyObjectimporterModule = NULL
 

Detailed Description

Definition at line 62 of file init.hh.

Constructor & Destructor Documentation

EmbeddedPython::EmbeddedPython ( const char *  filename,
const char *  abspath,
const char *  modpath,
const uint8_t *  code,
int  zlen,
int  len 
)

Definition at line 77 of file init.cc.

References getList(), and importer.

Member Function Documentation

bool EmbeddedPython::addModule ( ) const

Definition at line 115 of file init.cc.

References abspath, code, filename, getCode(), importerModule, modpath, and PyCC.

PyObject * EmbeddedPython::getCode ( ) const

Definition at line 102 of file init.cc.

References code, len, panic, and zlen.

Referenced by addModule(), and initAll().

list< EmbeddedPython * > & EmbeddedPython::getList ( )
static

Definition at line 91 of file init.cc.

Referenced by EmbeddedPython(), and initAll().

int EmbeddedPython::initAll ( )
static

Definition at line 133 of file init.cc.

References code, getCode(), getList(), ArmISA::i, importer, importerModule, and PyCC.

Referenced by initM5Python().

Member Data Documentation

const char* EmbeddedPython::abspath

Definition at line 65 of file init.hh.

Referenced by addModule().

const uint8_t* EmbeddedPython::code

Definition at line 67 of file init.hh.

Referenced by addModule(), getCode(), and initAll().

const char* EmbeddedPython::filename

Definition at line 64 of file init.hh.

Referenced by addModule().

EmbeddedPython * EmbeddedPython::importer = NULL
static

Definition at line 77 of file init.hh.

Referenced by EmbeddedPython(), and initAll().

PyObject * EmbeddedPython::importerModule = NULL
static

Definition at line 78 of file init.hh.

Referenced by addModule(), and initAll().

int EmbeddedPython::len

Definition at line 69 of file init.hh.

Referenced by getCode().

const char* EmbeddedPython::modpath

Definition at line 66 of file init.hh.

Referenced by addModule().

int EmbeddedPython::zlen

Definition at line 68 of file init.hh.

Referenced by getCode().


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

Generated on Fri Jun 9 2017 13:04:09 for gem5 by doxygen 1.8.6