SNAP Library 2.0, User Reference  2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TUCh Class Reference

#include <dt.h>

List of all members.

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


Constructor & Destructor Documentation

TUCh::TUCh ( ) [inline]

Definition at line 1005 of file dt.h.

TUCh::TUCh ( const uchar _Val) [inline]

Definition at line 1006 of file dt.h.

: Val(_Val){}
TUCh::TUCh ( TSIn SIn) [inline, explicit]

Definition at line 1008 of file dt.h.

{SIn.Load(Val);}

Member Function Documentation

int TUCh::GetMemUsed ( ) const [inline]

Definition at line 1017 of file dt.h.

{return sizeof(TUCh);}
int TUCh::GetPrimHashCd ( ) const [inline]

Definition at line 1019 of file dt.h.

{return Val;}
int TUCh::GetSecHashCd ( ) const [inline]

Definition at line 1020 of file dt.h.

{return Val;}
void TUCh::LoadXml ( const PXmlTok XmlTok,
const TStr Nm 
)

Definition at line 1905 of file dt.cpp.

                                                       {
  XLoadHd(Nm);
  Val=uchar(TXmlObjSer::GetIntArg(XmlTok, "Val"));
}
TUCh::operator uchar ( ) const [inline]

Definition at line 1007 of file dt.h.

{return Val;}
uchar TUCh::operator() ( ) const [inline]

Definition at line 1016 of file dt.h.

{return Val;}
bool TUCh::operator< ( const TUCh UCh) const [inline]

Definition at line 1015 of file dt.h.

{return Val<UCh.Val;}
TUCh& TUCh::operator= ( const TUCh UCh) [inline]

Definition at line 1013 of file dt.h.

{Val=UCh.Val; return *this;}
bool TUCh::operator== ( const TUCh UCh) const [inline]

Definition at line 1014 of file dt.h.

{return Val==UCh.Val;}
void TUCh::Save ( TSOut SOut) const [inline]

Definition at line 1009 of file dt.h.

{SOut.Save(Val);}
void TUCh::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 1910 of file dt.cpp.

                                                    {
  XSaveBETagArg(Nm, "Val", TInt::GetStr(Val));
}

Member Data Documentation

const uchar TUCh::Mn = 0 [static]

Definition at line 1001 of file dt.h.

const uchar TUCh::Mx = UCHAR_MAX [static]

Definition at line 1002 of file dt.h.

Definition at line 999 of file dt.h.

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

Definition at line 1003 of file dt.h.


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