ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ns3::CoojaLoader Class Reference
+ Inheritance diagram for ns3::CoojaLoader:
+ Collaboration diagram for ns3::CoojaLoader:

Classes

struct  Module

Public Member Functions

 CoojaLoader ()
- Public Member Functions inherited from ns3::Loader
virtual ~Loader ()=0
virtual LoaderClone (void)=0
virtual void * Load (std::string filename, int flag)=0
virtual void * Lookup (void *module, std::string symbol)=0
virtual void NotifyEndExecute (void)
virtual void NotifyStartExecute (void)
virtual void Unload (void *module)=0
virtual void UnloadAll (void)=0

Private Member Functions

virtual ~CoojaLoader ()
virtual LoaderClone (void)
virtual void * Load (std::string filename, int flag)
struct CoojaLoader::ModuleLoadModule (std::string filename, int flag)
virtual void * Lookup (void *module, std::string symbol)
virtual void NotifyEndExecute (void)
virtual void NotifyStartExecute (void)
struct CoojaLoader::ModuleSearchModule (uint32_t id)
struct SharedModule * SearchSharedModule (uint32_t id)
virtual void Unload (void *module)
virtual void UnloadAll (void)
void UnrefSharedModule (SharedModule *search)

Static Private Member Functions

static struct SharedModulesPeek (void)

Private Attributes

std::list< struct Module * > m_modules

Detailed Description

Definition at line 48 of file cooja-loader-factory.cc.

Constructor & Destructor Documentation

ns3::CoojaLoader::CoojaLoader ( )

Definition at line 380 of file cooja-loader-factory.cc.

Referenced by Clone().

+ Here is the caller graph for this function:

ns3::CoojaLoader::~CoojaLoader ( )
privatevirtual

Definition at line 385 of file cooja-loader-factory.cc.

References UnloadAll().

+ Here is the call graph for this function:

Member Function Documentation

Loader * ns3::CoojaLoader::Clone ( void  )
privatevirtual
void * ns3::CoojaLoader::Load ( std::string  filename,
int  flag 
)
privatevirtual

Definition at line 170 of file cooja-loader-factory.cc.

References LoadModule(), ns3::CoojaLoader::Module::module, and ns3::CoojaLoader::Module::refcount.

+ Here is the call graph for this function:

void * ns3::CoojaLoader::Lookup ( void *  module,
std::string  symbol 
)
privatevirtual

Definition at line 373 of file cooja-loader-factory.cc.

void ns3::CoojaLoader::NotifyEndExecute ( void  )
privatevirtual

Definition at line 135 of file cooja-loader-factory.cc.

void ns3::CoojaLoader::NotifyStartExecute ( void  )
privatevirtual
struct SharedModules * ns3::CoojaLoader::Peek ( void  )
staticreadprivate

Definition at line 103 of file cooja-loader-factory.cc.

Referenced by LoadModule(), SearchSharedModule(), and UnrefSharedModule().

+ Here is the caller graph for this function:

struct CoojaLoader::Module * ns3::CoojaLoader::SearchModule ( uint32_t  id)
readprivate

Definition at line 180 of file cooja-loader-factory.cc.

References m_modules, and ns3::CoojaLoader::Module::module.

Referenced by Clone(), and LoadModule().

+ Here is the caller graph for this function:

struct SharedModule * ns3::CoojaLoader::SearchSharedModule ( uint32_t  id)
readprivate

Definition at line 195 of file cooja-loader-factory.cc.

References ns3::SharedModules::modules, and Peek().

Referenced by LoadModule().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::CoojaLoader::Unload ( void *  module)
privatevirtual
void ns3::CoojaLoader::UnloadAll ( void  )
privatevirtual

Definition at line 322 of file cooja-loader-factory.cc.

References ns3::CoojaLoader::Module::buffer, m_modules, ns3::CoojaLoader::Module::module, and UnrefSharedModule().

Referenced by ~CoojaLoader().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::CoojaLoader::UnrefSharedModule ( SharedModule *  search)
private

Definition at line 292 of file cooja-loader-factory.cc.

References ns3::SharedModules::modules, and Peek().

Referenced by Unload(), and UnloadAll().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::list<struct Module *> ns3::CoojaLoader::m_modules
private

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