Пример #1
0
    /**Get access to shared pointer containing workspace porperties, cashes the shared pointer
     into internal class variable to not allow shared pointer being deleted */
    API::LogManager_sptr PeaksWorkspace::logs()
    {
      if (m_logCash)
        return m_logCash;

      m_logCash = API::LogManager_sptr(&(this->mutableRun()), NullDeleter());
      return m_logCash;
    }
boost::shared_ptr<ResourceManager> getSharedResourceManagerInstance() {
    return boost::shared_ptr<ResourceManager>(ResourceManager::getInstance(), NullDeleter());
}
Пример #3
0
ConnectionListener::sptr ConnectionListener::getNullListener() {
  static ConnectionListener nullListener;
  return sptr( &nullListener, NullDeleter() );
}
boost::shared_ptr<EngineState> getSharedEngineStateInstance() {
    return boost::shared_ptr<EngineState>(EngineState::getInstance(), NullDeleter());
}
Пример #5
0
 wxImage Surface::asImage() const
 {
     pei::SurfacePtr sp( (pei::Surface*) this, NullDeleter() );
     return Surface::ConveToImage( sp );
 }