SNAP Library , User Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <ds.h>
Public Member Functions | |
TTuple () | |
TTuple (const TVal &InitVal) | |
TTuple (const TTuple &Tup) | |
TTuple (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
void | Load (TSIn &SIn) |
int | Len () const |
TVal & | operator[] (const int &ValN) |
const TVal & | operator[] (const int &ValN) const |
TTuple & | operator= (const TTuple &Tup) |
bool | operator== (const TTuple &Tup) const |
bool | operator< (const TTuple &Tup) const |
void | Sort (const bool &Asc=true) |
int | FindMx () const |
int | FindMn () const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
TStr | GetStr () const |
Private Attributes | |
TVal | ValV [NVals] |
int TTuple< TVal, NVals >::GetPrimHashCd | ( | ) | const [inline] |
int TTuple< TVal, NVals >::GetSecHashCd | ( | ) | const [inline] |
TVal& TTuple< TVal, NVals >::operator[] | ( | const int & | ValN | ) | [inline] |
const TVal& TTuple< TVal, NVals >::operator[] | ( | const int & | ValN | ) | const [inline] |
Definition at line 286 of file ds.h.
{ TVec<TVal> V(NVals); for (int i=0; i<NVals; i++) { V.Add(ValV[i]); } V.Sort(Asc); for (int i=0; i<NVals; i++) { ValV[i] = V[i]; } }