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
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 1000 of file dt.h.

Constructor & Destructor Documentation

TUCh::TUCh ( )
inline

Definition at line 1008 of file dt.h.

1008 : Val(TCh::NullCh){}
static const char NullCh
Definition: dt.h:943
uchar Val
Definition: dt.h:1002
TUCh::TUCh ( const uchar _Val)
inline

Definition at line 1009 of file dt.h.

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

Definition at line 1011 of file dt.h.

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

Member Function Documentation

int TUCh::GetMemUsed ( ) const
inline

Definition at line 1020 of file dt.h.

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

Definition at line 1022 of file dt.h.

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

Definition at line 1023 of file dt.h.

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

Definition at line 1010 of file dt.h.

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

Definition at line 1019 of file dt.h.

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

Definition at line 1018 of file dt.h.

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

Definition at line 1016 of file dt.h.

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

Definition at line 1017 of file dt.h.

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

Definition at line 1012 of file dt.h.

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

Member Data Documentation

const uchar TUCh::Mn =0
static

Definition at line 1004 of file dt.h.

const uchar TUCh::Mx =UCHAR_MAX
static

Definition at line 1005 of file dt.h.

uchar TUCh::Val

Definition at line 1002 of file dt.h.

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

Definition at line 1006 of file dt.h.


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