gem5  v22.1.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
gem5::EmbeddedPython Struct Reference

#include <embedded.hh>

Public Member Functions

 EmbeddedPython (const char *abspath, const char *modpath, const uint8_t *code, int zlen, int len)
 
pybind11::object getCode () const
 
bool addModule () const
 

Static Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 56 of file embedded.hh.

Constructor & Destructor Documentation

◆ EmbeddedPython()

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

Definition at line 57 of file embedded.cc.

References getList().

Member Function Documentation

◆ addModule()

bool gem5::EmbeddedPython::addModule ( ) const

Definition at line 92 of file embedded.cc.

References abspath, getCode(), and modpath.

◆ getCode()

py::object gem5::EmbeddedPython::getCode ( ) const

Definition at line 76 of file embedded.cc.

References code, len, and zlen.

Referenced by addModule().

◆ getList()

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

Definition at line 65 of file embedded.cc.

Referenced by EmbeddedPython(), and initAll().

◆ initAll()

int gem5::EmbeddedPython::initAll ( )
static

Definition at line 103 of file embedded.cc.

References getList().

Member Data Documentation

◆ abspath

const char* gem5::EmbeddedPython::abspath

Definition at line 58 of file embedded.hh.

Referenced by addModule().

◆ code

const uint8_t* gem5::EmbeddedPython::code

Definition at line 60 of file embedded.hh.

Referenced by getCode().

◆ len

int gem5::EmbeddedPython::len

Definition at line 62 of file embedded.hh.

Referenced by getCode().

◆ modpath

const char* gem5::EmbeddedPython::modpath

Definition at line 59 of file embedded.hh.

Referenced by addModule().

◆ zlen

int gem5::EmbeddedPython::zlen

Definition at line 61 of file embedded.hh.

Referenced by getCode().


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

Generated on Wed Dec 21 2022 10:23:29 for gem5 by doxygen 1.9.1