SNAP Library 4.0, Developer 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
TQuad< TVal1, TVal2, TVal3, TVal4 > Class Template Reference

#include <ds.h>

Public Member Functions

 TQuad ()
 
 TQuad (const TQuad &Quad)
 
 TQuad (const TVal1 &_Val1, const TVal2 &_Val2, const TVal3 &_Val3, const TVal4 &_Val4)
 
 TQuad (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm="")
 
void SaveXml (TSOut &SOut, const TStr &Nm) const
 
TQuadoperator= (const TQuad &Quad)
 
bool operator== (const TQuad &Quad) const
 
bool operator< (const TQuad &Quad) const
 
int GetPrimHashCd () const
 
int GetSecHashCd () const
 
void GetVal (TVal1 &_Val1, TVal2 &_Val2, TVal3 &_Val3, TVal4 &_Val4) const
 
const TVal1 & GetVal1 () const
 
const TVal2 & GetVal2 () const
 
const TVal3 & GetVal3 () const
 
const TVal4 & GetVal4 () const
 

Public Attributes

TVal1 Val1
 
TVal2 Val2
 
TVal3 Val3
 
TVal4 Val4
 

Detailed Description

template<class TVal1, class TVal2, class TVal3, class TVal4>
class TQuad< TVal1, TVal2, TVal3, TVal4 >

Definition at line 219 of file ds.h.

Constructor & Destructor Documentation

template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
TQuad< TVal1, TVal2, TVal3, TVal4 >::TQuad ( )
inline

Definition at line 226 of file ds.h.

226  :
227  Val1(), Val2(), Val3(), Val4(){}
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
TQuad< TVal1, TVal2, TVal3, TVal4 >::TQuad ( const TQuad< TVal1, TVal2, TVal3, TVal4 > &  Quad)
inline

Definition at line 228 of file ds.h.

228  :
229  Val1(Quad.Val1), Val2(Quad.Val2), Val3(Quad.Val3), Val4(Quad.Val4){}
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
TQuad< TVal1, TVal2, TVal3, TVal4 >::TQuad ( const TVal1 &  _Val1,
const TVal2 &  _Val2,
const TVal3 &  _Val3,
const TVal4 &  _Val4 
)
inline

Definition at line 230 of file ds.h.

230  :
231  Val1(_Val1), Val2(_Val2), Val3(_Val3), Val4(_Val4){}
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
TQuad< TVal1, TVal2, TVal3, TVal4 >::TQuad ( TSIn SIn)
inlineexplicit

Definition at line 232 of file ds.h.

232  :
233  Val1(SIn), Val2(SIn), Val3(SIn), Val4(SIn){}
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224

Member Function Documentation

template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
int TQuad< TVal1, TVal2, TVal3, TVal4 >::GetPrimHashCd ( ) const
inline

Definition at line 250 of file ds.h.

References TPairHashImpl2::GetHashCd(), TQuad< TVal1, TVal2, TVal3, TVal4 >::Val1, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val2, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val3, and TQuad< TVal1, TVal2, TVal3, TVal4 >::Val4.

250 {return TPairHashImpl::GetHashCd(TPairHashImpl::GetHashCd(Val1.GetPrimHashCd(), Val2.GetPrimHashCd()), TPairHashImpl::GetHashCd(Val3.GetPrimHashCd(), Val4.GetPrimHashCd())); }
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
static int GetHashCd(const int hc1, const int hc2)
Definition: bd.h:590

Here is the call graph for this function:

template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
int TQuad< TVal1, TVal2, TVal3, TVal4 >::GetSecHashCd ( ) const
inline

Definition at line 251 of file ds.h.

References TPairHashImpl2::GetHashCd(), TQuad< TVal1, TVal2, TVal3, TVal4 >::Val1, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val2, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val3, and TQuad< TVal1, TVal2, TVal3, TVal4 >::Val4.

251 {return TPairHashImpl::GetHashCd(TPairHashImpl::GetHashCd(Val2.GetSecHashCd(), Val3.GetSecHashCd()), TPairHashImpl::GetHashCd(Val4.GetSecHashCd(), Val1.GetSecHashCd())); }
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
static int GetHashCd(const int hc1, const int hc2)
Definition: bd.h:590

Here is the call graph for this function:

template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
void TQuad< TVal1, TVal2, TVal3, TVal4 >::GetVal ( TVal1 &  _Val1,
TVal2 &  _Val2,
TVal3 &  _Val3,
TVal4 &  _Val4 
) const
inline

Definition at line 253 of file ds.h.

References TQuad< TVal1, TVal2, TVal3, TVal4 >::Val1, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val2, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val3, and TQuad< TVal1, TVal2, TVal3, TVal4 >::Val4.

