CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cms::xerces::ZStr< CharType > Class Template Reference

#include <XercesStrUtils.h>

Public Member Functions

CharType const * ptr () const
 
 ZStr (CharType const *str)
 

Private Attributes

std::unique_ptr< CharType, void(*)(CharType *) > m_array
 

Detailed Description

template<class CharType>
class cms::xerces::ZStr< CharType >

Definition at line 19 of file XercesStrUtils.h.

Constructor & Destructor Documentation

template<class CharType >
cms::xerces::ZStr< CharType >::ZStr ( CharType const *  str)
inline

Definition at line 22 of file XercesStrUtils.h.

23  : m_array(const_cast<CharType*>(str), &dispose)
24  {}
void dispose(XMLCh *ptr)
std::unique_ptr< CharType, void(*)(CharType *) > m_array

Member Function Documentation

template<class CharType >
CharType const* cms::xerces::ZStr< CharType >::ptr ( ) const
inline

Definition at line 26 of file XercesStrUtils.h.

References cms::xerces::ZStr< CharType >::m_array.

Referenced by cms::xerces::toString().

26 { return m_array.get(); }
std::unique_ptr< CharType, void(*)(CharType *) > m_array

Member Data Documentation

template<class CharType >
std::unique_ptr< CharType, void (*)(CharType*) > cms::xerces::ZStr< CharType >::m_array
private

Definition at line 29 of file XercesStrUtils.h.

Referenced by cms::xerces::ZStr< CharType >::ptr().