gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::EmbeddedPyBind Class Reference

#include <init.hh>

Public Member Functions

 EmbeddedPyBind (const char *_name, void(*init_func)(pybind11::module_ &), const char *_base)
 
 EmbeddedPyBind (const char *_name, void(*init_func)(pybind11::module_ &))
 

Static Public Member Functions

static void initAll (pybind11::module_ &_m5)
 

Private Member Functions

void init ()
 

Static Private Member Functions

static std::map< std::string, EmbeddedPyBind * > & getReady ()
 
static std::multimap< std::string, EmbeddedPyBind * > & getPending ()
 
static void initPending (const std::string &finished)
 

Private Attributes

void(* initFunc )(pybind11::module_ &)
 
bool registered = false
 
const std::string name
 
const std::string base
 

Static Private Attributes

static pybind11::module_ * mod = nullptr
 

Detailed Description

Definition at line 53 of file init.hh.

Constructor & Destructor Documentation

◆ EmbeddedPyBind() [1/2]

gem5::EmbeddedPyBind::EmbeddedPyBind ( const char * _name,
void(* init_func )(pybind11::module_ &),
const char * _base )

◆ EmbeddedPyBind() [2/2]

gem5::EmbeddedPyBind::EmbeddedPyBind ( const char * _name,
void(* init_func )(pybind11::module_ &) )

Member Function Documentation

◆ getPending()

std::multimap< std::string, EmbeddedPyBind * > & gem5::EmbeddedPyBind::getPending ( )
staticprivate

Definition at line 122 of file init.cc.

◆ getReady()

std::map< std::string, EmbeddedPyBind * > & gem5::EmbeddedPyBind::getReady ( )
staticprivate

Definition at line 115 of file init.cc.

◆ init()

void gem5::EmbeddedPyBind::init ( )
private

Definition at line 74 of file init.cc.

References gem5::X86ISA::base, gem5::cprintf(), gem5::X86ISA::mod, and name().

◆ initAll()

void gem5::EmbeddedPyBind::initAll ( pybind11::module_ & _m5)
static

◆ initPending()

void gem5::EmbeddedPyBind::initPending ( const std::string & finished)
staticprivate

Definition at line 101 of file init.cc.

Member Data Documentation

◆ base

const std::string gem5::EmbeddedPyBind::base
private

Definition at line 72 of file init.hh.

◆ initFunc

void(* gem5::EmbeddedPyBind::initFunc) (pybind11::module_ &)
private

Definition at line 66 of file init.hh.

◆ mod

pybind11::module_ * gem5::EmbeddedPyBind::mod = nullptr
staticprivate

Definition at line 75 of file init.hh.

◆ name

const std::string gem5::EmbeddedPyBind::name
private

Definition at line 71 of file init.hh.

◆ registered

bool gem5::EmbeddedPyBind::registered = false
private

Definition at line 70 of file init.hh.


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

Generated on Tue Jun 18 2024 16:24:11 for gem5 by doxygen 1.11.0