SNAP Library 6.0, User 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.

1101 : Val(TCh::NullCh){}
static const char NullCh
Definition: dt.h:1036
uchar Val
Definition: dt.h:1095
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.

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

Member Function Documentation

int TUCh::GetMemUsed ( ) const
inline

Definition at line 1113 of file dt.h.

1113 {return sizeof(TUCh);}
TUCh()
Definition: dt.h:1101
int TUCh::GetPrimHashCd ( ) const
inline

Definition at line 1115 of file dt.h.

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

Definition at line 1116 of file dt.h.

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.

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
TUCh::operator uchar ( ) const
inline

Definition at line 1103 of file dt.h.

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

Definition at line 1112 of file dt.h.

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.

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.

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.

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.

1105 {SOut.Save(Val);}
void Save(const bool &Bool)
Definition: fl.h:173
uchar Val
Definition: dt.h:1095
void TUCh::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 1910 of file dt.cpp.

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

Member Data Documentation

const uchar TUCh::Mn =0
static

Definition at line 1097 of file dt.h.

const uchar TUCh::Mx =UCHAR_MAX
static

Definition at line 1098 of file dt.h.

uchar TUCh::Val

Definition at line 1095 of file dt.h.

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: