hpp::corbaServer::AbstractStorage< T, Base > Class Template Reference

Abstraction of storage ot HPP class. More...

#include <servant-base_REMOTE_21043.hh>

Public Types

typedef boost::weak_ptr< T > ptr_t
 
typedef T element_type
 
typedef boost::shared_ptr< T > ptr_t
 
typedef T element_type
 
typedef boost::shared_ptr< T > ptr_t
 
typedef T element_type
 
typedef boost::shared_ptr< T > ptr_t
 
typedef T element_type
 

Public Member Functions

 AbstractStorage (const ptr_t &_element)
 
 operator boost::shared_ptr< T > () const
 
 operator boost::weak_ptr< T > () const
 
long use_count () const
 
 operator bool () const
 
 AbstractStorage (const ptr_t &_element)
 
 operator boost::shared_ptr< Base > () const
 
 operator bool () const
 
 AbstractStorage (const ptr_t &_element)
 
 operator boost::shared_ptr< Base > () const
 
 operator bool () const
 
 AbstractStorage (const ptr_t &_element)
 
 operator boost::shared_ptr< Base > () const
 
 operator bool () const
 

Public Attributes

ptr_t element
 

Detailed Description

template<typename T, typename Base>
class hpp::corbaServer::AbstractStorage< T, Base >

Abstraction of storage ot HPP class.

In most cases, it is sufficient to use boost::shared_ptr<Class>. However, there are some cases where you need more information in the AbstractServantBase derived class. For instance, if you want to check the inputs (which is recommended), you may need to store the robot. See hpp::corbaServer::core_idl::Distance for an example.

Child classed must implement

template <typename T> DistanceStorage<T> cast () const
{
return DistanceStorage<T> (r, HPP_DYNAMIC_PTR_CAST(T, d));
}

Member Typedef Documentation

template<typename T, typename Base>
typedef T hpp::corbaServer::AbstractStorage< T, Base >::element_type
template<typename T, typename Base>
typedef T hpp::corbaServer::AbstractStorage< T, Base >::element_type
template<typename T, typename Base>
typedef T hpp::corbaServer::AbstractStorage< T, Base >::element_type
template<typename T, typename Base>
typedef T hpp::corbaServer::AbstractStorage< T, Base >::element_type
template<typename T, typename Base>
typedef boost::shared_ptr<T> hpp::corbaServer::AbstractStorage< T, Base >::ptr_t
template<typename T, typename Base>
typedef boost::shared_ptr<T> hpp::corbaServer::AbstractStorage< T, Base >::ptr_t
template<typename T, typename Base>
typedef boost::shared_ptr<T> hpp::corbaServer::AbstractStorage< T, Base >::ptr_t
template<typename T, typename Base>
typedef boost::weak_ptr<T> hpp::corbaServer::AbstractStorage< T, Base >::ptr_t

Constructor & Destructor Documentation

template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::AbstractStorage ( const ptr_t _element)
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::AbstractStorage ( const ptr_t _element)
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::AbstractStorage ( const ptr_t _element)
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::AbstractStorage ( const ptr_t _element)
inline

Member Function Documentation

template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::operator bool ( ) const
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::operator bool ( ) const
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::operator bool ( ) const
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::operator bool ( ) const
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::operator boost::shared_ptr< Base > ( ) const
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::operator boost::shared_ptr< Base > ( ) const
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::operator boost::shared_ptr< Base > ( ) const
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::operator boost::shared_ptr< T > ( ) const
inline
template<typename T, typename Base>
hpp::corbaServer::AbstractStorage< T, Base >::operator boost::weak_ptr< T > ( ) const
inline
template<typename T, typename Base>
long hpp::corbaServer::AbstractStorage< T, Base >::use_count ( ) const
inline

Member Data Documentation

template<typename T, typename Base>
ptr_t hpp::corbaServer::AbstractStorage< T, Base >::element