SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TCodecWrapper< TCodecImpl_ > Class Template Reference

#include <unicode.h>

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

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 Member Functions inherited from TCodecBase
virtual ~TCodecBase ()
 
size_t ToUnicode (const TIntV &src, TIntV &dest, const bool clrDest=true) const
 
size_t ToUnicode (const TStr &src, TIntV &dest, const bool clrDest=true) const
 
size_t FromUnicode (const TIntV &src, TIntV &dest, const bool clrDest=true) const
 
size_t FromUnicode (const TIntV &src, TChA &dest, const bool clrDest=true) const
 
size_t FromUnicode (const TIntV &src, TStr &dest, const bool clrDest=true) const
 

Public Attributes

TCodecImpl impl
 

Additional Inherited Members

- Static Public Member Functions inherited from TCodecBase
template<class TCodecImpl >
static PCodecBase New ()
 
- Protected Attributes inherited from TCodecBase
TCRef CRef
 

Detailed Description

template<class TCodecImpl_>
class TCodecWrapper< TCodecImpl_ >

Definition at line 377 of file unicode.h.

Member Typedef Documentation

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

Definition at line 380 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
inlinevirtual

Implements TCodecBase.

Definition at line 393 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

393  {
394  return impl.FromUnicode(src, srcIdx, srcCount, dest, clrDest); }
TCodecImpl impl
Definition: unicode.h:381
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
inlinevirtual

Implements TCodecBase.

Definition at line 395 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

395  {
396  return impl.FromUnicode(src, srcIdx, srcCount, dest, clrDest); }
TCodecImpl impl
Definition: unicode.h:381
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
inlinevirtual

Implements TCodecBase.

Definition at line 397 of file unicode.h.

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

397  {
398  TChA buf; size_t retVal = impl.FromUnicode(src, srcIdx, srcCount, buf, false);
399  if (clrDest) dest += buf.CStr(); else dest = buf.CStr();
400  return retVal; }
TCodecImpl impl
Definition: unicode.h:381
char * CStr()
Definition: dt.h:255
Definition: dt.h:201

Here is the call graph for this function:

template<class TCodecImpl_ >
virtual TStr TCodecWrapper< TCodecImpl_ >::GetName ( ) const
inlinevirtual

Implements TCodecBase.

Definition at line 384 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

384 { return impl.GetName(); }
TCodecImpl impl
Definition: unicode.h:381
template<class TCodecImpl_ >
virtual void TCodecWrapper< TCodecImpl_ >::Test ( ) const
inlinevirtual

Reimplemented from TCodecBase.

Definition at line 386 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

386 { impl.Test(); }
TCodecImpl impl
Definition: unicode.h:381
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
inlinevirtual

Implements TCodecBase.

Definition at line 388 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

388  {
389  return impl.ToUnicode(src, srcIdx, srcCount, dest, clrDest); }
TCodecImpl impl
Definition: unicode.h:381
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
inlinevirtual

Implements TCodecBase.

Definition at line 390 of file unicode.h.

References TCodecWrapper< TCodecImpl_ >::impl.

390  {
391  return impl.ToUnicode(src, srcIdx, srcCount, dest, clrDest); }
TCodecImpl impl
Definition: unicode.h:381

Member Data Documentation


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