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 18 of file XercesStrUtils.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file XercesStrUtils.h.

22  : m_array(const_cast<CharType*>(str), &dispose)
23  {}
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 25 of file XercesStrUtils.h.

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

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

25 { 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 28 of file XercesStrUtils.h.

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