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

#include <string.h>

Detailed Description

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

Proxy class to access individual characters of the string.

Public Member Functions

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

Private Member Functions

 CharPtr (REFTYPE &str, Int pos)
 

Private Attributes

REFTYPE & _str
 
const Int _pos
 

Friends

class String
 
class CString
 

Constructor & Destructor Documentation

◆ CharPtr() [1/2]

CharPtr ( const CharPtr rhs)

◆ CharPtr() [2/2]

CharPtr ( REFTYPE &  str,
Int  pos 
)
private

Member Function Documentation

◆ 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