253  {
254  _Val1=Val1; _Val2=Val2; _Val3=Val3; _Val4=Val4;}
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
const TVal1& TQuad< TVal1, TVal2, TVal3, TVal4 >::GetVal1 ( ) const
inline

Definition at line 255 of file ds.h.

References TQuad< TVal1, TVal2, TVal3, TVal4 >::Val1.

255 { return Val1;}
TVal1 Val1
Definition: ds.h:221
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
const TVal2& TQuad< TVal1, TVal2, TVal3, TVal4 >::GetVal2 ( ) const
inline

Definition at line 256 of file ds.h.

References TQuad< TVal1, TVal2, TVal3, TVal4 >::Val2.

256 { return Val2;}
TVal2 Val2
Definition: ds.h:222
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
const TVal3& TQuad< TVal1, TVal2, TVal3, TVal4 >::GetVal3 ( ) const
inline

Definition at line 257 of file ds.h.

References TQuad< TVal1, TVal2, TVal3, TVal4 >::Val3.

257 { return Val3;}
TVal3 Val3
Definition: ds.h:223
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
const TVal4& TQuad< TVal1, TVal2, TVal3, TVal4 >::GetVal4 ( ) const
inline

Definition at line 258 of file ds.h.

References TQuad< TVal1, TVal2, TVal3, TVal4 >::Val4.

258 { return Val4;}
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
void TQuad< TVal1, TVal2, TVal3, TVal4 >::LoadXml ( const PXmlTok XmlTok,
const TStr Nm = "" 
)

Definition at line 87 of file xmlser.h.

References XLoad, and XLoadHd.

87  {
#define XLoadHd(Nm)
Definition: bd.h:312
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
#define XLoad(Nm)
Definition: bd.h:315
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
bool TQuad< TVal1, TVal2, TVal3, TVal4 >::operator< ( const TQuad< TVal1, TVal2, TVal3, TVal4 > &  Quad) const
inline

Definition at line 245 of file ds.h.

References TQuad< TVal1, TVal2, TVal3, TVal4 >::Val1, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val2, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val3, and TQuad< TVal1, TVal2, TVal3, TVal4 >::Val4.

245  {
246  return (Val1<Quad.Val1)||((Val1==Quad.Val1)&&(Val2<Quad.Val2))||
247  ((Val1==Quad.Val1)&&(Val2==Quad.Val2)&&(Val3<Quad.Val3))||
248  ((Val1==Quad.Val1)&&(Val2==Quad.Val2)&&(Val3==Quad.Val3)&&(Val4<Quad.Val4));}
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
TQuad& TQuad< TVal1, TVal2, TVal3, TVal4 >::operator= ( const TQuad< TVal1, TVal2, TVal3, TVal4 > &  Quad)
inline

Definition at line 239 of file ds.h.

References TQuad< TVal1, TVal2, TVal3, TVal4 >::Val1, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val2, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val3, and TQuad< TVal1, TVal2, TVal3, TVal4 >::Val4.

239  {
240  if (this!=&Quad){
241  Val1=Quad.Val1; Val2=Quad.Val2; Val3=Quad.Val3; Val4=Quad.Val4;}
242  return *this;}
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
bool TQuad< TVal1, TVal2, TVal3, TVal4 >::operator== ( const TQuad< TVal1, TVal2, TVal3, TVal4 > &  Quad) const
inline

Definition at line 243 of file ds.h.

References TQuad< TVal1, TVal2, TVal3, TVal4 >::Val1, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val2, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val3, and TQuad< TVal1, TVal2, TVal3, TVal4 >::Val4.

243  {
244  return (Val1==Quad.Val1)&&(Val2==Quad.Val2)&&(Val3==Quad.Val3)&&(Val4==Quad.Val4);}
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
void TQuad< TVal1, TVal2, TVal3, TVal4 >::Save ( TSOut SOut) const
inline

Definition at line 234 of file ds.h.

References TQuad< TVal1, TVal2, TVal3, TVal4 >::Val1, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val2, TQuad< TVal1, TVal2, TVal3, TVal4 >::Val3, and TQuad< TVal1, TVal2, TVal3, TVal4 >::Val4.

234  {
235  Val1.Save(SOut); Val2.Save(SOut); Val3.Save(SOut); Val4.Save(SOut);}
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
TVal4 Val4
Definition: ds.h:224
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
void TQuad< TVal1, TVal2, TVal3, TVal4 >::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 91 of file xmlser.h.

References XSave, and XSaveHd.

91  {
#define XSaveHd(Nm)
Definition: bd.h:318
TVal2 Val2
Definition: ds.h:222
TVal3 Val3
Definition: ds.h:223
TVal1 Val1
Definition: ds.h:221
#define XSave(Nm)
Definition: bd.h:333
TVal4 Val4
Definition: ds.h:224

Member Data Documentation


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