SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TUCh Class Reference

#include <dt.h>

Public Member Functions

 TUCh ()
 
 TUCh (const uchar &_Val)
 
 operator uchar () const
 
 TUCh (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm)
 
void SaveXml (TSOut &SOut, const TStr &Nm) const
 
TUChoperator= (const TUCh &UCh)
 
bool operator== (const TUCh &UCh) const
 
bool operator< (const TUCh &UCh) const
 
uchar operator() () const
 
int GetMemUsed () const
 
int GetPrimHashCd () const
 
int GetSecHashCd () const
 

Public Attributes

uchar Val
 

Static Public Attributes

static const uchar Mn =0
 
static const uchar Mx =UCHAR_MAX
 
static const int Vals =int(TUCh::Mx)-int(TUCh::Mn)+1
 

Detailed Description

Definition at line 1093 of file dt.h.

Constructor & Destructor Documentation

TUCh::TUCh ( )
inline

Definition at line 1101 of file dt.h.

Referenced by GetMemUsed().

1101 : Val(TCh::NullCh){}
static const char NullCh
Definition: dt.h:1036
uchar Val
Definition: dt.h:1095

Here is the caller graph for this function:

TUCh::TUCh ( const uchar _Val)
inline

Definition at line 1102 of file dt.h.

1102 : Val(_Val){}
uchar Val
Definition: dt.h:1095
TUCh::TUCh ( TSIn SIn)
inlineexplicit

Definition at line 1104 of file dt.h.

References TSIn::Load().

1104 {SIn.Load(Val);}
void Load(bool &Bool)
Definition: fl.h:84
uchar Val
Definition: dt.h:1095

Here is the call graph for this function:

Member Function Documentation

int TUCh::GetMemUsed ( ) const
inline

Definition at line 1113 of file dt.h.

References TUCh().

1113 {return sizeof(TUCh);}
TUCh()
Definition: dt.h:1101

Here is the call graph for this function:

int TUCh::GetPrimHashCd ( ) const
inline

Definition at line 1115 of file dt.h.

References Val.

1115 {return Val;}
uchar Val
Definition: dt.h:1095
int TUCh::GetSecHashCd ( ) const
inline

Definition at line 1116 of file dt.h.

References Val.

1116 {return Val;}
uchar Val
Definition: dt.h:1095
void TUCh::LoadXml ( const PXmlTok XmlTok,
const TStr Nm 
)

Definition at line 1905 of file dt.cpp.

References TXmlObjSer::GetIntArg(), Val, and XLoadHd.

1905  {
1906  XLoadHd(Nm);
1907  Val=uchar(TXmlObjSer::GetIntArg(XmlTok, "Val"));
1908 }
#define XLoadHd(Nm)
Definition: bd.h:312
unsigned char uchar
Definition: bd.h:10
static int GetIntArg(const PXmlTok &XmlTok, const TStr &Nm)
Definition: xml.cpp:74
uchar Val
Definition: dt.h:1095

Here is the call graph for this function:

TUCh::operator uchar ( ) const
inline

Definition at line 1103 of file dt.h.

References Val.

1103 {return Val;}
uchar Val
Definition: dt.h:1095
uchar TUCh::operator() ( ) const
inline

Definition at line 1112 of file dt.h.

References Val.

1112 {return Val;}
uchar Val
Definition: dt.h:1095
bool TUCh::operator< ( const TUCh UCh) const
inline

Definition at line 1111 of file dt.h.

References Val.

1111 {return Val<UCh.Val;}
uchar Val
Definition: dt.h:1095
TUCh& TUCh::operator= ( const TUCh UCh)
inline

Definition at line 1109 of file dt.h.

References Val.

1109 {Val=UCh.Val; return *this;}
uchar Val
Definition: dt.h:1095
bool TUCh::operator== ( const TUCh UCh) const
inline

Definition at line 1110 of file dt.h.

References Val.

1110 {return Val==UCh.Val;}
uchar Val
Definition: dt.h:1095
void TUCh::Save ( TSOut SOut) const
inline

Definition at line 1105 of file dt.h.

References TSOut::Save().

1105 {SOut.Save(Val);}
void Save(const bool &Bool)
Definition: fl.h:173
uchar Val
Definition: dt.h:1095

Here is the call graph for this function:

void TUCh::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 1910 of file dt.cpp.

References TInt::GetStr(), Val, and XSaveBETagArg.

1910  {
1911  XSaveBETagArg(Nm, "Val", TInt::GetStr(Val));
1912 }
TStr GetStr() const
Definition: dt.h:1200
#define XSaveBETagArg(Nm, ArgNm, ArgVal)
Definition: bd.h:327
uchar Val
Definition: dt.h:1095

Here is the call graph for this function:

Member Data Documentation

const uchar TUCh::Mn =0
static

Definition at line 1097 of file dt.h.

Referenced by TUniChDb::LoadTxt().

const uchar TUCh::Mx =UCHAR_MAX
static

Definition at line 1098 of file dt.h.

Referenced by TUniChDb::LoadTxt(), and TXmlChDef::TXmlChDef().

const int TUCh::Vals =int(TUCh::Mx)-int(TUCh::Mn)+1
static

Definition at line 1099 of file dt.h.


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