SNAP Library 2.2, Developer Reference  2014-03-11 19:15:55
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
TTriple< TVal1, TVal2, TVal3 > Class Template Reference

#include <ds.h>

List of all members.

Public Member Functions

 TTriple ()
 TTriple (const TTriple &Triple)
 TTriple (const TVal1 &_Val1, const TVal2 &_Val2, const TVal3 &_Val3)
 TTriple (TSIn &SIn)
void Save (TSOut &SOut) const
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm="")
void SaveXml (TSOut &SOut, const TStr &Nm) const
TTripleoperator= (const TTriple &Triple)
bool operator== (const TTriple &Triple) const
bool operator< (const TTriple &Triple) const
int GetPrimHashCd () const
int GetSecHashCd () const
int GetMemUsed () const
void GetVal (TVal1 &_Val1, TVal2 &_Val2, TVal3 &_Val3) const

Public Attributes

TVal1 Val1
TVal2 Val2
TVal3 Val3

Detailed Description

template<class TVal1, class TVal2, class TVal3>
class TTriple< TVal1, TVal2, TVal3 >

Definition at line 129 of file ds.h.


Constructor & Destructor Documentation

template<class TVal1, class TVal2, class TVal3>
TTriple< TVal1, TVal2, TVal3 >::TTriple ( ) [inline]

Definition at line 135 of file ds.h.

: Val1(), Val2(), Val3(){}
template<class TVal1, class TVal2, class TVal3>
TTriple< TVal1, TVal2, TVal3 >::TTriple ( const TTriple< TVal1, TVal2, TVal3 > &  Triple) [inline]

Definition at line 136 of file ds.h.

                                :
    Val1(Triple.Val1), Val2(Triple.Val2), Val3(Triple.Val3){}
template<class TVal1, class TVal2, class TVal3>
TTriple< TVal1, TVal2, TVal3 >::TTriple ( const TVal1 &  _Val1,
const TVal2 &  _Val2,
const TVal3 &  _Val3 
) [inline]

Definition at line 138 of file ds.h.

                                                                     :
    Val1(_Val1), Val2(_Val2), Val3(_Val3){}
template<class TVal1, class TVal2, class TVal3>
TTriple< TVal1, TVal2, TVal3 >::TTriple ( TSIn SIn) [inline, explicit]

Definition at line 140 of file ds.h.

: Val1(SIn), Val2(SIn), Val3(SIn){}

Member Function Documentation

template<class TVal1, class TVal2, class TVal3>
int TTriple< TVal1, TVal2, TVal3 >::GetMemUsed ( ) const [inline]

Definition at line 157 of file ds.h.

{return Val1.GetMemUsed()+Val2.GetMemUsed()+Val3.GetMemUsed();}
template<class TVal1, class TVal2, class TVal3>
int TTriple< TVal1, TVal2, TVal3 >::GetPrimHashCd ( ) const [inline]

Definition at line 155 of file ds.h.

{return  TPairHashImpl::GetHashCd(TPairHashImpl::GetHashCd(Val1.GetPrimHashCd(), Val2.GetPrimHashCd()), Val3.GetPrimHashCd()); }
template<class TVal1, class TVal2, class TVal3>
int TTriple< TVal1, TVal2, TVal3 >::GetSecHashCd ( ) const [inline]

Definition at line 156 of file ds.h.

{return TPairHashImpl::GetHashCd(TPairHashImpl::GetHashCd(Val2.GetSecHashCd(), Val3.GetSecHashCd()), Val1.GetSecHashCd()); }
template<class TVal1, class TVal2, class TVal3>
void TTriple< TVal1, TVal2, TVal3 >::GetVal ( TVal1 &  _Val1,
TVal2 &  _Val2,
TVal3 &  _Val3 
) const [inline]

Definition at line 159 of file ds.h.

                                                              {
    _Val1=Val1; _Val2=Val2; _Val3=Val3;}
template<class TVal1 , class TVal2 , class TVal3 >
void TTriple< TVal1, TVal2, TVal3 >::LoadXml ( const PXmlTok XmlTok,
const TStr Nm = "" 
)

Definition at line 79 of file xmlser.h.

References XLoad, and XLoadHd.

template<class TVal1, class TVal2, class TVal3>
bool TTriple< TVal1, TVal2, TVal3 >::operator< ( const TTriple< TVal1, TVal2, TVal3 > &  Triple) const [inline]

Definition at line 151 of file ds.h.

                                              {
    return (Val1<Triple.Val1)||((Val1==Triple.Val1)&&(Val2<Triple.Val2))||
     ((Val1==Triple.Val1)&&(Val2==Triple.Val2)&&(Val3<Triple.Val3));}
template<class TVal1, class TVal2, class TVal3>
TTriple& TTriple< TVal1, TVal2, TVal3 >::operator= ( const TTriple< TVal1, TVal2, TVal3 > &  Triple) [inline]

Definition at line 146 of file ds.h.

                                           {
    if (this!=&Triple){Val1=Triple.Val1; Val2=Triple.Val2; Val3=Triple.Val3;}
    return *this;}
template<class TVal1, class TVal2, class TVal3>
bool TTriple< TVal1, TVal2, TVal3 >::operator== ( const TTriple< TVal1, TVal2, TVal3 > &  Triple) const [inline]

Definition at line 149 of file ds.h.

                                               {
    return (Val1==Triple.Val1)&&(Val2==Triple.Val2)&&(Val3==Triple.Val3);}
template<class TVal1, class TVal2, class TVal3>
void TTriple< TVal1, TVal2, TVal3 >::Save ( TSOut SOut) const [inline]

Definition at line 141 of file ds.h.

                               {
    Val1.Save(SOut); Val2.Save(SOut); Val3.Save(SOut);}
template<class TVal1 , class TVal2 , class TVal3 >
void TTriple< TVal1, TVal2, TVal3 >::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 83 of file xmlser.h.

References XSave, and XSaveHd.


Member Data Documentation


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