LAMA
lama::PGASContextManager Class Reference

This singleton class provides the one and only-one manager that provides access to a Host Context. More...

#include <PGASContextManager.hpp>

Inheritance diagram for lama::PGASContextManager:

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

Detailed Description

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.


Constructor & Destructor Documentation


Member Function Documentation

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]

Field Documentation

boost::weak_ptr< const PGASContext > lama::PGASContextManager::contextInstance [static, private]

Referenced by getContext().


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