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

Constructor & Destructor Documentation

◆ ZStr()

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

Definition at line 23 of file XercesStrUtils.h.

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

Member Function Documentation

◆ ptr()

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.

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

Member Data Documentation

◆ m_array

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().