SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TDbStr Class Reference

#include <dt.h>

Collaboration diagram for TDbStr:

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

Constructor & Destructor Documentation

TDbStr::TDbStr ( )
inline

Definition at line 730 of file dt.h.

730 : Str1(), Str2(){}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
TDbStr::TDbStr ( const TDbStr DbStr)
inline

Definition at line 731 of file dt.h.

731 : Str1(DbStr.Str1), Str2(DbStr.Str2){}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
TDbStr::TDbStr ( const TStr _Str1)
inline

Definition at line 732 of file dt.h.

732 : Str1(_Str1), Str2(){}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
TDbStr::TDbStr ( const TStr _Str1,
const TStr _Str2 
)
inline

Definition at line 733 of file dt.h.

733 : Str1(_Str1), Str2(_Str2){}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
TDbStr::TDbStr ( TSIn SIn)
inlineexplicit

Definition at line 734 of file dt.h.

734 : Str1(SIn), Str2(SIn){}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727

Member Function Documentation

bool TDbStr::Empty ( ) const
inline

Definition at line 751 of file dt.h.

References TStr::Empty().

751 {return (Str1.Empty())&&(Str2.Empty());}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
bool Empty() const
Definition: dt.h:491

Here is the call graph for this function:

bool TDbStr::Filled ( ) const
inline

Definition at line 752 of file dt.h.

References TStr::Empty().

Referenced by GetStr().

752 {return (!Str2.Empty())&&(!Str1.Empty());}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
bool Empty() const
Definition: dt.h:491

Here is the call graph for this function:

Here is the caller graph for this function:

int TDbStr::GetPrimHashCd ( ) const
inline

Definition at line 746 of file dt.h.

References TStr::GetPrimHashCd().

746  {
747  return Str1.GetPrimHashCd()+Str2.GetPrimHashCd();}
TStr Str2
Definition: dt.h:728
int GetPrimHashCd() const
Definition: dt.h:572
TStr Str1
Definition: dt.h:727

Here is the call graph for this function:

int TDbStr::GetSecHashCd ( ) const
inline

Definition at line 748 of file dt.h.

References TStr::GetSecHashCd().

748  {
749  return Str1.GetSecHashCd()+Str2.GetSecHashCd();}
TStr Str2
Definition: dt.h:728
int GetSecHashCd() const
Definition: dt.h:573
TStr Str1
Definition: dt.h:727

Here is the call graph for this function:

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

Definition at line 744 of file dt.h.

References Filled(), and Str2.

744  {
745  if (Filled()){return Str1+MidStr+Str2;} else {return Str1+Str2;}}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
bool Filled() const
Definition: dt.h:752

Here is the call graph for this function:

bool TDbStr::operator< ( const TDbStr DbStr) const
inline

Definition at line 741 of file dt.h.

References Str1, and Str2.

741  {
742  return (Str1<DbStr.Str1)||((Str1==DbStr.Str1)&&(Str2<DbStr.Str2));}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
TDbStr& TDbStr::operator= ( const TDbStr DbStr)
inline

Definition at line 737 of file dt.h.

References Str1, and Str2.

737  {
738  if (this!=&DbStr){Str1=DbStr.Str1; Str2=DbStr.Str2;} return *this;}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
bool TDbStr::operator== ( const TDbStr DbStr) const
inline

Definition at line 739 of file dt.h.

References Str1, and Str2.

739  {
740  return (Str1==DbStr.Str1)&&(Str2==DbStr.Str2);}
TStr Str2
Definition: dt.h:728
TStr Str1
Definition: dt.h:727
void TDbStr::Save ( TSOut SOut) const
inline

Definition at line 735 of file dt.h.

References TStr::Save().

735 {Str1.Save(SOut); Str2.Save(SOut);}
TStr Str2
Definition: dt.h:728
void Save(TSOut &SOut, const bool &IsSmall=false) const
Definition: dt.h:440
TStr Str1
Definition: dt.h:727

Here is the call graph for this function:

Member Data Documentation

TStr TDbStr::Str1

Definition at line 727 of file dt.h.

Referenced by operator<(), operator=(), and operator==().

TStr TDbStr::Str2

Definition at line 728 of file dt.h.

Referenced by GetStr(), operator<(), operator=(), and operator==().


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