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

◆ ZStr()

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

Definition at line 22 of file XercesStrUtils.h.

22 : m_array(const_cast<CharType*>(str), &dispose) {}

Member Function Documentation

◆ ptr()

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

Definition at line 24 of file XercesStrUtils.h.

24 { return m_array.get(); }

References cms::xerces::ZStr< 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 27 of file XercesStrUtils.h.

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

cms::xerces::dispose
void dispose(XMLCh *ptr)
Definition: XercesStrUtils.h:15
str
#define str(s)
Definition: TestProcessor.cc:51
cms::xerces::ZStr::m_array
std::unique_ptr< CharType, void(*)(CharType *)> m_array
Definition: XercesStrUtils.h:27