CYCLUS
Classes | Public Member Functions | Static Public Member Functions | List of all members
cyclus::DynamicModule Class Reference

Detailed Description

Definition at line 49 of file dynamic_module.h.

#include <dynamic_module.h>

Classes

class  Closer
 

Public Member Functions

 DynamicModule ()
 
std::string path ()
 

Static Public Member Functions

static void CloseAll ()
 
static bool Exists (AgentSpec spec)
 
static bool IsPyAgent (AgentSpec spec)
 
static AgentMake (Context *ctx, AgentSpec spec)
 

Constructor & Destructor Documentation

◆ DynamicModule()

cyclus::DynamicModule::DynamicModule ( )
inline

Do-nothing constructor.

Definition at line 61 of file dynamic_module.h.

Member Function Documentation

◆ CloseAll()

void cyclus::DynamicModule::CloseAll ( )
static

Closes all statically loaded dynamic modules.

This should always be called before process termination. This must be called AFTER all agents have been destructed.

Definition at line 107 of file dynamic_module.cc.

◆ Exists()

bool cyclus::DynamicModule::Exists ( AgentSpec  spec)
static

Tests that an agent spec really exists.

Definition at line 97 of file dynamic_module.cc.

◆ IsPyAgent()

bool cyclus::DynamicModule::IsPyAgent ( AgentSpec  spec)
static

Tests that an agent spec is for a Python Agent.

This will also return false if the agent doesn't already exist.

Definition at line 118 of file dynamic_module.cc.

◆ Make()

Agent * cyclus::DynamicModule::Make ( Context ctx,
AgentSpec  spec 
)
static

Returns a newly constructed agent for the given module spec.

go down a separate execution pathway if we are asked to load a Python module.

Definition at line 73 of file dynamic_module.cc.

◆ path()

std::string cyclus::DynamicModule::path ( )

The path to the module's shared object library.

Definition at line 143 of file dynamic_module.cc.


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