SNAP Library , Developer Reference  2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TCodecWrapper< TCodecImpl_ > Class Template Reference

#include <unicode.h>

Inheritance diagram for TCodecWrapper< TCodecImpl_ >:
Collaboration diagram for TCodecWrapper< TCodecImpl_ >:

List of all members.

Public Types

typedef TCodecImpl_ TCodecImpl

Public Member Functions

virtual TStr GetName () const
virtual void Test () const
virtual size_t ToUnicode (const TIntV &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const
virtual size_t ToUnicode (const TStr &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const
virtual size_t FromUnicode (const TIntV &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const
virtual size_t FromUnicode (const TIntV &src, size_t srcIdx, const size_t srcCount, TChA &dest, const bool clrDest=true) const
virtual size_t FromUnicode (const TIntV &src, size_t srcIdx, const size_t srcCount, TStr &dest, const bool clrDest=true) const

Public Attributes

TCodecImpl impl

Detailed Description

template<class TCodecImpl_>
class TCodecWrapper< TCodecImpl_ >

Definition at line 376 of file unicode.h.


Member Typedef Documentation

template<class TCodecImpl_ >
typedef TCodecImpl_ TCodecWrapper< TCodecImpl_ >::TCodecImpl

Definition at line 379 of file unicode.h.


Member Function Documentation

template<class TCodecImpl_ >
virtual size_t TCodecWrapper< TCodecImpl_ >::FromUnicode ( const TIntV src,
size_t  srcIdx,
const size_t  srcCount,
TIntV dest,
const bool  clrDest = true 
) const [inline, virtual]

Implements TCodecBase.

Definition at line 392 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

                                                                                                                                         {
                return impl.FromUnicode(src, srcIdx, srcCount, dest, clrDest); }
template<class TCodecImpl_ >
virtual size_t TCodecWrapper< TCodecImpl_ >::FromUnicode ( const TIntV src,
size_t  srcIdx,
const size_t  srcCount,
TChA dest,
const bool  clrDest = true 
) const [inline, virtual]

Implements TCodecBase.

Definition at line 394 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

                                                                                                                                        {
                return impl.FromUnicode(src, srcIdx, srcCount, dest, clrDest); }
template<class TCodecImpl_ >
virtual size_t TCodecWrapper< TCodecImpl_ >::FromUnicode ( const TIntV src,
size_t  srcIdx,
const size_t  srcCount,
TStr dest,
const bool  clrDest = true 
) const [inline, virtual]

Implements TCodecBase.

Definition at line 396 of file unicode.h.

References TChA::CStr(), and TCodecWrapper< TCodecImpl_ >::impl.

                                                                                                                                        {
                TChA buf; size_t retVal = impl.FromUnicode(src, srcIdx, srcCount, buf, false);
                if (clrDest) dest += buf.CStr(); else dest = buf.CStr();
                return retVal; }

Here is the call graph for this function:

template<class TCodecImpl_ >
virtual TStr TCodecWrapper< TCodecImpl_ >::GetName ( ) const [inline, virtual]

Implements TCodecBase.

Definition at line 383 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

{ return impl.GetName(); }
template<class TCodecImpl_ >
virtual void TCodecWrapper< TCodecImpl_ >::Test ( ) const [inline, virtual]

Reimplemented from TCodecBase.

Definition at line 385 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

{ impl.Test(); }
template<class TCodecImpl_ >
virtual size_t TCodecWrapper< TCodecImpl_ >::ToUnicode ( const TIntV src,
size_t  srcIdx,
const size_t  srcCount,
TIntV dest,
const bool  clrDest = true 
) const [inline, virtual]

Implements TCodecBase.

Definition at line 387 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

                                                                                                                                       {
                return impl.ToUnicode(src, srcIdx, srcCount, dest, clrDest); }
template<class TCodecImpl_ >
virtual size_t TCodecWrapper< TCodecImpl_ >::ToUnicode ( const TStr src,
size_t  srcIdx,
const size_t  srcCount,
TIntV dest,
const bool  clrDest = true 
) const [inline, virtual]

Implements TCodecBase.

Definition at line 389 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

                                                                                                                                      {
                return impl.ToUnicode(src, srcIdx, srcCount, dest, clrDest); }

Member Data Documentation


The documentation for this class was generated from the following file: