hpp::corbaServer::ServantBase< T, _Storage > Class Template Reference

#include <hpp/corbaserver/servant-base.hh>

Inheritance diagram for hpp::corbaServer::ServantBase< T, _Storage >:
[legend]
Collaboration diagram for hpp::corbaServer::ServantBase< T, _Storage >:
[legend]

Public Types

typedef _Storage Storage
 
typedef boost::weak_ptr< typename Storage::element_type > StorageElementWkPtr_t
 
typedef boost::shared_ptr< typename Storage::element_type > StorageElementShPtr_t
 
- Public Types inherited from hpp::corbaServer::AbstractServantBase< T >
typedef boost::shared_ptr< T > TShPtr_t
 
typedef boost::weak_ptr< T > TWkPtr_t
 

Public Member Functions

virtual ~ServantBase ()
 
virtual TShPtr_t get () const
 
StorageElementShPtr_t getT () const
 
const Storage & getS () const
 
void persistantStorage (bool persistant)
 Set to true if the servant should take ownership of this object. More...
 
bool persistantStorage () const
 See persistantStorage(bool) More...
 
- Public Member Functions inherited from hpp::corbaServer::AbstractServantBase< T >
virtual ~AbstractServantBase ()
 
virtual Server::ServantKey getServantKey () const
 

Protected Member Functions

 ServantBase (Server *server, const Storage &_s)
 
- Protected Member Functions inherited from hpp::corbaServer::AbstractServantBase< T >
 AbstractServantBase (Server *server)
 

Protected Attributes

Storage s
 
- Protected Attributes inherited from hpp::corbaServer::AbstractServantBase< T >
Server * server_
 

Member Typedef Documentation

◆ Storage

template<typename T, typename _Storage>
typedef _Storage hpp::corbaServer::ServantBase< T, _Storage >::Storage

◆ StorageElementShPtr_t

template<typename T, typename _Storage>
typedef boost::shared_ptr<typename Storage::element_type> hpp::corbaServer::ServantBase< T, _Storage >::StorageElementShPtr_t

◆ StorageElementWkPtr_t

template<typename T, typename _Storage>
typedef boost:: weak_ptr<typename Storage::element_type> hpp::corbaServer::ServantBase< T, _Storage >::StorageElementWkPtr_t

Constructor & Destructor Documentation

◆ ~ServantBase()

template<typename T, typename _Storage>
virtual hpp::corbaServer::ServantBase< T, _Storage >::~ServantBase ( )
inlinevirtual

◆ ServantBase()

template<typename T, typename _Storage>
hpp::corbaServer::ServantBase< T, _Storage >::ServantBase ( Server *  server,
const Storage &  _s 
)
inlineprotected

Member Function Documentation

◆ get()

template<typename T, typename _Storage>
virtual TShPtr_t hpp::corbaServer::ServantBase< T, _Storage >::get ( ) const
inlinevirtual

◆ getS()

template<typename T, typename _Storage>
const Storage& hpp::corbaServer::ServantBase< T, _Storage >::getS ( ) const
inline

◆ getT()

template<typename T, typename _Storage>
StorageElementShPtr_t hpp::corbaServer::ServantBase< T, _Storage >::getT ( ) const
inline

◆ persistantStorage() [1/2]

template<typename T, typename _Storage>
void hpp::corbaServer::ServantBase< T, _Storage >::persistantStorage ( bool  persistant)
inline

Set to true if the servant should take ownership of this object.

◆ persistantStorage() [2/2]

template<typename T, typename _Storage>
bool hpp::corbaServer::ServantBase< T, _Storage >::persistantStorage ( ) const
inline

Member Data Documentation

◆ s

template<typename T, typename _Storage>
Storage hpp::corbaServer::ServantBase< T, _Storage >::s
protected