SNAP Library 4.0, User 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
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 1090 of file dt.h.

Constructor & Destructor Documentation

TUCh::TUCh ( )
inline

Definition at line 1098 of file dt.h.

1098 : Val(TCh::NullCh){}
static const char NullCh
Definition: dt.h:1033
uchar Val
Definition: dt.h:1092
TUCh::TUCh ( const uchar _Val)
inline

Definition at line 1099 of file dt.h.

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

Definition at line 1101 of file dt.h.

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

Member Function Documentation

int TUCh::GetMemUsed ( ) const
inline

Definition at line 1110 of file dt.h.

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

Definition at line 1112 of file dt.h.

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

Definition at line 1113 of file dt.h.

1113 {return Val;}
uchar Val
Definition: dt.h:1092
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:1092
TUCh::operator uchar ( ) const
inline

Definition at line 1100 of file dt.h.

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

Definition at line 1109 of file dt.h.

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

Definition at line 1108 of file dt.h.

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

Definition at line 1106 of file dt.h.

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

Definition at line 1107 of file dt.h.

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

Definition at line 1102 of file dt.h.

1102 {SOut.Save(Val);}
void Save(const bool &Bool)
Definition: fl.h:173
uchar Val
Definition: dt.h:1092
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:1197
#define XSaveBETagArg(Nm, ArgNm, ArgVal)
Definition: bd.h:327
uchar Val
Definition: dt.h:1092

Member Data Documentation

const uchar TUCh::Mn =0
static

Definition at line 1094 of file dt.h.

const uchar TUCh::Mx =UCHAR_MAX
static

Definition at line 1095 of file dt.h.

uchar TUCh::Val

Definition at line 1092 of file dt.h.

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

Definition at line 1096 of file dt.h.


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