SNAP Library 2.4, Developer Reference  2015-05-11 19:40:56
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
 

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 213 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 220 of file ds.h.

220  :
221  Val1(), Val2(), Val3(), Val4(){}
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
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 222 of file ds.h.

222  :
223  Val1(Quad.Val1), Val2(Quad.Val2), Val3(Quad.Val3), Val4(Quad.Val4){}
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
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 224 of file ds.h.

224  :
225  Val1(_Val1), Val2(_Val2), Val3(_Val3), Val4(_Val4){}
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
TQuad< TVal1, TVal2, TVal3, TVal4 >::TQuad ( TSIn SIn)
inlineexplicit

Definition at line 226 of file ds.h.

226  :
227  Val1(SIn), Val2(SIn), Val3(SIn), Val4(SIn){}
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218

Member Function Documentation

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

Definition at line 244 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.

244 {return TPairHashImpl::GetHashCd(TPairHashImpl::GetHashCd(Val1.GetPrimHashCd(), Val2.GetPrimHashCd()), TPairHashImpl::GetHashCd(Val3.GetPrimHashCd(), Val4.GetPrimHashCd())); }
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
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 245 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.

245 {return TPairHashImpl::GetHashCd(TPairHashImpl::GetHashCd(Val2.GetSecHashCd(), Val3.GetSecHashCd()), TPairHashImpl::GetHashCd(Val4.GetSecHashCd(), Val1.GetSecHashCd())); }
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
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 247 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.

247  {
248  _Val1=Val1; _Val2=Val2; _Val3=Val3; _Val4=Val4;}
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
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:216
TVal3 Val3
Definition: ds.h:217
#define XLoad(Nm)
Definition: bd.h:315
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
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 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  return (Val1<Quad.Val1)||((Val1==Quad.Val1)&&(Val2<Quad.Val2))||
241  ((Val1==Quad.Val1)&&(Val2==Quad.Val2)&&(Val3<Quad.Val3))||
242  ((Val1==Quad.Val1)&&(Val2==Quad.Val2)&&(Val3==Quad.Val3)&&(Val4<Quad.Val4));}
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
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 233 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.

233  {
234  if (this!=&Quad){
235  Val1=Quad.Val1; Val2=Quad.Val2; Val3=Quad.Val3; Val4=Quad.Val4;}
236  return *this;}
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
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 237 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.

237  {
238  return (Val1==Quad.Val1)&&(Val2==Quad.Val2)&&(Val3==Quad.Val3)&&(Val4==Quad.Val4);}
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
void TQuad< TVal1, TVal2, TVal3, TVal4 >::Save ( TSOut SOut) const
inline

Definition at line 228 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.

228  {
229  Val1.Save(SOut); Val2.Save(SOut); Val3.Save(SOut); Val4.Save(SOut);}
TVal2 Val2
Definition: ds.h:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
TVal4 Val4
Definition: ds.h:218
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:216
TVal3 Val3
Definition: ds.h:217
TVal1 Val1
Definition: ds.h:215
#define XSave(Nm)
Definition: bd.h:333
TVal4 Val4
Definition: ds.h:218

Member Data Documentation


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