SST/macro
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
sstmac::sw::library Class Referenceabstract

#include <library.h>

Inheritance diagram for sstmac::sw::library:
Inheritance graph
Collaboration diagram for sstmac::sw::library:
Collaboration graph

Public Member Functions

virtual void unregister_all_libs ()
 
virtual std::string to_string () const
 
virtual std::string lib_name () const
 
virtual void init_os (operating_system *os)
 
virtual void consume_params (sprockit::sim_parameters *params)
 
virtual void incoming_event (event *ev)=0
 
operating_systemos () const
 
software_id sid () const
 
virtual ~library ()
 

Protected Member Functions

 library (const std::string &libname, software_id sid)
 
 library (const char *prefix, software_id sid)
 
void register_lib (library *lib)
 This function is provided so that libraries can instantiate, register, and use other libraries. More...
 

Protected Attributes

operating_systemos_
 
key::category key_cat_
 
software_id sid_
 

Private Attributes

std::string libname_
 

Detailed Description

Definition at line 28 of file library.h.

Constructor & Destructor Documentation

virtual sstmac::sw::library::~library ( )
virtual

Referenced by sid().

sstmac::sw::library::library ( const std::string &  libname,
software_id  sid 
)
inlineprotected

Definition at line 66 of file library.h.

sstmac::sw::library::library ( const char *  prefix,
software_id  sid 
)
inlineprotected

Definition at line 71 of file library.h.

References register_lib().

Here is the call graph for this function:

Member Function Documentation

virtual void sstmac::sw::library::consume_params ( sprockit::sim_parameters *  params)
virtual

Referenced by lib_name().

virtual void sstmac::sw::library::incoming_event ( event ev)
pure virtual
virtual void sstmac::sw::library::init_os ( operating_system os)
virtual

Reimplemented in sstmac::sw::api, sstmac::sumi_api, and sstmac::sw::blas_api.

Referenced by lib_name().

virtual std::string sstmac::sw::library::lib_name ( ) const
inlinevirtual

Definition at line 40 of file library.h.

References consume_params(), incoming_event(), init_os(), libname_, and os().

Here is the call graph for this function:

operating_system* sstmac::sw::library::os ( ) const
inline

Definition at line 54 of file library.h.

References os_.

Referenced by lib_name().

void sstmac::sw::library::register_lib ( library lib)
protected

This function is provided so that libraries can instantiate, register, and use other libraries.

Parameters
libthe library to register

Referenced by library().

software_id sstmac::sw::library::sid ( ) const
inline

Definition at line 59 of file library.h.

References sid_, and ~library().

Referenced by sumi::sumi_transport::incoming_event().

Here is the call graph for this function:

virtual std::string sstmac::sw::library::to_string ( ) const
inlinevirtual

Reimplemented in sstmac::sw::launcher, and sstmac::sw::service.

Definition at line 35 of file library.h.

References libname_.

virtual void sstmac::sw::library::unregister_all_libs ( )
virtual

Member Data Documentation

key::category sstmac::sw::library::key_cat_
protected

Definition at line 85 of file library.h.

std::string sstmac::sw::library::libname_
private

Definition at line 89 of file library.h.

Referenced by lib_name(), and to_string().

operating_system* sstmac::sw::library::os_
protected

Definition at line 84 of file library.h.

Referenced by os().

software_id sstmac::sw::library::sid_
protected

Definition at line 86 of file library.h.

Referenced by sid().


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