CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Public Attributes

cond::service::GetTokenFromPointer< T > Struct Template Reference

#include <PoolDBOutputService.h>

Inheritance diagram for cond::service::GetTokenFromPointer< T >:
cond::service::GetToken

List of all members.

Public Member Functions

 GetTokenFromPointer (T *p)
virtual std::string operator() (cond::DbSession &pooldb) const

Static Public Member Functions

static std::string classNameForPointer (T *pointer)

Public Attributes

Tm_p

Detailed Description

template<typename T>
struct cond::service::GetTokenFromPointer< T >

Definition at line 69 of file PoolDBOutputService.h.


Constructor & Destructor Documentation

template<typename T >
cond::service::GetTokenFromPointer< T >::GetTokenFromPointer ( T p) [inline, explicit]

Definition at line 77 of file PoolDBOutputService.h.

                                          :
        m_p(p){}

Member Function Documentation

template<typename T >
static std::string cond::service::GetTokenFromPointer< T >::classNameForPointer ( T pointer) [inline, static]

Definition at line 72 of file PoolDBOutputService.h.

References cond::classNameForTypeId().

Referenced by cond::service::GetTokenFromPointer< T >::operator()().

                                                 {
        if(!pointer) return classNameForTypeId( typeid(T) );
        return classNameForTypeId( typeid(*pointer) );
      }
template<typename T >
virtual std::string cond::service::GetTokenFromPointer< T >::operator() ( cond::DbSession pooldb) const [inline, virtual]

Member Data Documentation

template<typename T >
T* cond::service::GetTokenFromPointer< T >::m_p