SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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
TCodecBase Class Referenceabstract

#include <unicode.h>

Inherited by TCodecWrapper< TCodecImpl_ >.

Public Member Functions

virtual ~TCodecBase ()
 
virtual TStr GetName () const =0
 
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 =0
 
virtual size_t ToUnicode (const TStr &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const =0
 
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
 
virtual size_t FromUnicode (const TIntV &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const =0
 
virtual size_t FromUnicode (const TIntV &src, size_t srcIdx, const size_t srcCount, TChA &dest, const bool clrDest=true) const =0
 
virtual size_t FromUnicode (const TIntV &src, size_t srcIdx, const size_t srcCount, TStr &dest, const bool clrDest=true) const =0
 
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
 

Static Public Member Functions

template<class TCodecImpl >
static PCodecBase New ()
 

Protected Attributes

TCRef CRef
 

Friends

class TPt< TCodecBase >
 

Detailed Description

Definition at line 332 of file unicode.h.

Constructor & Destructor Documentation

virtual TCodecBase::~TCodecBase ( )
inlinevirtual

Definition at line 338 of file unicode.h.

338 { }

Member Function Documentation

virtual size_t TCodecBase::FromUnicode ( const TIntV src,
size_t  srcIdx,
const size_t  srcCount,
TIntV dest,
const bool  clrDest = true 
) const
pure virtual
virtual size_t TCodecBase::FromUnicode ( const TIntV src,
size_t  srcIdx,
const size_t  srcCount,
TChA dest,
const bool  clrDest = true 
) const
pure virtual
virtual size_t TCodecBase::FromUnicode ( const TIntV src,
size_t  srcIdx,
const size_t  srcCount,
TStr dest,
const bool  clrDest = true 
) const
pure virtual
size_t TCodecBase::FromUnicode ( const TIntV src,
TIntV dest,
const bool  clrDest = true 
) const
inline

Definition at line 361 of file unicode.h.

361 { return FromUnicode(src, 0, src.Len(), dest, clrDest); }
virtual size_t FromUnicode(const TIntV &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const =0
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:547
size_t TCodecBase::FromUnicode ( const TIntV src,
TChA dest,
const bool  clrDest = true 
) const
inline

Definition at line 362 of file unicode.h.

362 { return FromUnicode(src, 0, src.Len(), dest, clrDest); }
virtual size_t FromUnicode(const TIntV &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const =0
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:547
size_t TCodecBase::FromUnicode ( const TIntV src,
TStr dest,
const bool  clrDest = true 
) const
inline

Definition at line 363 of file unicode.h.

363 { return FromUnicode(src, 0, src.Len(), dest, clrDest); }
virtual size_t FromUnicode(const TIntV &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const =0
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:547
virtual TStr TCodecBase::GetName ( ) const
pure virtual
template<class TCodecImpl >
PCodecBase TCodecBase::New ( )
static

Definition at line 404 of file unicode.h.

404  {
405  return new TCodecWrapper<TCodecImpl>();
406 }
virtual void TCodecBase::Test ( ) const
inlinevirtual

Reimplemented in TCodecWrapper< TCodecImpl_ >.

Definition at line 345 of file unicode.h.

345 { }
virtual size_t TCodecBase::ToUnicode ( const TIntV src,
size_t  srcIdx,
const size_t  srcCount,
TIntV dest,
const bool  clrDest = true 
) const
pure virtual
virtual size_t TCodecBase::ToUnicode ( const TStr src,
size_t  srcIdx,
const size_t  srcCount,
TIntV dest,
const bool  clrDest = true 
) const
pure virtual
size_t TCodecBase::ToUnicode ( const TIntV src,
TIntV dest,
const bool  clrDest = true 
) const
inline

Definition at line 352 of file unicode.h.

352 { return ToUnicode(src, 0, src.Len(), dest, clrDest); }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:547
virtual size_t ToUnicode(const TIntV &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const =0
size_t TCodecBase::ToUnicode ( const TStr src,
TIntV dest,
const bool  clrDest = true 
) const
inline

Definition at line 353 of file unicode.h.

353 { return ToUnicode(src, 0, src.Len(), dest, clrDest); }
int Len() const
Definition: dt.h:487
virtual size_t ToUnicode(const TIntV &src, size_t srcIdx, const size_t srcCount, TIntV &dest, const bool clrDest=true) const =0

Friends And Related Function Documentation

friend class TPt< TCodecBase >
friend

Definition at line 336 of file unicode.h.

Member Data Documentation

TCRef TCodecBase::CRef
protected

Definition at line 335 of file unicode.h.


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