StringTemplate< INTERFACETYPE, REFTYPE, CHARTYPE >::CharPtr Class Reference

#include <string.h>

详细描述

template<typename INTERFACETYPE, typename REFTYPE, typename CHARTYPE>
class maxon::StringTemplate< INTERFACETYPE, REFTYPE, CHARTYPE >::CharPtr

Proxy class to access individual characters of the string.

公共成员函数

  CharPtr (const CharPtr &rhs)
CharPtr operator= (const CharPtr &rhs)
CharPtr operator= (CHARTYPE c)
  operator CHARTYPE () const

私有成员函数

  CharPtr (REFTYPE &str, Int pos)

Private Attributes

REFTYPE &  _str
const Int   _pos

Friends

class  String
class  CString

构造函数 & 析构函数文档编制

◆  CharPtr() [1/2]

CharPtr ( const CharPtr rhs )

◆  CharPtr() [2/2]

CharPtr ( REFTYPE &  str ,
Int   pos  
)
private

成员函数文档编制

◆  operator=() [1/2]

CharPtr & operator= ( const CharPtr rhs )

Write pointer to a character.

◆  operator=() [2/2]

CharPtr & operator= ( CHARTYPE  c )

Write pointer to a character.

◆  operator CHARTYPE()

operator CHARTYPE ( ) const

Read pointer to a character.

Friends And Related Function Documentation

◆  String

friend class String
friend

◆  CString

friend class CString
friend

Member Data Documentation

◆  _str

REFTYPE& _str private

◆  _pos

const Int _pos
private