LAMA
|
This singleton class provides the one and only-one manager that provides access to a Host Context. More...
#include <PGASContextManager.hpp>
Public Member Functions | |
virtual ContextPtr | getContext () |
virtual ContextPtr | getContext (int) |
This routine must be implemented by each context manager individually. | |
~PGASContextManager () | |
Static Public Member Functions | |
static void | setAsCurrent () |
Protected Member Functions | |
LAMA_LOG_DECL_STATIC_LOGGER (logger) | |
void | registerFactory () |
This method sets the context manager as responsible for its context type in the factory. | |
Private Member Functions | |
PGASContextManager () | |
Static Private Attributes | |
static boost::weak_ptr< const class PGASContext > | contextInstance |
static PGASContextManager | theInstance |
This singleton class provides the one and only-one manager that provides access to a Host Context.
The HostManager will add itself to the ContextFactory so that OSHContext pointers can be obtained by the Context factory.
lama::PGASContextManager::PGASContextManager | ( | ) | [private] |
References lama::ContextManager::registerFactory().
ContextPtr lama::PGASContextManager::getContext | ( | ) | [virtual] |
References contextInstance.
Referenced by getContext().
ContextPtr lama::PGASContextManager::getContext | ( | int | deviceNr | ) | [virtual] |
This routine must be implemented by each context manager individually.
Implements lama::ContextManager.
References getContext().
lama::ContextManager::LAMA_LOG_DECL_STATIC_LOGGER | ( | logger | ) | [protected, inherited] |
void lama::ContextManager::registerFactory | ( | ) | [protected, inherited] |
This method sets the context manager as responsible for its context type in the factory.
References lama::ContextFactory::addContextManager(), lama::ContextFactory::getFactory(), and lama::ContextManager::mContextType.
Referenced by lama::CUDAContextManager::CUDAContextManager(), lama::DefaultHostContextManager::DefaultHostContextManager(), PGASContextManager(), setAsCurrent(), and lama::CUDAHostContextManager::setAsCurrent().
void lama::PGASContextManager::setAsCurrent | ( | ) | [static] |
References lama::ContextManager::registerFactory(), and theInstance.
boost::weak_ptr< const PGASContext > lama::PGASContextManager::contextInstance [static, private] |
Referenced by getContext().
PGASContextManager lama::PGASContextManager::theInstance [static, private] |
Referenced by setAsCurrent().