SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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 218 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 225 of file ds.h.

225  :
226  Val1(), Val2(), Val3(), Val4(){}
TVal2 Val2
Definition: ds.h:221
TVal3 Val3
Definition: ds.h:222
TVal1 Val1
Definition: ds.h:220
TVal4 Val4
Definition: ds.h:223
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 227 of file ds.h.

227  :
228  Val1(Quad.Val1), Val2(Quad.Val2), Val3(Quad.Val3), Val4(Quad.Val4){}
TVal2 Val2
Definition: ds.h:221
TVal3 Val3
Definition: ds.h:222
TVal1 Val1
Definition: ds.h:220
TVal4 Val4
Definition: ds.h:223
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 229 of file ds.h.

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

Definition at line 231 of file ds.h.

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

Member Function Documentation

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

Definition at line 249 of file ds.h.

249 {return TPairHashImpl::GetHashCd(TPairHashImpl::GetHashCd(Val1.GetPrimHashCd(), Val2.GetPrimHashCd()), TPairHashImpl::GetHashCd(Val3.GetPrimHashCd(), Val4.GetPrimHashCd())); }
TVal2 Val2
Definition: ds.h:221
TVal3 Val3
Definition: ds.h:222
TVal1 Val1
Definition: ds.h:220
TVal4 Val4
Definition: ds.h:223
static int GetHashCd(const int hc1, const int hc2)
Definition: bd.h:590
template<class TVal1 , class TVal2 , class TVal3 , class TVal4 >
int TQuad< TVal1, TVal2, TVal3, TVal4 >::GetSecHashCd ( ) const
inline

Definition at line 250 of file ds.h.

250 {return TPairHashImpl::GetHashCd(TPairHashImpl::GetHashCd(Val2.GetSecHashCd(), Val3.GetSecHashCd()), TPairHashImpl::GetHashCd(Val4.GetSecHashCd(), Val1.GetSecHashCd())); }
TVal2 Val2
Definition: ds.h:221
TVal3 Val3
Definition: ds.h:222
TVal1 Val1
Definition: ds.h:220
TVal4 Val4
Definition: ds.h:223
static int GetHashCd(const int hc1, const int hc2)
Definition: bd.h:590
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 252 of file ds.h.

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

Definition at line 254 of file ds.h.

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

Definition at line 255 of file ds.h.

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

Definition at line 256 of file ds.h.

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

Definition at line 257 of file ds.h.

257 { return Val4;}
TVal4 Val4
Definition: ds.h:223
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.

87  {
#define XLoadHd(Nm)
Definition: bd.h:312
TVal2 Val2
Definition: ds.h:221
TVal3 Val3
Definition: ds.h:222
#define XLoad(Nm)
Definition: bd.h:315
TVal1 Val1
Definition: ds.h:220
TVal4 Val4
Definition: ds.h:223
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 244 of file ds.h.

244  {
245  return (Val1<Quad.Val1)||((Val1==Quad.Val1)&&(Val2<Quad.Val2))||
246  ((Val1==Quad.Val1)&&(Val2==Quad.Val2)&&(Val3<Quad.Val3))||
247  ((Val1==Quad.Val1)&&(Val2==Quad.Val2)&&(Val3==Quad.Val3)&&(Val4<Quad.Val4));}
TVal2 Val2
Definition: ds.h:221
TVal3 Val3
Definition: ds.h:222
TVal1 Val1
Definition: ds.h:220
TVal4 Val4
Definition: ds.h:223
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 238 of file ds.h.

238  {
239  if (this!=&Quad){
240  Val1=Quad.Val1; Val2=Quad.Val2; Val3=Quad.Val3; Val4=Quad.Val4;}
241  return *this;}
TVal2 Val2
Definition: ds.h:221
TVal3 Val3
Definition: ds.h:222
TVal1 Val1
Definition: ds.h:220
TVal4 Val4
Definition: ds.h:223
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 242 of file ds.h.

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

Definition at line 233 of file ds.h.

233  {
234  Val1.Save(SOut); Val2.Save(SOut); Val3.Save(SOut); Val4.Save(SOut);}
TVal2 Val2
Definition: ds.h:221
TVal3 Val3
Definition: ds.h:222
TVal1 Val1
Definition: ds.h:220
TVal4 Val4
Definition: ds.h:223
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.

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

Member Data Documentation

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

Definition at line 220 of file ds.h.

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

Definition at line 221 of file ds.h.

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

Definition at line 222 of file ds.h.

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

Definition at line 223 of file ds.h.


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