SNAP Library , User Reference  2013-01-07 14:03:36
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
TDbStr Class Reference

#include <dt.h>

List of all members.

Public Member Functions

 TDbStr ()
 TDbStr (const TDbStr &DbStr)
 TDbStr (const TStr &_Str1)
 TDbStr (const TStr &_Str1, const TStr &_Str2)
 TDbStr (TSIn &SIn)
void Save (TSOut &SOut) const
TDbStroperator= (const TDbStr &DbStr)
bool operator== (const TDbStr &DbStr) const
bool operator< (const TDbStr &DbStr) const
TStr GetStr (const TStr &MidStr=TStr()) const
int GetPrimHashCd () const
int GetSecHashCd () const
bool Empty () const
bool Filled () const

Public Attributes

TStr Str1
TStr Str2

Detailed Description

Definition at line 715 of file dt.h.


Constructor & Destructor Documentation

TDbStr::TDbStr ( ) [inline]

Definition at line 720 of file dt.h.

: Str1(), Str2(){}
TDbStr::TDbStr ( const TDbStr DbStr) [inline]

Definition at line 721 of file dt.h.

: Str1(DbStr.Str1), Str2(DbStr.Str2){}
TDbStr::TDbStr ( const TStr _Str1) [inline]

Definition at line 722 of file dt.h.

: Str1(_Str1), Str2(){}
TDbStr::TDbStr ( const TStr _Str1,
const TStr _Str2 
) [inline]

Definition at line 723 of file dt.h.

: Str1(_Str1), Str2(_Str2){}
TDbStr::TDbStr ( TSIn SIn) [inline, explicit]

Definition at line 724 of file dt.h.

: Str1(SIn), Str2(SIn){}

Member Function Documentation

bool TDbStr::Empty ( ) const [inline]

Definition at line 741 of file dt.h.

{return (Str1.Empty())&&(Str2.Empty());}
bool TDbStr::Filled ( ) const [inline]

Definition at line 742 of file dt.h.

{return (!Str2.Empty())&&(!Str1.Empty());}
int TDbStr::GetPrimHashCd ( ) const [inline]

Definition at line 736 of file dt.h.

int TDbStr::GetSecHashCd ( ) const [inline]

Definition at line 738 of file dt.h.

TStr TDbStr::GetStr ( const TStr MidStr = TStr()) const [inline]

Definition at line 734 of file dt.h.

                                               {
    if (Filled()){return Str1+MidStr+Str2;} else {return Str1+Str2;}}
bool TDbStr::operator< ( const TDbStr DbStr) const [inline]

Definition at line 731 of file dt.h.

                                            {
    return (Str1<DbStr.Str1)||((Str1==DbStr.Str1)&&(Str2<DbStr.Str2));}
TDbStr& TDbStr::operator= ( const TDbStr DbStr) [inline]

Definition at line 727 of file dt.h.

                                        {
    if (this!=&DbStr){Str1=DbStr.Str1; Str2=DbStr.Str2;} return *this;}
bool TDbStr::operator== ( const TDbStr DbStr) const [inline]

Definition at line 729 of file dt.h.

                                             {
    return (Str1==DbStr.Str1)&&(Str2==DbStr.Str2);}
void TDbStr::Save ( TSOut SOut) const [inline]

Definition at line 725 of file dt.h.

{Str1.Save(SOut); Str2.Save(SOut);}

Member Data Documentation

Definition at line 717 of file dt.h.

Definition at line 718 of file dt.h.


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