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
|
Vector is a sequence TVal
objects representing an array that can change in size.
More...
#include <ds.h>
Public Types | |
typedef TVal * | TIter |
Random access iterator to TVal . More... | |
Public Member Functions | |
TVec () | |
TVec (const TVec< TVal, TSizeTy > &Vec) | |
TVec (const TSizeTy &_Vals) | |
Constructs a vector (an array) of length _Vals . More... | |
TVec (const TSizeTy &_MxVals, const TSizeTy &_Vals) | |
Constructs a vector (an array) of length _Vals , while reserving enough memory to store _MxVals elements. More... | |
TVec (TVal *_ValT, const TSizeTy &_Vals) | |
Constructs a vector of _Vals elements of memory array _ValT . More... | |
~TVec () | |
TVec (TSIn &SIn) | |
void | LoadShM (TShMIn &ShMIn) |
Constructs the vector from a shared memory input. More... | |
template<typename TLoadShMElem > | |
void | LoadShM (TShMIn &ShMIn, TLoadShMElem LoadFromShMFn) |
Constructs vector from shared memory input passing in functor to initialize elements. More... | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
void | LoadXml (const PXmlTok &XmlTok, const TStr &Nm="") |
void | SaveXml (TSOut &SOut, const TStr &Nm) const |
TVec< TVal, TSizeTy > & | operator= (const TVec< TVal, TSizeTy > &Vec) |
Assigns new contents to the vector, replacing its current content. More... | |
TVec< TVal, TSizeTy > & | operator+ (const TVal &Val) |
Appends value Val to the vector. More... | |
bool | operator== (const TVec< TVal, TSizeTy > &Vec) const |
Checks that the two vectors have the same contents. More... | |
bool | operator< (const TVec< TVal, TSizeTy > &Vec) const |
Lexicographically compares two vectors. More... | |
const TVal & | operator[] (const TSizeTy &ValN) const |
Returns a reference to the element at position ValN in the vector. More... | |
TVal & | operator[] (const TSizeTy &ValN) |
Returns a reference to the element at position ValN in the vector. More... | |
TSizeTy | GetMemUsed () const |
Returns the memory footprint (the number of bytes) of the vector. More... | |
TSizeTy | GetMemSize () const |
Returns the memory size (the number of bytes) of a binary representation. More... | |
int | GetPrimHashCd () const |
Returns primary hash code of the vector. Used by THash . More... | |
int | GetSecHashCd () const |
Returns secondary hash code of the vector. Used by THash . More... | |
void | Gen (const TSizeTy &_Vals) |
Constructs a vector (an array) of _Vals elements. More... | |
void | Gen (const TSizeTy &_MxVals, const TSizeTy &_Vals) |
Constructs a vector (an array) of _Vals elements, while reserving enough memory for _MxVals elements. More... | |
void | GenExt (TVal *_ValT, const TSizeTy &_Vals) |
Constructs a vector of _Vals elements of memory array _ValT . More... | |
bool | IsExt () const |
Returns true if the vector was created using the GenExt() . More... | |
void | Reserve (const TSizeTy &_MxVals) |
Reserves enough memory for the vector to store _MxVals elements. More... | |
void | Reserve (const TSizeTy &_MxVals, const TSizeTy &_Vals) |
Reserves enough memory for the vector to store _MxVals elements and sets its length to _Vals . More... | |
void | Clr (const bool &DoDel=true, const TSizeTy &NoDelLim=-1) |
Clears the contents of the vector. More... | |
void | Trunc (const TSizeTy &_Vals=-1) |
Truncates the vector's length and capacity to _Vals elements. More... | |
void | Reduce (const TSizeTy &_Vals=-1) |
Reduces the vector's length to _Vals elements, which must be less than the current length. More... | |
void | Pack () |
Reduces vector capacity (frees memory) to match its size. More... | |
void | MoveFrom (TVec< TVal, TSizeTy > &Vec) |
Takes over the data and the capacity from Vec . More... | |
void | CopyUniqueFrom (TVec< TVal, TSizeTy > &Vec, TInt Offset, TInt Sz) |
Copy Sz values from Vec starting at Offset . More... | |
void | Swap (TVec< TVal, TSizeTy > &Vec) |
Swaps the contents of the vector with Vec . More... | |
bool | Empty () const |
Tests whether the vector is empty. More... | |
TSizeTy | Len () const |
Returns the number of elements in the vector. More... | |
TSizeTy | Reserved () const |
Returns the size of allocated storage capacity. More... | |
const TVal & | Last () const |
Returns a reference to the last element of the vector. More... | |
TVal & | Last () |
Returns a reference to the last element of the vector. More... | |
TSizeTy | LastValN () const |
Returns the position of the last element. More... | |
const TVal & | LastLast () const |
Returns a reference to the one before last element of the vector. More... | |
TVal & | LastLast () |
Returns a reference to the one before last element of the vector. More... | |
const TVal & | GetRndVal (TRnd &Rnd=TInt::Rnd) const |
Returns a reference to a random element in the vector. More... | |
TVal & | GetRndVal (TRnd &Rnd=TInt::Rnd) |
Returns a reference to a random element in the vector. More... | |
TIter | BegI () const |
Returns an iterator pointing to the first element in the vector. More... | |
TIter | EndI () const |
Returns an iterator referring to the past-the-end element in the vector. More... | |
TIter | GetI (const TSizeTy &ValN) const |
Returns an iterator an element at position ValN . More... | |
TSizeTy | Add () |
Adds a new element at the end of the vector, after its current last element. More... | |
TSizeTy | Add (const TVal &Val) |
Adds a new element at the end of the vector, after its current last element. More... | |
TSizeTy | Add (TVal &Val) |
TSizeTy | Add (const TVal &Val, const TSizeTy &ResizeLen) |
Adds element Val at the end of the vector. #TVec::Add2. More... | |
TSizeTy | AddMP (const TVal &Val) |
Adds element Val at the end of the vector in a thread safe manner, returns the element index in the vector. TVec::AddMP. More... | |
TSizeTy | MoveLastMP (const TVal &Val, int Inc) |
Reserves space after the current last element in a thread safe manner, returning the old vector size. More... | |
TSizeTy | AddV (const TVec< TVal, TSizeTy > &ValV) |
Adds the elements of the vector ValV to the to end of the vector. More... | |
TSizeTy | AddSorted (const TVal &Val, const bool &Asc=true, const TSizeTy &_MxVals=-1) |
Adds element Val to a sorted vector. More... | |
TSizeTy | AddBackSorted (const TVal &Val, const bool &Asc) |
Adds element Val to a sorted vector. More... | |
TSizeTy | AddMerged (const TVal &Val) |
Adds element Val to a sorted vector only if the element Val is not already in the vector. More... | |
TSizeTy | AddVMerged (const TVec< TVal, TSizeTy > &ValV) |
Adds elements of ValV to a sorted vector only if a particular element is not already in the vector. More... | |
TSizeTy | AddUnique (const TVal &Val) |
Adds element Val to a vector only if the element Val is not already in the vector. More... | |
const TVal & | GetVal (const TSizeTy &ValN) const |
Returns a reference to the element at position ValN in the vector. More... | |
TVal & | GetVal (const TSizeTy &ValN) |
Returns a reference to the element at position ValN in the vector. More... | |
void | SetVal (const TSizeTy &ValN, const TVal &Val) |
Sets the value of element at position ValN to Val . More... | |
void | GetSubValV (const TSizeTy &BValN, const TSizeTy &EValN, TVec< TVal, TSizeTy > &ValV) const |
Fills ValV with elements at positions BValN...EValN . More... | |
void | Ins (const TSizeTy &ValN, const TVal &Val) |
Inserts new element Val before the element at position ValN . More... | |
void | Del (const TSizeTy &ValN) |
Removes the element at position ValN . More... | |
void | Del (const TSizeTy &MnValN, const TSizeTy &MxValN) |
Removes the elements at positions MnValN...MxValN . More... | |
void | DelLast () |
Removes the last element of the vector. More... | |
bool | DelIfIn (const TVal &Val) |
Removes the first occurrence of element Val . More... | |
void | DelAll (const TVal &Val) |
Removes all occurrences of element Val . More... | |
void | PutAll (const TVal &Val) |
Sets all elements of the vector to value Val . More... | |
void | Swap (const TSizeTy &ValN1, const TSizeTy &ValN2) |
Swaps elements at positions ValN1 and ValN2 . More... | |
bool | NextPerm () |
Generates next permutation of the elements in the vector. More... | |
bool | PrevPerm () |
Generates previous permutation of the elements in the vector. More... | |
TSizeTy | GetPivotValN (const TSizeTy &LValN, const TSizeTy &RValN) const |
Picks three random elements at positions LValN...RValN and returns the middle one. More... | |
void | BSort (const TSizeTy &MnLValN, const TSizeTy &MxRValN, const bool &Asc) |
Bubble sorts the values between positions MnLValN...MxLValN . More... | |
void | ISort (const TSizeTy &MnLValN, const TSizeTy &MxRValN, const bool &Asc) |
Insertion sorts the values between positions MnLValN...MxLValN . More... | |
TSizeTy | Partition (const TSizeTy &MnLValN, const TSizeTy &MxRValN, const bool &Asc) |
Partitions the values between positions MnLValN...MxLValN . More... | |
void | QSort (const TSizeTy &MnLValN, const TSizeTy &MxRValN, const bool &Asc) |
Quick sorts the values between positions MnLValN...MxLValN . More... | |
void | Sort (const bool &Asc=true) |
Sorts the elements of the vector. More... | |
bool | IsSorted (const bool &Asc=true) const |
Checks whether the vector is sorted in ascending (if Asc=true ) or descending (if Asc=false ) order. More... | |
void | Shuffle (TRnd &Rnd) |
Randomly shuffles the elements of the vector. More... | |
void | Reverse () |
Reverses the order of the elements in the vector. More... | |
void | Reverse (TSizeTy LValN, TSizeTy RValN) |
Reverses the order of elements between LValN...RValN . More... | |
void | Merge () |
Sorts the vector and only keeps a single element of each value. More... | |
template<class TCmp > | |
void | SortCmp (const TCmp &Cmp) |
Sorts the elements of the vector using the comparator Cmp . More... | |
template<class TCmp > | |
bool | IsSortedCmp (const TCmp &Cmp) const |
Checks whether the vector is sorted according to the comparator Cmp . More... | |
void | Intrs (const TVec< TVal, TSizeTy > &ValV) |
Sets this vector to its intersection with ValV . Assumes the vectors are sorted! More... | |
void | Union (const TVec< TVal, TSizeTy > &ValV) |
Sets this vector to its union with ValV . Assumes the vectors are sorted! More... | |
void | Diff (const TVec< TVal, TSizeTy > &ValV) |
Subtracts ValV from this vector. Assumes the vectors are sorted! More... | |
void | Intrs (const TVec< TVal, TSizeTy > &ValV, TVec< TVal, TSizeTy > &DstValV) const |
Sets DstValV to the intersection of this vector and ValV . Assumes the vectors are sorted! More... | |
void | Union (const TVec< TVal, TSizeTy > &ValV, TVec< TVal, TSizeTy > &DstValV) const |
Sets DstValV to the union of this vector and ValV . Assumes the vectors are sorted! More... | |
void | Diff (const TVec< TVal, TSizeTy > &ValV, TVec< TVal, TSizeTy > &DstValV) const |
Sets DstValV to the difference between this vector and ValV . Assumes the vectors are sorted! More... | |
TSizeTy | IntrsLen (const TVec< TVal, TSizeTy > &ValV) const |
Returns the size of the intersection of vectors this and ValV . Assumes the vectors are sorted! More... | |
TSizeTy | UnionLen (const TVec< TVal, TSizeTy > &ValV) const |
Returns the size of the union of vectors this and ValV . Assumes the vectors are sorted! More... | |
TSizeTy | Count (const TVal &Val) const |
Counts the number of occurrences of Val in the vector. More... | |
TSizeTy | SearchBin (const TVal &Val) const |
Returns the position of an element with value Val . More... | |
TSizeTy | SearchBin (const TVal &Val, TSizeTy &InsValN) const |
Returns the position of an element with value Val . More... | |
TSizeTy | SearchBinLeft (const TVal &Val, TSizeTy &InsValN) const |
Returns the position of an element with value Val . More... | |
TSizeTy | SearchForw (const TVal &Val, const TSizeTy &BValN=0) const |
Returns the position of an element with value Val . More... | |
TSizeTy | SearchBack (const TVal &Val) const |
Returns the position of an element with value Val . More... | |
TSizeTy | SearchVForw (const TVec< TVal, TSizeTy > &ValV, const TSizeTy &BValN=0) const |
Returns the starting position of vector ValV . More... | |
bool | IsIn (const TVal &Val) const |
Checks whether element Val is a member of the vector. More... | |
bool | IsIn (const TVal &Val, TSizeTy &ValN) const |
Checks whether element Val is a member of the vector. More... | |
bool | IsInBin (const TVal &Val) const |
Checks whether element Val is a member of the vector. More... | |
const TVal & | GetDat (const TVal &Val) const |
Returns reference to the first occurrence of element Val . More... | |
TVal & | GetAddDat (const TVal &Val) |
Returns reference to the first occurrence of element Val . More... | |
TSizeTy | GetMxValN () const |
Returns the position of the largest element in the vector. More... | |
Static Public Member Functions | |
static void | SwapI (TIter LVal, TIter RVal) |
Swaps the elements that iterators LVal and RVal point to. More... | |
template<class TCmp > | |
static TIter | GetPivotValNCmp (const TIter &BI, const TIter &EI, const TCmp &Cmp) |
Picks three random elements at positions BI...EI and returns the middle one under the comparator Cmp . More... | |
template<class TCmp > | |
static TIter | PartitionCmp (TIter BI, TIter EI, const TVal Pivot, const TCmp &Cmp) |
Partitions the values between positions BI...EI under the comparator Cmp . More... | |
template<class TCmp > | |
static void | BSortCmp (TIter BI, TIter EI, const TCmp &Cmp) |
Bubble sorts the values between positions BI...EI under the comparator Cmp . More... | |
template<class TCmp > | |
static void | ISortCmp (TIter BI, TIter EI, const TCmp &Cmp) |
Insertion sorts the values between positions BI...EI under the comparator Cmp . More... | |
template<class TCmp > | |
static void | QSortCmp (TIter BI, TIter EI, const TCmp &Cmp) |
Quick sorts the values between positions BI...EI under the comparator Cmp . More... | |
static TVec< TVal, TSizeTy > | GetV (const TVal &Val1) |
Returns a vector on element Val1 . More... | |
static TVec< TVal, TSizeTy > | GetV (const TVal &Val1, const TVal &Val2) |
Returns a vector on elements Val1 , Val2 . More... | |
static TVec< TVal, TSizeTy > | GetV (const TVal &Val1, const TVal &Val2, const TVal &Val3) |
Returns a vector on elements Val1...Val3 . More... | |
static TVec< TVal, TSizeTy > | GetV (const TVal &Val1, const TVal &Val2, const TVal &Val3, const TVal &Val4) |
Returns a vector on elements Val1...Val4 . More... | |
static TVec< TVal, TSizeTy > | GetV (const TVal &Val1, const TVal &Val2, const TVal &Val3, const TVal &Val4, const TVal &Val5) |
Returns a vector on elements Val1...Val5 . More... | |
static TVec< TVal, TSizeTy > | GetV (const TVal &Val1, const TVal &Val2, const TVal &Val3, const TVal &Val4, const TVal &Val5, const TVal &Val6) |
Returns a vector on elements Val1...Val6 . More... | |
static TVec< TVal, TSizeTy > | GetV (const TVal &Val1, const TVal &Val2, const TVal &Val3, const TVal &Val4, const TVal &Val5, const TVal &Val6, const TVal &Val7) |
Returns a vector on elements Val1...Val7 . More... | |
static TVec< TVal, TSizeTy > | GetV (const TVal &Val1, const TVal &Val2, const TVal &Val3, const TVal &Val4, const TVal &Val5, const TVal &Val6, const TVal &Val7, const TVal &Val8) |
Returns a vector on elements Val1...Val8 . More... | |
static TVec< TVal, TSizeTy > | GetV (const TVal &Val1, const TVal &Val2, const TVal &Val3, const TVal &Val4, const TVal &Val5, const TVal &Val6, const TVal &Val7, const TVal &Val8, const TVal &Val9) |
Returns a vector on elements Val1...Val9 . More... | |
Protected Member Functions | |
void | Resize (const TSizeTy &_MxVals=-1) |
Resizes the vector so that it can store at least _MxVals . More... | |
TStr | GetXOutOfBoundsErrMsg (const TSizeTy &ValN) const |
Constructs the out of bounds error message. More... | |
Protected Attributes | |
TSizeTy | MxVals |
Vector capacity. Capacity is the size of allocated storage. If MxVals==-1 , then ValT is not owned by the vector, and it won't free it at destruction. More... | |
TSizeTy | Vals |
Vector length. Length is the number of elements stored in the vector. More... | |
TVal * | ValT |
Pointer to the memory where the elements of the vector are stored. More... | |
bool | IsShM |
Vector is a sequence TVal
objects representing an array that can change in size.
Internally, vectors use a dynamically allocated array to store their elements. This array may need to be reallocated in order to grow in size when new elements are inserted, which implies allocating a new array and moving all elements to it. This is a relatively expensive task in terms of processing time. Vectors may allocate some extra storage to accommodate for possible growth, and thus the container may have an actual capacity greater than the storage strictly needed to contain its elements (i.e., its size). The reallocations only happen at logarithmically growing intervals of size so that the insertion of individual elements at the end of the vector can be provided with amortized constant time complexity. Use TSizeTy=int
for vectors of maximum size of 2 billion (2^31) and TSizeTy=int64
for vectors that can store up to 2^61 elements.
Definition at line 443 of file ds.h.
TVec< TVal, TSizeTy >::TVec | ( | const TVec< TVal, TSizeTy > & | Vec | ) |
Definition at line 922 of file ds.h.
References TVec< TVal, TSizeTy >::MxVals, TVec< TVal, TSizeTy >::Vals, and TVec< TVal, TSizeTy >::ValT.
|
inlineexplicit |
Constructs a vector (an array) of length _Vals
.
Definition at line 446 of file ds.h.
|
inline |
Constructs a vector (an array) of length _Vals
, while reserving enough memory to store _MxVals
elements.
Definition at line 451 of file ds.h.
|
inlineexplicit |
Constructs a vector of _Vals
elements of memory array _ValT
.
The data is not copied and the vector does not own the memory (i.e., the vector won't free the memory at destruction).
Definition at line 459 of file ds.h.
Definition at line 462 of file ds.h.
|
inline |
Adds a new element at the end of the vector, after its current last element.
This increases the vector size by one.
Definition at line 602 of file ds.h.
Referenced by TCnCom::Add(), TGStatVec::Add(), THeap< TTriple >::Add(), TVecElt< TVec< TDat > >::Add(), TUniTrie< TInt >::Add(), PVec< TVal >::Add(), TXmlLx::AddArg(), TAGMFit::AddBaseCmty(), TNetInfBs::AddCasc(), TGnuPlot::AddCmd(), TWChA::AddCStr(), TUniChDb::AddDecomposition(), TSimpleGraph::AddEdge(), TNGraphMP::AddEdgeUnchecked(), TUNGraph::AddEdgeUnchecked(), TNGraph::AddEdgeUnchecked(), TGnuPlot::AddErrBar(), TGnuPlot::AddExpFit(), THttpResp::AddFldVal(), TTableRow::AddFlt(), TTable::AddGraphAttribute(), TTable::AddGraphAttributeV(), THttpResp::AddHdFld(), TTable::AddIdColumn(), TTableRow::AddInt(), TCrossNet::AddIntAttrDatE(), TNEANetMP::AddIntAttrDatE(), TNEANet::AddIntAttrDatE(), TNEANetMP::AddIntAttrDatN(), TNEANet::AddIntAttrDatN(), TCrossNet::AddIntAttrE(), TNEANetMP::AddIntAttrE(), TNEANet::AddIntAttrE(), TNEANetMP::AddIntAttrN(), TNEANet::AddIntAttrN(), TTable::AddIntCol(), TModeNet::AddIntVAttrByHashN(), TModeNet::AddIntVAttrByVecN(), TNEANet::AddIntVAttrE(), TNEANet::AddIntVAttrN(), TTable::AddJointRow(), TGnuPlot::AddLinFit(), TGnuPlot::AddLogFit(), TTable::AddNodeAttributes(), TUndirFFire::AddNodes(), TGnuPlot::AddPlot(), TGnuPlot::AddPwrFit1(), TGnuPlot::AddPwrFit2(), TGnuPlot::AddPwrFit3(), TTable::AddRow(), TTable::AddSchemaCol(), TSnap::AddSelfEdges(), TempMotifCounter::AddStarEdgeData(), TempMotifCounter::AddStarEdges(), TTableRow::AddStr(), TBigStrPool::AddStr(), TTable::AddStrCol(), TTable::AddStrVal(), TempMotifCounter::AddTriadEdgeData(), TVecPool< TVal, TSizeTy >::AddV(), TGLib_OLD::TVecPool< TVal >::AddV(), ChibaNishizekiWeighter::AdjustLabels(), TTable::Aggregate(), TTable::AggregateCols(), TNEANet::AppendIntVAttrDatE(), TNEANet::AppendIntVAttrDatN(), TUniCaseFolding::AppendVector(), ProcessedGraph::assignWeights_dir(), TCrossNet::AttrNameEI(), TNEANetMP::AttrNameEI(), TNEANet::AttrNameEI(), TNEANetMP::AttrNameNI(), TNEANet::AttrNameNI(), TCrossNet::AttrValueEI(), TNEANetMP::AttrValueEI(), TNEANet::AttrValueEI(), TNEANetMP::AttrValueNI(), TNEANet::AttrValueNI(), TLocClustStat::BagOfWhiskers(), TLocClustStat::BagOfWhiskers2(), MotifCluster::BifanMotifAdjacency(), TBreathFS< PGraph >::BottomUpStep(), TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TUndirFFire::BurnGeoFire(), TSnap::TSnapDetail::CalcEffDiam(), TCliqueOverlap::CalculateOverlapMtx(), TSnap::CascFind(), TSnap::CascFindMP(), TSnap::CascGraphSource(), TSnap::CascGraphTime(), TKroneckerLL::ChainGelmapRubinPlot(), TTable::ClassifyAux(), ChibaNishizekiWeighter::CliqueEnum(), TSnap::TSnapDetail::TCNMQMatrix::CmtyCMN(), TSnap::CmtyEvolutionFileBatch(), TSnap::CmtyEvolutionFileBatchV(), TUniChDb::Compose(), MAPPR::computeProfile(), TAGMUtil::ConnectCmtyVV(), TTable::Count(), TempMotifCounter::Count3TEdge2Node(), TempMotifCounter::Count3TEdge3NodeStars(), TempMotifCounter::Count3TEdgeTriads(), ProcessedGraph::countClique(), ProcessedGraph::countDirTriadMotif(), TGnuPlot::CreatePlotFile(), TUniCodec::DecodeUtf16FromBytes(), TUniCodec::DecodeUtf16FromWords(), TUniCodec::DecodeUtf8(), TTable::Defrag(), TGStatVec::DelAfter(), TGStatVec::DelBefore(), TSnap::DelDegKNodes(), TGStatVec::DelSmallNodes(), TFile::DelWc(), TSnap::DelZeroDegNodes(), TTable::DenormalizeSchema(), TVec< TVal, TSizeTy >::Diff(), TSnap::TSnapDetail::TDelSelfEdges< PGraph, IsMultiGraph >::Do(), TSnap::TSnapDetail::TDelSelfEdges< PGraph, true >::Do(), TBreathFS< PGraph >::DoBfsHybrid(), TMAGFitBern::DoEMAlg(), TUniCodec::EncodeUtf16ToBytes(), TUniCodec::EncodeUtf16ToWords(), TUniCodec::EncodeUtf8(), TUniCodec::EncodeUtf8Str(), TSpecFunc::EntropyFracDim(), TSubGraphsEnum::EnumSubGraphs(), TCliqueOverlap::Expand(), TSpecFunc::ExpFit(), TUniChDb::ExtractStarters(), TTable::FillBucketsByInterval(), TTable::FillBucketsByWindow(), TCesnaUtil::FilterLowEntropy(), TSnap::FindAugV(), TLocClust::FindBestCut(), TCesna::FindComs(), TAGMUtil::FindComsByAGM(), TAGMFast::FindComsByCV(), TCoda::FindComsByCV(), TBiConVisitor::FinishNode(), TSccVisitor< PGraph, OnlyCount >::FinishNode(), TKronNoise::FlipEdgeNoise(), TCrossNet::FltAttrNameEI(), TNEANetMP::FltAttrNameEI(), TNEANet::FltAttrNameEI(), TNEANetMP::FltAttrNameNI(), TNEANet::FltAttrNameNI(), TCrossNet::FltAttrValueEI(), TNEANetMP::FltAttrValueEI(), TNEANet::FltAttrValueEI(), TNEANetMP::FltAttrValueNI(), TNEANet::FltAttrValueNI(), TUniCaseFolding::Fold(), TSubGraphsEnum::Gen2Graphs(), TAGM::GenAGM(), TBlobBs::GenBlockLenV(), TAGMUtil::GenCmtyVVFromPL(), TKronMtx::GenFastKronecker(), TFfGGen::GenFFGraphs(), TSnap::GenGeoPrefAttach(), TCesnaUtil::GenHoldOutPairs(), TAGMFastUtil::GenHoldOutPairs(), TAGMUtil::GenPLSeq(), TSnap::GenPrefAttach(), TSnap::GenRMat(), TSnap::GenRndDegK(), TSnap::GenRndPowerLaw(), TVec< TFlt, TSizeTy >::GetAddDat(), TCodaAnalyzer::GetAllCmtyVV(), TUnicode::GetAllCodecs(), TempMotifCounter::GetAllNeighbors(), TempMotifCounter::GetAllNodes(), TempMotifCounter::GetAllStaticTriangles(), TNEANet::GetAttrENames(), TNEANet::GetAttrNNames(), TNetInfBs::GetBestEdge(), TSnap::GetBetweennessCentr(), TSnap::GetBfsEffDiam(), TLocClustStat::GetBoltzmanCurveStat(), TNetInfBs::GetBound(), TUniChDb::GetCaseConverted(), TSnap::GetClustCf(), TAGMFast::GetCmtyVV(), TCoda::GetCmtyVV(), TAGMFit::GetCmtyVV(), TCesna::GetCmtyVV(), TCoda::GetCmtyVVUnSorted(), TCesna::GetCmtyVVUnSorted(), TVVec< TVal, TSizeTy >::GetCol(), TTable::GetCollidingRows(), THttpResp::GetCookieKeyValDmPathQuV(), TCliqueOverlap::GetCPMCommunities(), TLocClustStat::GetCurveStat(), THashMP< TKey, TDat, THashFunc >::GetDatV(), THash< TKey, TDat, THashFunc >::GetDatV(), TSparseHash< TKey, TDat, GroupSize >::GetDatV(), TStrHash< TDat, TStringPool, THashFunc >::GetDatV(), TSnap::GetDegCnt(), TSnap::GetDegSeqV(), TTable::GetDstNodeFltAttrV(), TTable::GetDstNodeIntAttrV(), TTable::GetDstNodeStrAttrV(), TSecTm::GetDtTmFromStr(), TTimeNENet::GetEdgeBuckets(), TTable::GetEdgeFltAttrV(), TTable::GetEdgeIntAttrV(), TTable::GetEdgeStrAttrV(), TTable::GetEdgeTable(), TTable::GetEdgeTablePN(), TTimeNENet::GetEdgeTmBuckets(), TTimeNENet::GetEIdByTm(), TNEANetMP::GetEIdV(), TNEGraph::GetEIdV(), TNodeEdgeNet< TNodeData, TEdgeData >::GetEIdV(), TNEANet::GetEIdV(), TSnap::GetEigVec(), TTable::GetFltNodePropertyTable(), TTable::GetFltRowIdxByVal(), TFFile::GetFNmV(), TGraphAnf< PGraph >::GetGraphAnf(), TTable::GetGraphsFromSequence(), TSnap::GetHitsMP(), TUrlLx::GetHPath(), TAttr::GetIdVSAttr(), TAttrPair::GetIdVSAttr(), TEnv::GetIfArgPrefixIntV(), TEnv::GetIfArgPrefixStrV(), TSnap::GetInDegCnt(), TTable::GetIntRowIdxByVal(), TSnap::GetInvParticipRat(), TSnap::GetKCoreEdges(), TSnap::GetKCoreNodes(), TGHash< TDat >::GetKeyIdByDat(), TGHash< TDat >::GetKeyIdByGSz(), THashMP< TKey, TDat, THashFunc >::GetKeyV(), THash< TKey, TDat, THashFunc >::GetKeyV(), TSparseHash< TKey, TDat, GroupSize >::GetKeyV(), TSparseSet< TKey, GroupSize >::GetKeyV(), TStrHash< TDat, TStringPool, THashFunc >::GetKeyV(), THashSet< TKey, THashFunc >::GetKeyV(), TSnap::GetLen2Paths(), TBPGraph::GetLNIdV(), TILx::GetLnV(), TGraphEnumUtils::GetMinAndGraphIds(), TSnap::GetMxDegNId(), TSnap::GetMxInDegNId(), TSnap::GetMxOutDegNId(), TTimeNet::GetNIdByTm(), TTimeNENet::GetNIdByTm(), TCesnaUtil::GetNIdPhiV(), TAGMFastUtil::GetNIdPhiV(), GetNIdSorted(), TBigNet< TNodeData, IsDir >::GetNIdV(), TNGraphMP::GetNIdV(), TNodeNet< TNodeData >::GetNIdV(), TUNGraph::GetNIdV(), TNEANetMP::GetNIdV(), TNGraph::GetNIdV(), TNodeEDatNet< TNodeData, TEdgeData >::GetNIdV(), TNEGraph::GetNIdV(), TBPGraph::GetNIdV(), TNodeEdgeNet< TNodeData, TEdgeData >::GetNIdV(), TNEANet::GetNIdV(), TUndirNet::GetNIdV(), TDirNet::GetNIdV(), GetNodeAlias(), TGraphAnf< PGraph >::GetNodeAnf(), TTimeNet::GetNodeBuckets(), TTimeNENet::GetNodeBuckets(), TTree< TVal >::GetNodeIdV(), TSnap::GetNodeInDegV(), TGHash< TDat >::GetNodeMap(), TAGMUtil::GetNodeMembership(), TSnap::GetNodeOutDegV(), TSnap::GetNodesAtHop(), TTable::GetNodeTable(), TSnap::GetNodeWcc(), TCoda::GetNonEdgePairScores(), GetNthFeature(), TSnap::GetOutDegCnt(), TWebPg::GetOutDescUrlStrKdV(), TWebPg::GetOutUrlV(), TCliqueOverlap::GetOverlapCliques(), TSnap::GetPageRank(), TSnap::GetPageRankMP(), TMMNet::GetPartitionRanges(), TTable::GetPartitionRanges(), TGraphEnumUtils::GetPermutations(), TTimeNENet::GetPrefAttach(), TSnap::GetRndESubGraph(), TBreathFS< PGraph >::GetRndPath(), TBPGraph::GetRNIdV(), TVVec< TVal, TSizeTy >::GetRow(), TAttr::GetSAttrV(), TAttrPair::GetSAttrV(), TTable::GetSchema(), TSnap::GetShortestDistances(), TSnap::GetShortestDistancesMP2(), TUniChDb::GetSimpleCaseConverted(), TSnap::GetSngVec(), TStr::GetSpaceStr(), TTable::GetSrcNodeFltAttrV(), TTable::GetSrcNodeIntAttrV(), TTable::GetSrcNodeStrAttrV(), TSsParserMP::GetStartPosV(), TStrHash< TDat, TStringPool, THashFunc >::GetStrIdV(), TTable::GetStrRowIdxByMap(), TMMNet::GetSubgraphByModeNet(), TVec< TVal, TSizeTy >::GetSubValV(), THtmlLx::GetTag(), TXmlTok::GetTagTokV(), TXmlDoc::GetTagTokV(), TXmlTok::GetTagValV(), TTimeNet::GetTmBuckets(), TTimeNENet::GetTmBuckets(), THtmlLx::GetTokStrV(), TSnap::GetTreeSig(), TTimeNENet::GetTriadEdges(), TSnap::GetTriads(), TSnap::GetTriads_v0(), TSnap::GetTriangleCnt(), TSnap::GetUniqueNbrV(), TVec< TFlt, TSizeTy >::GetV(), TGStatVec::GetValV(), TILx::GetVarBoolV(), TILx::GetVarFltV(), TPredicateNode::GetVariables(), TILx::GetVarIntV(), TEnv::GetVarNmV(), TEnv::GetVarNmValV(), TILx::GetVarStrPrV(), TILx::GetVarStrV(), TILx::GetVarStrVV(), TSnap::GetWccs(), TSnap::GetWeightedBetweennessCentr(), TSnap::GetWeightedPageRankMP(), TSnap::GetWeightedShortestPath(), TUStr::GetWordUStrV(), TMAGFitBern::GradApxAffMtx(), TKroneckerLL::GradDescent(), TKroneckerLL::GradDescentConvergence(), TNetInfBs::GreedyOpt(), TTable::GroupAux(), TLocClustStat::ImposeNCP(), TTable::IncrementNext(), TForestFire::InfectAll(), TForestFire::InfectRnd(), TSnap::Infomap(), TSnap::InfomapOnline(), TNetInfBs::Init(), TNIBs::Init(), TTmInfo::InitDayOfWeekNmV(), TTmInfo::InitMonthNmV(), TGHash< TDat >::InitPermutations(), InitUnigramTable(), TUniChDb::InitWordAndSentenceBoundaryFlags(), TMaxPriorityQueue< TVal >::Insert(), TCrossNet::IntAttrNameEI(), TNEANetMP::IntAttrNameEI(), TNEANet::IntAttrNameEI(), TNEANetMP::IntAttrNameNI(), TNEANet::IntAttrNameNI(), TCrossNet::IntAttrValueEI(), TNEANetMP::IntAttrValueEI(), TNEANet::IntAttrValueEI(), TNEANetMP::IntAttrValueNI(), TNEANet::IntAttrValueNI(), TTable::Intersection(), TVec< TVal, TSizeTy >::Intrs(), TNEANet::IntVAttrNameEI(), TNEANet::IntVAttrNameNI(), TNEANet::IntVAttrValueEI(), TNEANet::IntVAttrValueNI(), TTable::IsNextK(), TStr::IsWcMatch(), KNNJaccard(), KNNJaccardParallel(), TNIBs::LabelBurstAutomaton(), TSparseSVD::Lanczos(), TSparseSVD::Lanczos2(), TTimeNet::LoadArxiv(), TAGMUtil::LoadCmtyVV(), TKeyDatFl< TKey, TDat, THashFunc >::LoadDatV(), TSnap::LoadDyNetGraphV(), TInt::LoadFrugalIntV(), TKeyDatFl< TKey, TDat, THashFunc >::LoadKeyV(), TLAMisc::LoadMatlabTFltVV(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), TTimeNet::LoadPatents(), TBigStrPool::LoadPoolShM(), TTable::LoadSS(), TTable::LoadSSPar(), TGnuPlot::LoadTs(), TMAGNodeBern::LoadTxt(), TMAGNodeBeta::LoadTxt(), TXmlDoc::LoadTxt(), TUniChDb::LoadTxt_ProcessDecomposition(), TSs::LoadTxtFldV(), TSpecFunc::LogFit(), TMAGFitBern::MakeCCDF(), TGUtil::MakeExpBins(), TGnuPlot::MakeExpBins(), TLocClustStat::MakeExpBins(), TSnap::MakeUnDir(), TSnap::TSnapDetail::MapEquationNew2Modules(), TSnap::MapHits(), TCluster::MCMC(), McMcGetAvgJ(), TTable::Merge(), MergeNbrs(), TSnap::MergeNbrs(), TTable::Minus(), TAGMFast::MLEGradAscent(), TCoda::MLEGradAscent(), TCesna::MLEGradAscent(), TAGMFit::MLEGradAscentGivenCAG(), TAGMFast::MLEGradAscentParallel(), TCoda::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), TLogRegFit::MLEGradient(), TAGMFast::MLENewton(), TCodaAnalyzer::Net2ModeCommunities(), TWebPg::New(), TSsParserMP::Next(), TSsParser::Next(), TSsParserMP::NextFromIndex(), TSsParser::NextSlow(), MotifCluster::NFiedlerVector(), node2vec(), TTable::NormalizeColNameV(), TVec< TFlt, TSizeTy >::operator+(), TWChA::operator+=(), TTable::Order(), TSparseSVD::OrtoIterSVD(), TUniChDb::TUcdFileReader::ParseCodePointList(), THttpResp::ParseHttpResp(), PlotAutoCorrelation(), TLocClustStat::PlotBestClustDens(), TNcpGraphsBase::PlotBestWhisker(), TLocClustStat::PlotBoltzmanCurve(), TTimeNet::PlotCCfOverTm(), TLocClust::PlotCutDistr(), TTimeNet::PlotEffDiam(), TTimeNENet::PlotEffDiam(), TFfGGen::PlotFireSize(), TSnap::PlotInvParticipRat(), TTimeNet::PlotMissingPast(), TLocClustStat::PlotNCP(), TNcpGraphsBase::PlotNcpMin(), TLocClustStat::PlotNCPModul(), TLocClustStat::PlotNcpTop10(), TLocClust::PlotPhiDistr(), TNcpGraphsBase::PlotRewBestWhisker(), TNcpGraphsBase::PlotRewNcpMin(), TSnap::PlotShortPathDistr(), TGnuPlot::PlotValCntH(), TGnuPlot::PlotValMomH(), TGnuPlot::PlotValRank(), TGnuPlot::PlotValV(), TLocClust::PlotVolDistr(), TSpecFunc::PowerFit(), PreprocessNode(), PreprocessTransitionProbs(), TSparseSVD::Project(), TTable::Project(), TSnapQueue< int >::Push(), TSStack< TInt >::Push(), TQQueue< TInt >::Push(), THtmlLx::PutArg(), TMBlobBs::PutBlob(), TWChA::PutCStr(), TTable::QSortPar(), TTable::ReadFltCol(), TTable::ReadIntCol(), TTable::ReadStrCol(), TSubGraphsEnum::RecurBfs(), TSubGraphsEnum::RecurBfs1(), TSnap::ReebRefine(), TSnap::ReebSimplify(), TKronNoise::RemoveEdgeNoise(), TTable::RequestIndexFlt(), TTable::RequestIndexInt(), TTable::RequestIndexStrMap(), TBigNet< TNodeData, IsDir >::Rewire(), TAGMUtil::RewireCmtyNID(), TKroneckerLL::RunEStep(), TKroneckerLL::RunKronEM(), TAGMFit::RunMCMC(), THtmlDoc::SaveHtmlToXml(), TNetInfBs::SaveObjInfo(), TMAGNodeSimple::SaveTxt(), TMAGNodeBern::SaveTxt(), TMAGNodeBeta::SaveTxt(), TLocClustStat::SaveTxtInfo(), TNcpGraphsBase::SaveTxtNcpMin(), TTable::Select(), TTable::SelectAtomic(), TTable::SelectAtomicConst(), TTable::SelfSimJoinPerGroup(), MotifCluster::SemicliqueMotifAdjacency(), TTable::SetCommonNodeAttrs(), TKroneckerLL::SetDegPerm(), TKroneckerLL::SetGraph(), TKroneckerLL::SetOrderPerm(), TKroneckerLL::SetRandomEdges(), TTimeNENet::SetRndEdgeTimes(), TKroneckerLL::SetRndPerm(), TQQueue< TInt >::Shuffle(), TTable::SimJoin(), TSparseSVD::SimpleLanczos(), SimulateWalk(), TTuple< TVal, NVals >::Sort(), TSparseOps< TKey, TDat >::SparseMerge(), MotifCluster::SpectralCut(), TTable::SpliceByGroup(), TStrUtil::SplitLines(), TStr::SplitOnAllAnyCh(), TStr::SplitOnAllCh(), TStrUtil::SplitOnCh(), TStr::SplitOnNonAlNum(), TStr::SplitOnStr(), TStr::SplitOnWs(), TStrUtil::SplitSentences(), TStrUtil::SplitWords(), TTable::StoreGroupCol(), TTable::StoreIntCol(), TTable::StoreStrCol(), TCrossNet::StrAttrNameEI(), TNEANetMP::StrAttrNameEI(), TNEANet::StrAttrNameEI(), TNEANetMP::StrAttrNameNI(), TNEANet::StrAttrNameNI(), TCrossNet::StrAttrValueEI(), TNEANetMP::StrAttrValueEI(), TNEANet::StrAttrValueEI(), TNEANetMP::StrAttrValueNI(), TNEANet::StrAttrValueNI(), SummarizeConnectedComponents(), TLocClust::SupportSweep(), MAPPR::sweepAPPR(), SymeigsSmallest(), TGStat::TakeConnComp(), TGraphKey::TakeGraph(), TGraphKey::TakeSig(), TGStat::TakeSpectral(), TGStat::TakeTriadPart(), TBigStrPool::TBigStrPool(), TempMotifCounter::TempMotifCounter(), TEnv::TEnv(), TGnuPlot::Test(), TSnap::TestAnf(), TKroneckerLL::TestBicCriterion(), TUniChDb::TestComposition(), TUniCodec::TestDecodeUtf16(), TUniCodec::TestDecodeUtf8(), TUniChDb::TestFindNextWordOrSentenceBoundary(), TKroneckerLL::TestGradDescent(), TKroneckerLL::TestSamplePerm(), TUniCodec::TestUtf16(), TUniCodec::TestUtf8(), TUniChDb::TestWbFindNonIgnored(), TFFile::TFFile(), TGraphAttributes::TGraphAttributes(), THtmlDoc::THtmlDoc(), THtmlHldV::THtmlHldV(), TTimeNENet::TimeGrowth(), TMBlobBs::TMBlobBs(), TNcpGraphsBase::TNcpGraphsBase(), TSnap::ToGraphMP(), TMMNet::ToNetworkMP(), TSnap::ToNetworkMP(), TSnap::ToNetworkMP2(), TBreathFS< PGraph >::TopDownStep(), TLAMisc::ToSpVec(), T8BitCodec< TEncoding_ISO8859_3 >::ToUnicode(), TPreproc::TPreproc(), TSnap::TSnapDetail::transitiveTransform(), MotifCluster::TriangleMotifAdjacency(), TSparseRowMatrix::TSparseRowMatrix(), TVecPool< TVal, TSizeTy >::TVecPool(), TGLib_OLD::TVecPool< TVal >::TVecPool(), TVec< TVal, TSizeTy >::Union(), TTable::Union(), TTable::UnionAll(), TTable::Unique(), TMAGFitBern::UpdateApxPhiMI(), TNIBs::UpdateDiff(), TTable::UpdateGrouping(), TMAGFitBern::UpdatePhi(), TMAGFitBern::UpdatePhiMI(), TTable::UpdateTableForNewRow(), MotifCluster::WedgeMotifAdjacency(), and TUniCodec::WordsToBytes().
|
inline |
Adds a new element at the end of the vector, after its current last element.
The content of Val
is copied to the new element.
Definition at line 608 of file ds.h.
|
inline |
Definition at line 610 of file ds.h.
|
inline |
Adds element Val
at the end of the vector. #TVec::Add2.
Definition at line 613 of file ds.h.
TSizeTy TVec< TVal, TSizeTy >::AddBackSorted | ( | const TVal & | Val, |
const bool & | Asc | ||
) |
Adds element Val
to a sorted vector.
Asc | Adds the element so that ascending (if true ) or descending (if false ) order is maintained. |
Definition at line 1133 of file ds.h.
References AssertR, and EAssertR.
TSizeTy TVec< TVal, TSizeTy >::AddMerged | ( | const TVal & | Val | ) |
Adds element Val
to a sorted vector only if the element Val
is not already in the vector.
Uses binary search to check whether an element is already in the vector.
Definition at line 1145 of file ds.h.
References AssertR, and EAssertR.
|
inline |
Adds element Val
at the end of the vector in a thread safe manner, returns the element index in the vector. TVec::AddMP.
Definition at line 617 of file ds.h.
Referenced by TSnap::GetShortestDistancesMP2().
TSizeTy TVec< TVal, TSizeTy >::AddSorted | ( | const TVal & | Val, |
const bool & | Asc = true , |
||
const TSizeTy & | _MxVals = -1 |
||
) |
Adds element Val
to a sorted vector.
Asc | Adds the element so that ascending (if true ) or descending (if false ) order is maintained. |
Definition at line 1117 of file ds.h.
References AssertR, EAssertR, and Swap().
Referenced by TNGraphMP::AddEdge(), TUNGraph::AddEdge(), TNEANetMP::AddEdge(), TNGraph::AddEdge(), TNEGraph::AddEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::AddEdge(), TNEANet::AddEdge(), TUNGraph::AddEdge2(), TNGraph::AddEdge2(), and TUNGraph::AddNode().
TSizeTy TVec< TVal, TSizeTy >::AddUnique | ( | const TVal & | Val | ) |
Adds element Val
to a vector only if the element Val
is not already in the vector.
Does not assume the vector to be sorted and thus uses linear search to check whether Val
is already in the vector.
Definition at line 1162 of file ds.h.
References AssertR.
Referenced by THitInfo::AddKeyword().
TSizeTy TVec< TVal, TSizeTy >::AddV | ( | const TVec< TVal, TSizeTy > & | ValV | ) |
Adds the elements of the vector ValV
to the to end of the vector.
Definition at line 1110 of file ds.h.
References AssertR, and TVec< TVal, TSizeTy >::Vals.
Referenced by TTable::AddTable(), TUniChDb::LoadTxt_ProcessDecomposition(), TUStr::operator+=(), TWChA::operator+=(), TTimeNet::PlotCCfOverTm(), TTimeNet::PlotEffDiam(), TTimeNENet::PlotEffDiam(), TTimeNet::PlotMedianDegOverTm(), TTimeNet::PlotMissingPast(), TUniChDb::TestFindNextWordOrSentenceBoundary(), TTimeNet::TimeGrowth(), TTimeNENet::TimeGrowth(), and TMMNet::ToNetworkMP().
TSizeTy TVec< TVal, TSizeTy >::AddVMerged | ( | const TVec< TVal, TSizeTy > & | ValV | ) |
Adds elements of ValV
to a sorted vector only if a particular element is not already in the vector.
Uses binary search to check whether an element is already in the vector.
Definition at line 1154 of file ds.h.
References AssertR, EAssertR, and TVec< TVal, TSizeTy >::Vals.
Returns an iterator pointing to the first element in the vector.
Definition at line 593 of file ds.h.
Referenced by TPackVec< TVal >::AddV(), TVecPool< TVal, TSizeTy >::AddV(), TGLib_OLD::TVecPool< TVal >::AddV(), ProcessedGraph::assignWeights_undir(), TGraphAnf< PGraph >::AvgLstZero(), TCrossNet::BegEAIntI(), TNEANetMP::BegEAIntI(), TNEANet::BegEAIntVI(), THash< TPair, THash >::BegI(), TNEANetMP::BegNAIntI(), TNEANet::BegNAIntVI(), TTable::BuildGraph(), TSnap::CascFind(), TSnap::CascFindMP(), TGraphAnf< PGraph >::GetGraphAnf(), TGraphAnf< PGraph >::GetNodeAnf(), TGraphAnf< PGraph >::InitAnfBits(), TVec< TFlt, TSizeTy >::IsSortedCmp(), TSparseColMatrix::PMultiply(), TSparseColMatrix::PMultiplyT(), TSnapQueue< int >::Push(), TVecPool< TInt >::PutV(), TGLib_OLD::TVecPool< TVal >::PutV(), TBigNet< TNodeData, IsDir >::SetInNIdV(), TBigNet< TNodeData, IsDir >::SetOutNIdV(), TVec< TFlt, TSizeTy >::SortCmp(), Sweep(), TBreathFS< PGraph >::TopDownStep(), TSubGraphEnum< TGraphCounter >::TSVec::TSVec(), and TGraphAnf< PGraph >::Union().
void TVec< TVal, TSizeTy >::BSort | ( | const TSizeTy & | MnLValN, |
const TSizeTy & | MxRValN, | ||
const bool & | Asc | ||
) |
Bubble sorts the values between positions MnLValN...MxLValN
.
Asc | Sorts the elements in ascending (if true ) or descending (if false ) order. |
Definition at line 1235 of file ds.h.
References Swap().
|
inlinestatic |
void TVec< TVal, TSizeTy >::Clr | ( | const bool & | DoDel = true , |
const TSizeTy & | NoDelLim = -1 |
||
) |
Clears the contents of the vector.
Vector's memory gets deallocated only if DoDel=true
or if vector's capacity is greater than NoDelLim
.
Definition at line 1022 of file ds.h.
References IAssertR.
Referenced by TGnuPlot::AddPwrFit3(), TLocClustStat::BagOfWhiskers(), TLocClustStat::BagOfWhiskers2(), TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TUndirFFire::BurnGeoFire(), TCliqueOverlap::CalculateOverlapMtx(), TUStr::Clr(), TWChA::Clr(), TCnCom::Clr(), TMAGParam< TMAGNodeBern >::Clr(), TGStatVec::Clr(), TSnapQueue< int >::Clr(), TLocClustStat::Clr(), TCrossNet::Clr(), TNEANetMP::Clr(), TUniTrie< TInt >::Clr(), TUniChDb::Clr(), TVecPool< TInt >::Clr(), TGLib_OLD::TVecPool< TVal >::Clr(), TSStack< TInt >::Clr(), TQQueue< TInt >::Clr(), TXmlLx::ClrArgV(), TSnap::TSnapDetail::CmtyGirvanNewmanStep(), TSnap::CommunityGirvanNewman(), TUniChDb::Compose(), TUniCodec::DecodeUtf16FromBytes(), TUniCodec::DecodeUtf16FromWords(), TUniCodec::DecodeUtf8(), TUniChDb::Decompose(), TUniChDb::DecomposeAndCompose(), TMom::Def(), THitInfo::DelKeywords(), TVec< TVal, TSizeTy >::Diff(), TBreathFS< PGraph >::DoBfsHybrid(), TSpecFunc::EntropyFracDim(), TSubGraphsEnum::EnumSubGraphs(), TUniChDb::ExtractStarters(), TLocClust::FindBestCut(), TQQueue< TInt >::Gen(), TBlobBs::GenBlockLenV(), TAGMUtil::GenCmtyVVFromPL(), TTable::GenerateColTypeMap(), TSnap::GenGeoPrefAttach(), TSnap::Get1CnCom(), TSnap::Get1CnComSzCnt(), TUnicode::GetAllCodecs(), TempMotifCounter::GetAllStaticTriangles(), TUniChDb::GetCaseConverted(), TSnap::GetCmnNbrs(), THttpResp::GetCookieKeyValDmPathQuV(), TCliqueOverlap::GetCPMCommunities(), TLocClustStat::GetCurveStat(), THttpResp::GetFldValV(), TFFile::GetFNmV(), TGraphAnf< PGraph >::GetGraphAnf(), TSnap::GetInvParticipRat(), TSnap::GetKCoreEdges(), TSnap::GetKCoreNodes(), THashSet< TKey, THashFunc >::GetKeyV(), TSnap::GetLen2Paths(), TILx::GetLnV(), TCliqueOverlap::GetMaxCliques(), TCliqueOverlap::GetMaximalCliques(), TSnap::GetMxDegNId(), TSnap::GetMxInDegNId(), TSnap::GetMxOutDegNId(), TUniChDb::TUcdFileReader::GetNextLine(), TGraphAnf< PGraph >::GetNodeAnf(), TTree< TVal >::GetNodeIdV(), TGHash< TDat >::GetNodeMap(), TSnap::GetNodesAtHop(), TWebPg::GetOutDescUrlStrKdV(), TWebPg::GetOutUrlV(), TBreathFS< PGraph >::GetRndPath(), TUniChDb::GetSimpleCaseConverted(), TSnap::GetSngVec(), THtmlLx::GetSym(), TXmlTok::GetTagTokV(), TXmlDoc::GetTagTokV(), THtmlLx::GetTokStrV(), TTimeNENet::GetTriadEdges(), TSnap::GetTriads(), TSnap::GetTriads_v0(), TVecPool< TInt >::GetV(), TGLib_OLD::TVecPool< TVal >::GetV(), TILx::GetVarBoolV(), TILx::GetVarFltV(), TILx::GetVarIntV(), TEnv::GetVarNmV(), TEnv::GetVarNmValV(), TILx::GetVarStrPrV(), TILx::GetVarStrV(), TILx::GetVarStrVV(), TSnap::GetWccs(), TUStr::GetWordUStrV(), TKroneckerLL::GradDescentConvergence(), TNetInfBs::Init(), TNIBs::Init(), ChibaNishizekiWeighter::Initialize(), TTable::InitRowIdBuckets(), TVec< TVal, TSizeTy >::Intrs(), KNNJaccard(), KNNJaccardParallel(), TInt::LoadFrugalIntV(), TLAMisc::LoadMatlabTFltVV(), TGnuPlot::LoadTs(), TXmlDoc::LoadTxt(), TSs::LoadTxtFldV(), TGUtil::MakeExpBins(), TGnuPlot::MakeExpBins(), TLocClustStat::MakeExpBins(), TSsParserMP::Next(), TSsParser::Next(), TSsParserMP::NextFromIndex(), TSsParser::NextSlow(), TUniChDb::TUcdFileReader::ParseCodePointList(), TSnapQueue< int >::Pop(), TQQueue< TInt >::Pop(), TTable::QSortPar(), TSubGraphsEnum::RecurBfs(), TSubGraphsEnum::RecurBfs1(), TSnap::ReebRefine(), TKroneckerLL::RestoreGraph(), TLocClustStat::Run(), TTable::SelfSimJoinPerGroup(), TSparseOps< TKey, TDat >::SparseMerge(), TStrUtil::SplitLines(), TStr::SplitOnAllAnyCh(), TStr::SplitOnAllCh(), TStrUtil::SplitOnCh(), TStr::SplitOnNonAlNum(), TStr::SplitOnStr(), TStr::SplitOnWs(), TStrUtil::SplitSentences(), TStrUtil::SplitWords(), TLocClust::SupportSweep(), MAPPR::sweepAPPR(), TUniCodec::TestUtf16(), TUniCodec::TestUtf8(), THtmlHldV::THtmlHldV(), TTimeNENet::TimeGrowth(), TSnap::ToGraphMP3(), TLAMisc::ToSpVec(), T8BitCodec< TEncoding_ISO8859_3 >::ToUnicode(), and TUniCodec::WordsToBytes().
void TVec< TVal, TSizeTy >::CopyUniqueFrom | ( | TVec< TVal, TSizeTy > & | Vec, |
TInt | Offset, | ||
TInt | Sz | ||
) |
Copy Sz
values from Vec
starting at Offset
.
Definition at line 1082 of file ds.h.
References EAssertR, and TVec< TVal, TSizeTy >::ValT.
Referenced by TSnap::ToGraphMP(), TSnap::ToNetworkMP(), and TSnap::ToNetworkMP2().
TSizeTy TVec< TVal, TSizeTy >::Count | ( | const TVal & | Val | ) | const |
Counts the number of occurrences of Val
in the vector.
void TVec< TVal, TSizeTy >::Del | ( | const TSizeTy & | ValN | ) |
Removes the element at position ValN
.
Definition at line 1189 of file ds.h.
References Assert, AssertR, and EAssertR.
Referenced by TGStatVec::Del(), TNGraphMP::DelEdge(), TUNGraph::DelEdge(), TNGraph::DelEdge(), TBPGraph::DelEdge(), TUndirNet::DelEdge(), TDirNet::DelEdge(), TVec< TFlt, TSizeTy >::DelLast(), TNGraphMP::DelNode(), TNodeNet< TNodeData >::DelNode(), TUNGraph::DelNode(), TNGraph::DelNode(), TNodeEDatNet< TNodeData, TEdgeData >::DelNode(), TBPGraph::DelNode(), TUndirNet::DelNode(), TDirNet::DelNode(), TSnap::findMinimum(), TSnap::GenGeoPrefAttach(), TSnap::Get1CnCom(), TSnap::Get1CnComSzCnt(), TSvd::GetCfV(), TSnap::GetRndSubGraph(), TTable::ProjectInPlace(), TSnapQueue< int >::Push(), TQQueue< TInt >::Push(), TKroneckerLL::RestoreGraph(), TSvd::Svd(), and TSvd::Svd1Based().
void TVec< TVal, TSizeTy >::Del | ( | const TSizeTy & | MnValN, |
const TSizeTy & | MxValN | ||
) |
Removes the elements at positions MnValN...MxValN
.
Definition at line 1199 of file ds.h.
References Assert, AssertR, and EAssertR.
void TVec< TVal, TSizeTy >::DelAll | ( | const TVal & | Val | ) |
Removes all occurrences of element Val
.
Definition at line 1221 of file ds.h.
References AssertR, and EAssertR.
bool TVec< TVal, TSizeTy >::DelIfIn | ( | const TVal & | Val | ) |
Removes the first occurrence of element Val
.
Definition at line 1212 of file ds.h.
References AssertR, and EAssertR.
Referenced by TNEGraph::DelEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::DelEdge(), TNEANet::DelEdge(), TNEANet::DelFromIntVAttrDatN(), TCodaAnalyzer::Draw2ModeCommunity(), and TCodaAnalyzer::Dump2ModeCommunities().
|
inline |
Removes the last element of the vector.
Definition at line 665 of file ds.h.
Referenced by ChibaNishizekiWeighter::CliqueEnum(), TAGMUtil::ConnectCmtyVV(), TGStatVec::DelLast(), TCliqueOverlap::Expand(), TSnap::GetBetweennessCentr(), GetNodeAlias(), TSnap::GetWeightedBetweennessCentr(), InitUnigramTable(), TKroneckerLL::MetroGibbsSampleNext(), TSsParserMP::Next(), TSsParser::Next(), TSsParserMP::NextFromIndex(), TSsParser::NextSlow(), TSStack< TInt >::Pop(), TMaxPriorityQueue< TVal >::PopMax(), TAGMFit::RemoveEmptyCom(), TAGMUtil::RewireCmtyNID(), TGnuPlot::SaveEps(), TGnuPlot::SavePng(), TStrUtil::SplitOnCh(), and TStrUtil::SplitWords().
void TVec< TVal, TSizeTy >::Diff | ( | const TVec< TVal, TSizeTy > & | ValV | ) |
Subtracts ValV
from this vector. Assumes the vectors are sorted!
This vector keeps only elements that do not appear in ValV
.
void TVec< TVal, TSizeTy >::Diff | ( | const TVec< TVal, TSizeTy > & | ValV, |
TVec< TVal, TSizeTy > & | DstValV | ||
) | const |
Sets DstValV
to the difference between this vector and ValV
. Assumes the vectors are sorted!
DstValV
has all the elements of this vector that do not appear in ValV
.
Definition at line 1463 of file ds.h.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), TVec< TVal, TSizeTy >::GetVal(), and TVec< TVal, TSizeTy >::Len().
|
inline |
Tests whether the vector is empty.
This means the vector contains zero elements (while its capacity may be greater than zero).
Definition at line 570 of file ds.h.
Referenced by TGnuPlot::AddErrBar(), TGnuPlot::AddExpFit(), TTable::AddJointRow(), TGnuPlot::AddLinFit(), TGnuPlot::AddLogFit(), TGnuPlot::AddPlot(), TGnuPlot::AddPwrFit1(), TGnuPlot::AddPwrFit2(), TGnuPlot::AddPwrFit3(), TGStat::AvgGStat(), TLocClustStat::BagOfWhiskers(), TLocClustStat::BagOfWhiskers2(), TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TUndirFFire::BurnGeoFire(), TGnuPlot::CreatePlotFile(), TBreathFS< PGraph >::DoBfsHybrid(), TMAGAffMtx::Empty(), TKronMtx::Empty(), TUStr::Empty(), TWChA::Empty(), TCnCom::Empty(), TGStatVec::Empty(), THeap< TTriple >::Empty(), PVec< TVal >::Empty(), TSnap::Get1CnCom(), TSnap::Get1CnComSzCnt(), TStr::GetChStr(), TSnap::GetClustCf(), TLocClustStat::TCutInfo::GetFracDegOut(), TEnv::GetIfArgPrefixStrV(), TSnap::GetInvParticipRat(), TMAGAffMtx::GetMtx(), TKronMtx::GetMtx(), TSnap::GetMxBiCon(), TSnap::GetMxDegNId(), TSnap::GetMxInDegNId(), TSnap::GetMxOutDegNId(), TSnap::GetMxScc(), TSnap::GetMxWcc(), TBreathFS< PGraph >::GetRndPath(), TSnap::GetShortestDistances(), TSnap::GetShortestDistancesMP2(), TStr::GetStr(), TSnap::GetWeightedShortestPath(), TUStr::GetWordUStrV(), TLocClustStat::ImposeNCP(), TTable::IncrementNext(), TBigNet< TNodeData, IsDir >::IsIsoNode(), TBigNet< TNodeData, IsDir >::IsOk(), TLAMisc::LoadMatlabTFltVV(), TSs::LoadTxt(), TGnuPlot::MakeExpBins(), TLocClustStat::MakeExpBins(), TLinReg::New(), TSvd::New(), TSsParserMP::Next(), TSsParser::Next(), TSsParser::NextSlow(), TNcpGraphsBase::PlotBestWhisker(), TTimeNet::PlotEffDiam(), TSnap::PlotEigValDistr(), PlotGrad(), TSnap::PlotInvParticipRat(), TTimeNet::PlotMissingPast(), TLocClustStat::PlotNCP(), TNcpGraphsBase::PlotNcpMin(), TLocClustStat::PlotNCPModul(), TNcpGraphsBase::PlotRewBestWhisker(), TNcpGraphsBase::PlotRewNcpMin(), TSnap::PlotSngValDistr(), PlotTrueAndEst(), TGnuPlot::PlotValMomH(), TSnapQueue< int >::Push(), TGraphKey::SaveGViz(), TNcpGraphsBase::SaveTxtNcpMin(), TStrUtil::SplitOnCh(), and TStrUtil::SplitWords().
Returns an iterator referring to the past-the-end element in the vector.
Definition at line 595 of file ds.h.
Referenced by THash< TPair, THash >::BegI(), TTable::BuildGraph(), TSnap::CascFind(), TSnap::CascFindMP(), TCrossNet::EndEAIntI(), TNEANetMP::EndEAIntI(), TNEANet::EndEAIntVI(), THash< TPair, THash >::EndI(), TNEANetMP::EndNAIntI(), TNEANet::EndNAIntVI(), THash< TPair, THash >::GetI(), TAGMUtil::GetNodeMembership(), TVec< TFlt, TSizeTy >::IsSortedCmp(), TVec< TFlt, TSizeTy >::SortCmp(), Sweep(), and TBreathFS< PGraph >::TopDownStep().
|
inline |
Constructs a vector (an array) of _Vals
elements.
Definition at line 523 of file ds.h.
Referenced by TLocClustStat::BagOfWhiskers(), TLocClustStat::BagOfWhiskers2(), TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TLogRegFit::CalcLogRegGradient(), TLogRegFit::CalcLogRegNewton(), TCliqueOverlap::CalculateOverlapMtx(), TSnap::TSnapDetail::TCNMQMatrix::CmtyCMN(), TMAGFitBern::CountAttr(), TMom::Def(), TMAGFitBern::DoEMAlg(), TMAGFitBern::DoEStepApxOneIter(), TMAGFitBern::DoEStepOneIter(), TMAGFitBern::DoMStep(), TSpecFunc::EntropyFracDim(), TSubGraphsEnum::EnumSubGraphs(), TAGMFast::FindComsByCV(), TUniChDb::FindSentenceBoundaries(), TUniChDb::FindWordBoundaries(), TKronNoise::FlipEdgeNoise(), TSnapQueue< int >::Gen(), THash< TPair, THash >::Gen(), THashSet< TInt >::Gen(), TSubGraphsEnum::Gen2Graphs(), TBlobBs::GenFFreeBlobPtV(), TCesna::GenHoldOutAttr(), TCesnaUtil::GenHoldOutPairs(), TAGMFastUtil::GenHoldOutPairs(), TMAGAffMtx::GenMtx(), TKronMtx::GenMtx(), TAGMUtil::GenPLSeq(), TBlobBs::GetBlockLenV(), TLocClustStat::GetBoltzmanCurveStat(), TSvd::GetCfUncerV(), TLogRegPredict::GetCfy(), TStr::GetChStr(), TSnap::GetClustCf(), TCodaAnalyzer::GetCmtyVAll(), TAGMFast::GetCmtyVV(), TCoda::GetCmtyVV(), TAGMFit::GetCmtyVV(), TCesna::GetCmtyVV(), TCoda::GetCmtyVVUnSorted(), TCesna::GetCmtyVVUnSorted(), TVVec< TVal, TSizeTy >::GetCol(), THashMP< TKey, TDat, THashFunc >::GetDatV(), THash< TKey, TDat, THashFunc >::GetDatV(), TSparseHash< TKey, TDat, GroupSize >::GetDatV(), TStrHash< TDat, TStringPool, THashFunc >::GetDatV(), TSnap::GetDegCnt(), TSnap::GetDegSeqV(), TMAGParam< TNodeAttr >::GetDimV(), TTimeNENet::GetEdgeBuckets(), TAGMFit::GetEdgeJointCom(), TTimeNENet::GetEdgeTmBuckets(), TTimeNENet::GetEIdByTm(), TNEANetMP::GetEIdV(), TNEGraph::GetEIdV(), TNodeEdgeNet< TNodeData, TEdgeData >::GetEIdV(), TNEANet::GetEIdV(), TBlobBs::GetFFreeBlobPtV(), TGraphAnf< PGraph >::GetGraphAnf(), TSnap::GetInDegCnt(), TGraphEnumUtils::GetIsoGraphs(), TGHash< TDat >::GetKeyIdByDat(), TGHash< TDat >::GetKeyIdByGSz(), THashMP< TKey, TDat, THashFunc >::GetKeyV(), THash< TKey, TDat, THashFunc >::GetKeyV(), TSparseHash< TKey, TDat, GroupSize >::GetKeyV(), TSparseSet< TKey, GroupSize >::GetKeyV(), TStrHash< TDat, TStringPool, THashFunc >::GetKeyV(), TBPGraph::GetLNIdV(), TComb::GetNext(), TTimeNet::GetNIdByTm(), TTimeNENet::GetNIdByTm(), TCesnaUtil::GetNIdPhiV(), TAGMFastUtil::GetNIdPhiV(), TNGraphMP::GetNIdV(), TUNGraph::GetNIdV(), TNEANetMP::GetNIdV(), TNGraph::GetNIdV(), TNEGraph::GetNIdV(), TBPGraph::GetNIdV(), TNodeEdgeNet< TNodeData, TEdgeData >::GetNIdV(), TNEANet::GetNIdV(), TUndirNet::GetNIdV(), TDirNet::GetNIdV(), TGraphAnf< PGraph >::GetNodeAnf(), TTimeNet::GetNodeBuckets(), TTimeNENet::GetNodeBuckets(), TSnap::GetNodeWcc(), TCoda::GetNonEdgePairScores(), TSnap::GetOutDegCnt(), TAGMFit::GetQV(), TBPGraph::GetRNIdV(), TVVec< TVal, TSizeTy >::GetRow(), TSnap::GetShortestDistances(), TSnap::GetShortestDistancesMP2(), TSnap::TSnapDetail::GetSphereDev(), TStrHash< TDat, TStringPool, THashFunc >::GetStrIdV(), TVec< TVal, TSizeTy >::GetSubValV(), TQQueue< TInt >::GetSubValV(), TTimeNet::GetTmBuckets(), TTimeNENet::GetTmBuckets(), TSnap::GetTreeSig(), TGStatVec::GetValV(), TLinReg::GetXV(), TSvd::GetXV(), TMAGFitBern::GradApxAffMtx(), TKroneckerLL::GradDescent(), TLogRegFit::Gradient(), TCoda::GradientForNode(), TAGMFast::GradientForRow(), TCesna::GradientForRow(), TCesna::GradientForWK(), TAGMFit::GradLogLForLambda(), TForestFire::Infect(), TForestFire::InfectAll(), TForestFire::InfectRnd(), TGraphAnf< PGraph >::InitAnfBits(), TKroneckerLL::InitLL(), TAGMFit::InitNodeData(), TTable::InitRowIdBuckets(), TSimpleGraph::Join(), TCoda::LikelihoodForNode(), TAGMFast::LikelihoodForRow(), TCesna::LikelihoodForRow(), TAGMUtil::LoadCmtyVV(), TKeyDatFl< TKey, TDat, THashFunc >::LoadDatV(), TKeyDatFl< TKey, TDat, THashFunc >::LoadKeyV(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), TBigStrPool::LoadPoolShM(), TGnuPlot::LoadTs(), TMAGNodeBern::LoadTxt(), TMAGNodeBeta::LoadTxt(), TMAGFitBern::MakeCCDF(), TGnuPlot::MakeExpBins(), TLocClustStat::MakeExpBins(), TAGMFast::NeighborComInit(), TCoda::NeighborComInit(), TCesna::NeighborComInit(), TMom::NewV(), TSparseSVD::Project(), TWChA::PutCStr(), TAGMFast::RandomInit(), TCoda::RandomInit(), TCesna::RandomInit(), TKronNoise::RemoveEdgeNoise(), TKronMaxLL::RoundTheta(), TKroneckerLL::RunEStep(), TKroneckerLL::RunKronEM(), TKroneckerLL::SampleGradient(), TMAGNodeSimple::SaveTxt(), TMAGNodeBern::SaveTxt(), TMAGNodeBeta::SaveTxt(), TUniChDb::SbEx_Add(), TKroneckerLL::SetBestDegPerm(), TAGMFast::SetCmtyVV(), TCoda::SetCmtyVV(), TCesna::SetCmtyVV(), TKroneckerLL::SetDegPerm(), TKroneckerLL::SetGraph(), TKroneckerLL::SetIPerm(), TKroneckerLL::SetOrderPerm(), TMAGAffMtx::SetRndMtx(), TKronMtx::SetRndMtx(), TKroneckerLL::SetRndPerm(), TSparseSVD::SimpleLanczos(), TMAGFitBern::SortAttrOrdering(), TSvd::Svd(), TSvd::Svd1Based(), TGStat::TakeConnComp(), TGraphKey::TakeGraph(), TGraphKey::TakeSig(), TGStat::TakeSpectral(), TGStat::TakeTriadPart(), TBigStrPool::TBigStrPool(), TUniChDb::TestFindNextWordOrSentenceBoundary(), TKroneckerLL::TestSamplePerm(), TUniCodec::TestUtf16(), TUniCodec::TestUtf8(), TUniChDb::TestWbFindNonIgnored(), TGraphKey::TGraphKey(), TMAGFitBern::TMAGFitBern(), TMAGNodeBeta::TMAGNodeBeta(), TSnap::ToGraphMP3(), TLAMisc::ToVec(), TSubGraphEnum< TGraphCounter >::TSVec::TSVec(), TVecPool< TVal, TSizeTy >::TVecPool(), TGLib_OLD::TVecPool< TVal >::TVecPool(), TVec< TVal, TSizeTy >::Union(), TMAGFitBern::UpdateApxPhiMI(), TMAGFitBern::UpdatePhi(), and TMAGFitBern::UpdatePhiMI().
|
inline |
Constructs a vector (an array) of _Vals
elements, while reserving enough memory for _MxVals
elements.
Definition at line 527 of file ds.h.
|
inline |
Constructs a vector of _Vals
elements of memory array _ValT
.
The data is not copied and the vector does not own the memory (the vector won't free the memory at destruction).
Definition at line 534 of file ds.h.
Referenced by TNGraphMP::AddNode(), TUNGraph::AddNode(), TNGraph::AddNode(), TUndirNet::AddNode(), TDirNet::AddNode(), TVecPool< TInt >::GetV(), and TGLib_OLD::TVecPool< TVal >::GetV().
|
inline |
Returns reference to the first occurrence of element Val
.
If the element does not exist, we add it at the end of the vector.
Definition at line 842 of file ds.h.
|
inline |
Returns reference to the first occurrence of element Val
.
Definition at line 838 of file ds.h.
Referenced by TempMotifCounter::AddStarEdgeData(), TempMotifCounter::AddStarEdges(), TempMotifCounter::AddTriadEdgeData(), AppendFeatures(), TSnap::CmtyEvolutionFileBatch(), MAPPR::computeAPPR(), MAPPR::computeProfile(), TempMotifCounter::Count3TEdgeTriads(), TBPGraph::DelEdge(), TNEANet::TAIntVI::GetDat(), TGHash< TDat >::GetNodeMap(), TAGMFast::MLEGradAscentParallel(), TCoda::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), PrintFeatures(), TTable::PrintGrouping(), TSnap::ReebRefine(), TSnap::ReebSimplify(), TNetInfBs::SaveObjInfo(), TAGMFast::SetCmtyVV(), TCoda::SetCmtyVV(), TTable::SpliceByGroup(), and TMMNet::ToNetwork2().
|
inline |
Returns an iterator an element at position ValN
.
Definition at line 597 of file ds.h.
Referenced by TCrossNet::GetEAIntI(), TNEANetMP::GetEAIntI(), TNEANet::GetEAIntVI(), TNEANetMP::GetNAIntI(), TNEANet::GetNAIntVI(), and TSnapQueue< int >::Push().
|
inline |
|
inline |
Returns the memory footprint (the number of bytes) of the vector.
Definition at line 511 of file ds.h.
Referenced by TWChA::GetMemUsed(), THash< TPair, THash >::GetMemUsed(), GroupStmt::GetMemUsed(), TStrHash< TInt, TBigStrPool >::GetMemUsed(), THashSet< TInt >::GetMemUsed(), and TTable::GetMemUsedKB().
TSizeTy TVec< TVal, TSizeTy >::GetMxValN | ( | ) | const |
TSizeTy TVec< TVal, TSizeTy >::GetPivotValN | ( | const TSizeTy & | LValN, |
const TSizeTy & | RValN | ||
) | const |
Picks three random elements at positions LValN...RValN
and returns the middle one.
Definition at line 1265 of file ds.h.
References TInt::GetRnd(), and TInt::Mx.
|
inlinestatic |
Picks three random elements at positions BI...EI
and returns the middle one under the comparator Cmp
.
Definition at line 729 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::QSortCmp().
int TVec< TVal, TSizeTy >::GetPrimHashCd | ( | ) | const |
Returns primary hash code of the vector. Used by THash
.
Definition at line 999 of file ds.h.
References TPairHashImpl2::GetHashCd().
Referenced by TMAGAffMtx::GetPrimHashCd(), TKronMtx::GetPrimHashCd(), TGraphKey::GetPrimHashCd(), TCnCom::GetPrimHashCd(), GroupStmt::GetPrimHashCd(), and TVecHashF_OldGLib< TVec >::GetPrimHashCd().
|
inline |
Returns a reference to a random element in the vector.
Definition at line 589 of file ds.h.
Referenced by TSnap::SamplePersonalizedPageRank().
|
inline |
int TVec< TVal, TSizeTy >::GetSecHashCd | ( | ) | const |
Returns secondary hash code of the vector. Used by THash
.
Definition at line 1011 of file ds.h.
References TPairHashImpl2::GetHashCd().
Referenced by TMAGAffMtx::GetSecHashCd(), TKronMtx::GetSecHashCd(), TGraphKey::GetSecHashCd(), TCnCom::GetSecHashCd(), GroupStmt::GetSecHashCd(), and TVecHashF_OldGLib< TVec >::GetSecHashCd().
void TVec< TVal, TSizeTy >::GetSubValV | ( | const TSizeTy & | BValN, |
const TSizeTy & | EValN, | ||
TVec< TVal, TSizeTy > & | ValV | ||
) | const |
Fills ValV
with elements at positions BValN...EValN
.
Definition at line 1170 of file ds.h.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Gen(), TInt::GetInRng(), and TInt::GetMx().
Referenced by TKroneckerLL::ChainGelmapRubinPlot(), TWChA::GetSubWChA(), TWChA::IsPrefix(), TWChA::IsSufix(), TMAGFitBern::NextPermutation(), and TLocClustStat::Run().
|
inlinestatic |
Returns a vector on element Val1
.
Definition at line 848 of file ds.h.
Referenced by TBigNet< TNodeData, IsDir >::InvertFromSources(), TBigNet< TNodeData, IsDir >::SetInNIdV(), and TBigNet< TNodeData, IsDir >::SetOutNIdV().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Returns a vector on elements Val1...Val5
.
Definition at line 860 of file ds.h.
|
inlinestatic |
Returns a vector on elements Val1...Val6
.
Definition at line 863 of file ds.h.
|
inlinestatic |
Returns a vector on elements Val1...Val7
.
Definition at line 866 of file ds.h.
|
inlinestatic |
Returns a vector on elements Val1...Val8
.
Definition at line 869 of file ds.h.
|
inlinestatic |
Returns a vector on elements Val1...Val9
.
Definition at line 872 of file ds.h.
|
inline |
Returns a reference to the element at position ValN
in the vector.
Definition at line 649 of file ds.h.
Referenced by TSnap::CascFind(), TSnap::CascFindMP(), TSnap::CascGraphSource(), TSnap::CascGraphTime(), TVec< TVal, TSizeTy >::Diff(), TCrossNet::EdgeAttrIsIntDeleted(), TNEANetMP::EdgeAttrIsIntDeleted(), TNEANet::EdgeAttrIsIntDeleted(), TSnap::findMinimum(), TVec< TFlt, TSizeTy >::GetAddDat(), TVec< TFlt, TSizeTy >::GetDat(), TCrossNet::GetEdgeAttrValue(), TNEANetMP::GetEdgeAttrValue(), TNEANet::GetEdgeAttrValue(), TNEANetMP::GetNodeAttrValue(), TNEANet::GetNodeAttrValue(), TVec< TFlt, TSizeTy >::GetRndVal(), TSnap::GetShortestDistances(), TSnap::GetShortestDistancesMP2(), TCrossNet::IntAttrValueEI(), TNEANetMP::IntAttrValueEI(), TNEANet::IntAttrValueEI(), TNEANetMP::IntAttrValueNI(), TNEANet::IntAttrValueNI(), TVec< TVal, TSizeTy >::Intrs(), TVec< TVal, TSizeTy >::IntrsLen(), TVec< TFlt, TSizeTy >::Last(), TNEANetMP::NodeAttrIsIntDeleted(), TNEANet::NodeAttrIsIntDeleted(), TSnap::ToGraphMP(), TSnap::ToNetworkMP(), TSnap::ToNetworkMP2(), TVec< TVal, TSizeTy >::Union(), and TVec< TVal, TSizeTy >::UnionLen().
|
inline |
|
protected |
Constructs the out of bounds error message.
Definition at line 913 of file ds.h.
References TInt::GetStr(), and GetTypeNm().
Referenced by TVec< TFlt, TSizeTy >::LastLast(), TVec< TFlt, TSizeTy >::operator[](), and TVec< TFlt, TSizeTy >::SetVal().
void TVec< TVal, TSizeTy >::Ins | ( | const TSizeTy & | ValN, |
const TVal & | Val | ||
) |
Inserts new element Val
before the element at position ValN
.
Definition at line 1180 of file ds.h.
References Assert, AssertR, and EAssertR.
Referenced by TNEANet::AddAttributes(), TCrossNet::AddEdge(), TNEANetMP::AddEdge(), TNEANet::AddEdge(), TCrossNet::AddFltAttrDatE(), TNEANetMP::AddFltAttrDatE(), TNEANet::AddFltAttrDatE(), TNEANetMP::AddFltAttrDatN(), TNEANet::AddFltAttrDatN(), TCrossNet::AddFltAttrE(), TNEANetMP::AddFltAttrE(), TNEANet::AddFltAttrE(), TNEANetMP::AddFltAttrN(), TNEANet::AddFltAttrN(), TCrossNet::AddIntAttrDatE(), TNEANetMP::AddIntAttrDatE(), TNEANet::AddIntAttrDatE(), TNEANetMP::AddIntAttrDatN(), TNEANet::AddIntAttrDatN(), TCrossNet::AddIntAttrE(), TNEANetMP::AddIntAttrE(), TNEANet::AddIntAttrE(), TNEANetMP::AddIntAttrN(), TNEANet::AddIntAttrN(), TNEANetMP::AddNode(), TCrossNet::AddStrAttrDatE(), TNEANetMP::AddStrAttrDatE(), TNEANet::AddStrAttrDatE(), TNEANetMP::AddStrAttrDatN(), TNEANet::AddStrAttrDatN(), TCrossNet::AddStrAttrE(), TNEANetMP::AddStrAttrE(), TNEANet::AddStrAttrE(), TNEANetMP::AddStrAttrN(), and TNEANet::AddStrAttrN().
void TVec< TVal, TSizeTy >::Intrs | ( | const TVec< TVal, TSizeTy > & | ValV | ) |
Sets this vector to its intersection with ValV
. Assumes the vectors are sorted!
void TVec< TVal, TSizeTy >::Intrs | ( | const TVec< TVal, TSizeTy > & | ValV, |
TVec< TVal, TSizeTy > & | DstValV | ||
) | const |
Sets DstValV
to the intersection of this vector and ValV
. Assumes the vectors are sorted!
Definition at line 1432 of file ds.h.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), TVec< TVal, TSizeTy >::GetVal(), and TVec< TVal, TSizeTy >::Len().
TSizeTy TVec< TVal, TSizeTy >::IntrsLen | ( | const TVec< TVal, TSizeTy > & | ValV | ) | const |
Returns the size of the intersection of vectors this
and ValV
. Assumes the vectors are sorted!
Definition at line 1479 of file ds.h.
References TVec< TVal, TSizeTy >::GetVal(), and TVec< TVal, TSizeTy >::Len().
Referenced by TSnap::ReebSimplify().
|
inline |
Returns true if the vector was created using the GenExt()
.
In this case the vector does not own the memory (and won't free the memory at destruction).
Definition at line 541 of file ds.h.
|
inline |
Checks whether element Val
is a member of the vector.
Definition at line 828 of file ds.h.
Referenced by TSnap::CmtyEvolutionFileBatchV(), THtmlLx::IsArg(), TXmlLx::IsArgNm(), TSStack< TInt >::IsIn(), TPreproc::IsSubstId(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), TSs::LoadTxt(), TModeNet::RemoveCrossNets(), TNIBs::SaveInferred(), TNIBs::SaveInferredPajek(), and TPreproc::TPreproc().
|
inline |
|
inline |
void TVec< TVal, TSizeTy >::ISort | ( | const TSizeTy & | MnLValN, |
const TSizeTy & | MxRValN, | ||
const bool & | Asc | ||
) |
Insertion sorts the values between positions MnLValN...MxLValN
.
Asc | Sorts the elements in ascending (if true ) or descending (if false ) order. |
Definition at line 1248 of file ds.h.
Referenced by TTable::GroupAux().
|
inlinestatic |
Insertion sorts the values between positions BI...EI
under the comparator Cmp
.
Definition at line 756 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::QSortCmp().
bool TVec< TVal, TSizeTy >::IsSorted | ( | const bool & | Asc = true | ) | const |
Checks whether the vector is sorted in ascending (if Asc=true
) or descending (if Asc=false
) order.
Definition at line 1323 of file ds.h.
Referenced by TBigNet< TNodeData, IsDir >::AddNode(), TBigNet< TNodeData, IsDir >::AddUndirNode(), TSnap::GenDegSeq(), TNGraphMP::IsOk(), TNodeNet< TNodeData >::IsOk(), TUNGraph::IsOk(), TNEANetMP::IsOk(), TNGraph::IsOk(), TNodeEDatNet< TNodeData, TEdgeData >::IsOk(), TNEGraph::IsOk(), TNodeEdgeNet< TNodeData, TEdgeData >::IsOk(), TNEANet::IsOk(), TUndirNet::IsOk(), TDirNet::IsOk(), TStatTest::KsTest(), TGnuPlot::MakeExpBins(), and TBigNet< TNodeData, IsDir >::SortEdgeV().
|
inline |
Checks whether the vector is sorted according to the comparator Cmp
.
|
inline |
Returns a reference to the last element of the vector.
Definition at line 579 of file ds.h.
Referenced by TGStatVec::Add(), THist::Add(), TGnuPlot::AddPwrFit3(), TSnap::TSnapDetail::CalcEffDiam(), TCliqueOverlap::CalculateOverlapMtx(), TAGMUtil::ConnectCmtyVV(), TMAGFitBern::DoEStep(), TSubGraphsEnum::EnumSubGraphs(), TCesna::FindComs(), TAGMUtil::FindComsByAGM(), TAGMFast::FindComsByCV(), TCoda::FindComsByCV(), TSccVisitor< PGraph, OnlyCount >::FinishNode(), TBlobBs::GenBlockLenV(), TSnap::GenGeoPrefAttach(), TVec< TFlt, TSizeTy >::GetAddDat(), TSnap::GetBfsEffDiam(), TLogRegPredict::GetCfy(), TCliqueOverlap::GetCPMCommunities(), TSnap::GetEigVec(), TEnv::GetIfArgPrefixStrV(), TComb::GetNext(), GetNodeAlias(), TGraphAnf< PGraph >::GetNodeAnf(), TCliqueOverlap::GetOverlapCliques(), TSnap::GetSngVec(), TILx::GetVarStrVV(), TUStr::GetWordUStrV(), TUniChDb::InitSpecialCasing(), InitUnigramTable(), TSimpleGraph::Join(), TNIBs::LabelBurstAutomaton(), TGStatVec::Last(), TGnuPlot::MakeExpBins(), TLocClustStat::MakeExpBins(), TKroneckerLL::MetroGibbsSampleNext(), TSsParserMP::Next(), TSsParser::Next(), TSsParserMP::NextFromIndex(), TSsParser::NextSlow(), TSnap::PlotEigValDistr(), TSnap::PlotInvParticipRat(), TSnap::PlotSccDistr(), TSnap::PlotShortPathDistr(), TSnap::PlotSngValDistr(), TSnap::PlotWccDistr(), TCesna::PredictAttrK(), TAGMFit::RemoveEmptyCom(), TAGMUtil::RewireCmtyNID(), THist::SaveStat(), TSparseSVD::SimpleLanczos(), SimulateWalk(), TStrUtil::SplitOnCh(), TStrUtil::SplitWords(), TSnap::TestAnf(), TFFile::TFFile(), TNcpGraphsBase::TNcpGraphsBase(), and TSStack< TInt >::Top().
|
inline |
Returns a reference to the last element of the vector.
|
inline |
Returns a reference to the one before last element of the vector.
Definition at line 585 of file ds.h.
Referenced by TGraphAnf< PGraph >::GetGraphAnf(), and SimulateWalk().
|
inline |
Returns a reference to the one before last element of the vector.
Definition at line 587 of file ds.h.
|
inline |
|
inline |
Returns the number of elements in the vector.
This is the number of actual objects held in the vector, which is not necessarily equal to its storage capacity.
Definition at line 575 of file ds.h.
Referenced by TSnap::TSnapDetail::_GirvanNewmanGetModularity(), THist::Add(), TNEANet::AddAttributes(), TAGMFit::AddBaseCmty(), TNetInfBs::AddCasc(), TNIBs::AddCasc(), TLocClustStat::AddCut(), TCrossNet::AddEdge(), TNEANetMP::AddEdge(), TNEANet::AddEdge(), TTable::AddEdgeAttributes(), TGnuPlot::AddErrBar(), TJsonVal::AddEscapeChAFromStr(), TGnuPlot::AddExpFit(), TTable::AddGraphAttributeV(), TTable::AddIdColumn(), TCrossNet::AddIntAttrDatE(), TNEANetMP::AddIntAttrDatE(), TNEANet::AddIntAttrDatE(), TNEANetMP::AddIntAttrDatN(), TNEANet::AddIntAttrDatN(), TCrossNet::AddIntAttrE(), TNEANetMP::AddIntAttrE(), TNEANet::AddIntAttrE(), TNEANetMP::AddIntAttrN(), TNEANet::AddIntAttrN(), TTable::AddIntCol(), TModeNet::AddIntVAttrByHashN(), TModeNet::AddIntVAttrByVecN(), TNEANet::AddIntVAttrE(), TNEANet::AddIntVAttrN(), TTable::AddJointRow(), THashSet< TKey, THashFunc >::AddKeyV(), TGnuPlot::AddLinFit(), TGnuPlot::AddLogFit(), TTable::AddNJointRowsMP(), TUNGraph::AddNode(), TNEANetMP::AddNode(), TUndirNet::AddNode(), TTable::AddNodeAttributes(), TTable::AddNRows(), TGnuPlot::AddPlot(), TGnuPlot::AddPwrFit1(), TGnuPlot::AddPwrFit2(), TGnuPlot::AddPwrFit3(), TTable::AddRow(), TTable::AddSelectedRows(), TSnap::AddSelfEdges(), TempMotifCounter::AddStarEdgeData(), TempMotifCounter::AddStarEdges(), TBigStrPool::AddStr(), TTable::AddStrCol(), TTable::AddTable(), TLocClustStat::AddToBestCutH(), TempMotifCounter::AddTriadEdgeData(), TPackVec< TVal >::AddV(), TVecPool< TVal, TSizeTy >::AddV(), TGLib_OLD::TVecPool< TVal >::AddV(), TLinAlg::AddVec(), ChibaNishizekiWeighter::AdjustLabels(), TTable::Aggregate(), TTable::AggregateCols(), TTable::AggregateVector(), AppendFeatures(), TUniCaseFolding::AppendVector(), anonymous_namespace{unicode.cpp}::AssertEq(), TLinAlg::AssertOrtogonality(), ProcessedGraph::assignWeights_dir(), ProcessedGraph::assignWeights_undir(), TStatTest::AveVar(), TGStat::AvgGStat(), TLocClustStat::BagOfWhiskers(), TLocClustStat::BagOfWhiskers2(), MotifCluster::BifanMotifAdjacency(), TNIBs::BSG(), TTable::BuildGraph(), TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TUndirFFire::BurnGeoFire(), TSnap::TSnapDetail::CalcAvgDiamPdf(), TKroneckerLL::CalcChainR2(), TSnap::TSnapDetail::CalcEffDiam(), TLogRegFit::CalcLogRegGradient(), TLogRegFit::CalcLogRegNewton(), TAGMFit::CalcPNoComByCmtyVV(), TCliqueOverlap::CalculateOverlapMtx(), TSnap::CascFind(), TSnap::CascFindMP(), TSnap::CascGraphSource(), TSnap::CascGraphTime(), TKroneckerLL::ChainGelmapRubinPlot(), TTable::ChangeContext(), TSnap::TSnapDetail::chekIfCrossing(), TStatTest::ChiSquareOne(), TStatTest::ChiSquareTwo(), TTable::ClassifyAux(), ChibaNishizekiWeighter::CliqueEnum(), TModeNet::Clr(), TSnap::CmtyEvolutionFileBatch(), TSnap::CmtyEvolutionFileBatchV(), TTable::ColGenericOpMP(), TSnap::CommunityGirvanNewman(), TTable::CompareRows(), TUniChDb::Compose(), TMAGFitBern::ComputeJointAdjLL(), TMAGFitBern::ComputeJointOneLL(), TAGMUtil::ConnectCmtyVV(), TSnap::ConvertESubGraph(), ThreeTEdgeMotifCounter::Count(), StarTriad3TEdgeCounter< EdgeData >::Count(), TempMotifCounter::Count3TEdge2Node(), TempMotifCounter::Count3TEdge3NodeStars(), TempMotifCounter::Count3TEdge3NodeStarsNaive(), TempMotifCounter::Count3TEdgeTriads(), TempMotifCounter::Count3TEdgeTriadsNaive(), TStrUtil::CountWords(), TGnuPlot::CreatePlotFile(), TUnicode::DecodeUtf16FromBytes(), TUnicode::DecodeUtf16FromWords(), TUniChDb::Decompose(), TUniChDb::DecomposeAndCompose(), TMom::Def(), TTable::Defrag(), TMom::DefV(), MotifCluster::DegreeOrdering(), TSnap::DelDegKNodes(), TCrossNet::DelEdge(), TNEANet::DelEdge(), THash< TPair, THash >::DelKeyIdV(), THashSet< TInt >::DelKeyIdV(), TVec< TFlt, TSizeTy >::DelLast(), TMMNet::DelModeNet(), TModeNet::DelNode(), TNEANet::DelNode(), TSnap::DelNodes(), TFile::DelWc(), TSnap::DelZeroDegNodes(), TTable::DenormalizeColName(), TTable::DenormalizeSchema(), TVec< TVal, TSizeTy >::Diff(), TSnap::TSnapDetail::TGetSubGraph< PGraph, IsMultiGraph >::Do(), TSnap::TSnapDetail::TGetSubGraph< PGraph, false >::Do(), TSnap::TSnapDetail::TConvertSubGraph< POutGraph, PInGraph, IsMultiGraph >::Do(), TSnap::TSnapDetail::TConvertSubGraph< POutGraph, PInGraph, false >::Do(), TSnap::TSnapDetail::TDelSelfEdges< PGraph, IsMultiGraph >::Do(), TSnap::TSnapDetail::TDelSelfEdges< PGraph, true >::Do(), TBreathFS< PGraph >::DoBfsHybrid(), TLinAlg::DotProduct(), TCodaAnalyzer::Draw2ModeCommunity(), TGHash< TDat >::DrawGViz(), TLocClust::DrawWhiskers(), TMAGAffMtx::Dump(), TKronMtx::Dump(), TCnCom::Dump(), TSimpleGraph::Dump(), TNEANetMP::Dump(), TTable::Dump(), TNEANet::Dump(), TCodaAnalyzer::Dump2ModeCommunities(), TAGMUtil::DumpCmtyVV(), TCoda::DumpMemberships(), TCesnaUtil::DumpNIDAttrHToMetis(), TSsParserMP::DumpStr(), TSsParser::DumpStr(), TSnap::TSnapDetail::edgeIntersect(), TSStack< TInt >::Empty(), TUnicode::EncodeUtf16ToBytes(), TUnicode::EncodeUtf16ToWords(), TSpecFunc::Entropy(), TSpecFunc::EntropyFracDim(), TSubGraphsEnum::EnumSubGraphs(), TLinAlg::EuclDist2(), TSigmoid::EvaluateFit(), TCliqueOverlap::Expand(), TSpecFunc::ExpFit(), TUniChDb::ExtractStarters(), TNIBs::FG(), TTable::FillBucketsByInterval(), TTable::FillBucketsByWindow(), TLAMisc::FillRnd(), TNIBs::find_C(), TLocClust::FindBestCut(), TCesna::FindComs(), TAGMUtil::FindComsByAGM(), TAGMFast::FindComsByCV(), TCoda::FindComsByCV(), MAPPR::findFirstlocalMin(), MAPPR::findGlobalMin(), TSnap::findMinimum(), TUnicode::FindNextSentenceBoundary(), TUnicode::FindNextWordBoundary(), TUniChDb::FindSentenceBoundaries(), TUnicode::FindSentenceBoundaries(), TUniChDb::FindWordBoundaries(), TUnicode::FindWordBoundaries(), ChibaNishizekiWeighter::FlushCliques(), TMBlobBs::FNextBlobPt(), TCodecBase::FromUnicode(), TSubGraphsEnum::Gen2Graphs(), TAGM::GenAGM(), TAGMUtil::GenCmtyVVFromPL(), TSnap::GenConfModel(), TSnap::GenDegSeq(), TFfGGen::GenFFGraphs(), TBlobBs::GenFFreeBlobPtV(), TSnap::GenGeoPrefAttach(), TAGMUtil::GenPLSeq(), TSnap::GenPrefAttach(), TSnap::Get1CnCom(), TSnap::Get1CnComSzCnt(), TTimeNENet::Get1stEdgeNet(), TNetInfBs::GetAllCascProb(), TUnicode::GetAllCodecs(), TBlobBs::GetAllocInfo(), TempMotifCounter::GetAllStaticTriangles(), TEnv::GetArgs(), THtmlLx::GetArgs(), TXmlLx::GetArgs(), TMAGAffMtx::GetAvgAbsErr(), TKronMtx::GetAvgAbsErr(), TMAGAffMtx::GetAvgFroErr(), TKronMtx::GetAvgFroErr(), TNetInfBs::GetBestEdge(), TSnap::GetBetweennessCentr(), TSnap::GetBfsEffDiam(), TSnap::GetBiConSzCnt(), TBlobBs::GetBlockLenV(), TLocClustStat::GetBoltzmanCurveStat(), TNetInfBs::GetBound(), THist::GetBuckets(), TForestFire::GetBurned(), TNetInfBs::GetCascs(), TGUtil::GetCCdf(), TGUtil::GetCdf(), TLogRegPredict::GetCfy(), TSnap::GetClustCf(), TSnap::GetCmnNbrs(), TCoda::GetCmtyS(), TCodaAnalyzer::GetCmtyVAll(), TAGMFast::GetCmtyVV(), TCoda::GetCmtyVV(), TAGMFit::GetCmtyVV(), TCesna::GetCmtyVV(), TCoda::GetCmtyVVUnSorted(), TCesna::GetCmtyVVUnSorted(), TTable::GetCollidingRows(), TSnap::GetCommon(), TCoda::GetCommunity(), THttpResp::GetCookieKeyValDmPathQuV(), TKCore< PGraph >::GetCoreNodes(), TLocClustStat::GetCurveStat(), TLocClust::GetCutStat(), TUNGraph::TNode::GetDeg(), TBPGraph::TNode::GetDeg(), TBigNet< TNodeData, IsDir >::GetDelEdges(), TUrl::GetDocStrFromUrlStr(), TTable::GetDstNodeFltAttrV(), TTable::GetDstNodeIntAttrV(), TTable::GetDstNodeStrAttrV(), TSnap::GetEDatSubGraph(), TSnap::GetEdgeBridges(), TTimeNENet::GetEdgeBuckets(), TTable::GetEdgeFltAttrV(), TTable::GetEdgeIntAttrV(), TGraphKey::GetEdges(), TSimpleGraph::GetEdges(), TSnap::GetEdgesInOut(), TTable::GetEdgeStrAttrV(), TTable::GetEdgeTable(), TTable::GetEdgeTablePN(), TTimeNENet::GetEdgeTmBuckets(), TNodeEDatNet< TNodeData, TEdgeData >::GetEI(), TTimeNENet::GetEIdByTm(), TSnap::GetEigenVectorCentr(), TSnap::GetEigVals(), TSnap::GetEigVec(), TTable::GetEmptyRowsStart(), TSnap::GetESubGraph(), TTimeNENet::GetESubGraph(), TBlobBs::GetFFreeBlobPtV(), TForestFire::GetFireTm(), THttpResp::GetFldVal(), TZipIn::GetFLen(), TLocClustStat::TCutInfo::GetFracDegOut(), THtmlTok::GetFullStr(), TUrlEnv::GetFullUrlStr(), TGraphAnf< PGraph >::GetGraphAnf(), TTable::GetGraphsFromSequence(), TEnv::GetIfArgPrefixIntV(), TEnv::GetIfArgPrefixStrV(), TNodeNet< TNodeData >::TNode::GetInDeg(), TNGraphMP::TNode::GetInDeg(), TNEANetMP::TNode::GetInDeg(), TNGraph::TNode::GetInDeg(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInDeg(), TNEGraph::TNode::GetInDeg(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetInDeg(), TGraphEnumUtils::GetIndGraph(), TKronMtx::GetInitMtx(), TSnap::GetInvParticipRat(), TSnap::TSnapDetail::GetInvParticipRatEig(), TGraphEnumUtils::GetIsoGraphs(), TSnap::GetLen2Paths(), TSnap::GetMapHitsIterator(), TSnap::GetMapPageRank(), TSnap::GetMaxFlowIntEK(), THash< TPair, THash >::GetMemUsed(), GroupStmt::GetMemUsed(), TStrHash< TInt, TBigStrPool >::GetMemUsed(), TTable::GetMemUsedKB(), TGraphEnumUtils::GetMinAndGraphIds(), GetMinMax(), TSnap::GetModularity(), TMAGAffMtx::GetMtx(), TKronMtx::GetMtx(), TSnap::GetMxBiCon(), TSnap::GetMxDegNId(), TSnap::GetMxInDegNId(), THash< TPair, THash >::GetMxKeyIds(), TStrHash< TInt, TBigStrPool >::GetMxKeyIds(), TSnap::GetMxOutDegNId(), TSnap::GetMxScc(), TSnap::GetMxSccSz(), TSnap::GetMxWcc(), TSnap::GetMxWccSz(), TLogRegFit::GetNewtonStep(), TComb::GetNext(), TTable::GetNextGraphFromSequence(), TUniChDb::TUcdFileReader::GetNextLine(), TTimeNet::GetNIdByTm(), TTimeNENet::GetNIdByTm(), TCoda::GetNIDValH(), GetNodeAlias(), TGraphAnf< PGraph >::GetNodeAnf(), TTimeNet::GetNodeBuckets(), TTimeNENet::GetNodeBuckets(), TSnap::GetNodeClustCf(), TGHash< TDat >::GetNodeMap(), TAGMUtil::GetNodeMembership(), TSnap::GetNodesAtHop(), TSnap::GetNodesAtHops(), TTable::GetNodeTable(), TCoda::GetNonEdgePairScores(), TNodeNet< TNodeData >::TNode::GetOutDeg(), TNGraphMP::TNode::GetOutDeg(), TNEANetMP::TNode::GetOutDeg(), TNGraph::TNode::GetOutDeg(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutDeg(), TNEGraph::TNode::GetOutDeg(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetOutDeg(), TCliqueOverlap::GetOverlapCliques(), TSnap::GetPageRank(), TSnap::GetPageRank_v1(), TSnap::GetPageRankMP(), TTable::GetPartitionRanges(), TGUtil::GetPdf(), TGraphEnumUtils::GetPermutations(), TSnap::GetPersonalizedPageRankBidirectional(), THash< TPair, THash >::GetPorts(), TStrHash< TInt, TBigStrPool >::GetPorts(), THashSet< TInt >::GetPorts(), TSpecFunc::GetPowerCoef(), TTimeNENet::GetPrefAttach(), TVecHashF_OldGLib< TVec >::GetPrimHashCd(), TMaxPriorityQueue< TVal >::GetPriorities(), TAGMFit::GetQV(), TBreathFS< PGraph >::GetRndPath(), TSnap::GetRndSubGraph(), TVec< TFlt, TSizeTy >::GetRndVal(), TLocClust::GetRndWalkSup(), TVecHashF_OldGLib< TVec >::GetSecHashCd(), TSnap::GetShortestDistances(), TSnap::GetShortestDistancesMP2(), TGraphKey::GetSigLen(), TSnap::GetSngVals(), TSnap::GetSngVec(), TStr::GetSpaceStr(), TSnap::TSnapDetail::GetSphereDev(), TTable::GetSrcNodeFltAttrV(), TTable::GetSrcNodeIntAttrV(), TTable::GetSrcNodeStrAttrV(), TLogRegFit::GetStepSizeByLineSearch(), TAGMFit::GetStepSizeByLineSearchForLambda(), TCesna::GetStepSizeByLineSearchForWK(), TWChA::GetStr(), TStr::GetStr(), TSnap::GetSubGraph(), TTimeNet::GetSubGraph(), TTimeNENet::GetSubGraph(), TBigNet< TNodeData, IsDir >::GetSubGraph(), TMMNet::GetSubgraphByCrossNet(), TMMNet::GetSubgraphByModeNet(), TBigNet< TNodeData, IsDir >::GetSubNGraph(), TXmlTok::GetTagTok(), TXmlTok::GetTagVal(), TXmlDoc::GetTagVal(), TTimeNet::GetTimeNENet(), TTimeNet::GetTmBuckets(), TTimeNENet::GetTmBuckets(), TXmlTok::GetTokVStr(), TCoda::GetTopCIDs(), TUrl::GetTopDownDocNm(), TSnap::GetTreeSig(), TTimeNENet::GetTriadEdges(), TSnap::GetTriads(), TSnap::GetTriangleCnt(), TVecPool< TInt >::GetVecs(), TGLib_OLD::TVecPool< TVal >::GetVecs(), TStr::GetWcMatch(), TSnap::GetWeightedBetweennessCentr(), TSnap::GetWeightedPageRank(), TSnap::GetWeightedPageRankMP(), TNEANetMP::GetWeightOutEdges(), TNEANet::GetWeightOutEdges(), TUStr::GetWordUStrV(), TNcpGraphsBase::GetXAtMinY(), TNcpGraphsBase::GetXYAtMinY(), TCoda::GradientForNode(), TAGMFast::GradientForRow(), TCesna::GradientForRow(), TCesna::GradientForWK(), TAGMFit::GradLogLForLambda(), TGraphEnumUtils::GraphId(), TNetInfBs::GreedyOpt(), TTable::GroupAux(), TTable::GroupByFltCol(), TTable::GroupByIntCol(), TTable::GroupByIntColMP(), TTable::GroupByStrCol(), TLinAlg::GS(), TAGMUtil::GVizComGraph(), TLogRegFit::Hessian(), TUrlLxChDef::InclBoolV(), GroupStmt::IncludesAttr(), TTable::IncrementNext(), TSnap::Infomap(), TNetInfBs::Init(), TNIBs::Init(), TTmInfo::InitDayOfWeekNmV(), TUniChDb::InitDerivedCoreProperties(), TTable::InitializeJointTable(), TUniChDb::InitLineBreaks(), TKroneckerLL::InitLL(), TTmInfo::InitMonthNmV(), InitNegEmb(), InitPosEmb(), TUniChDb::InitPropList(), TTable::InitRowIdBuckets(), TUniChDb::InitSpecialCasing(), InitUnigramTable(), TUniChDb::InitWordAndSentenceBoundaryFlags(), TMaxPriorityQueue< TVal >::Insert(), TTable::Intersection(), TVec< TVal, TSizeTy >::Intrs(), TVec< TVal, TSizeTy >::IntrsLen(), TNEANet::IntVAttrValueEI(), TNEANet::IntVAttrValueNI(), TLinAlg::InverseSVD(), TSnap::IsAllValVNeg(), TUInt::IsIpStr(), TUInt::IsIpv6Str(), TGraphKey::IsIsomorph(), THash< TPair, THash >::IsKeyId(), TStrHash< TInt, TBigStrPool >::IsKeyId(), TTable::IsLastGraphOfSequence(), MAPPR::isLocalMin(), TBigNet< TNodeData, IsDir >::IsOk(), TBigNet< TNodeData, IsDir >::IsolateNode(), IsSimilarFeature(), TPreproc::IsSubstId(), TMom::IsUsableV(), TVecPool< TInt >::IsVId(), TGLib_OLD::TVecPool< TVal >::IsVId(), TStr::IsWcMatch(), TTable::Join(), TTable::KeepSortedRows(), KNNJaccard(), KNNJaccardParallel(), TStatTest::KsTest(), TNIBs::LabelBurstAutomaton(), TSparseSVD::LanczosSVD(), TVec< TFlt, TSizeTy >::Last(), TVec< TFlt, TSizeTy >::LastValN(), LearnVocab(), TMAGAffMtx::Len(), TKronMtx::Len(), TUStr::Len(), TWChA::Len(), TCnCom::Len(), TLocClustStat::TNodeSweep::Len(), TGStatVec::Len(), THash< TPair, THash >::Len(), THeap< TTriple >::Len(), TStrHash< TInt, TBigStrPool >::Len(), PVec< TVal >::Len(), TSStack< TInt >::Len(), TAGMFit::Likelihood(), TLogRegFit::Likelihood(), TCoda::LikelihoodForNode(), TAGMFast::LikelihoodForRow(), TCesna::LikelihoodForRow(), TCesna::LikelihoodForWK(), TLinAlg::LinComb(), TSpecFunc::LinearFit(), TTimeNet::LoadArxiv(), TAGMUtil::LoadCmtyVV(), TSnap::LoadCrossNet(), TNetInfBs::LoadGroundTruthTxt(), TNIBs::LoadGroundTruthTxt(), TNIBs::LoadInferredTxt(), TLAMisc::LoadMatlabTFltVV(), TSnap::LoadMode(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), TTimeNet::LoadPatents(), TTable::LoadSS(), TTable::LoadSSPar(), TTable::LoadSSSeq(), TGnuPlot::LoadTs(), TMAGNodeBern::LoadTxt(), TUniChDb::LoadTxt(), TUniChDb::LoadTxt_ProcessDecomposition(), THash< TKey, TDat, THashFunc >::LoadXml(), THashSet< TInt >::LoadXml(), TSpecFunc::LogFit(), LogSumExp(), TMAGFitBern::MakeCCDF(), TGUtil::MakeExpBins(), TGnuPlot::MakeExpBins(), TLocClustStat::MakeExpBins(), TSnap::MakeUnDir(), TSnap::TSnapDetail::MapEquationNew2Modules(), TSnap::MapHits(), MapIdsToFirstN(), TSnap::MapPageRank(), TMaxPriorityQueue< TVal >::MaxHeapify(), TCluster::MCMC(), McMcGetAvgAvg(), McMcGetAvgJ(), TVec< TVal, TSizeTy >::Merge(), MergeNbrs(), TKroneckerLL::MetroGibbsSampleNext(), TTable::Minus(), TCesna::MLEGradAscent(), TAGMFit::MLEGradAscentGivenCAG(), TAGMFast::MLEGradAscentParallel(), TCoda::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), TLogRegFit::MLEGradient(), TLogRegFit::MLENewton(), TLinAlg::Multiply(), TLinAlg::MultiplyScalar(), TLinAlg::MultiplyT(), TAGMFast::NeighborComInit(), TCoda::NeighborComInit(), TAGMFit::NeighborComInit(), TCesna::NeighborComInit(), TCodaAnalyzer::Net2ModeCommunities(), TJsonVal::NewArr(), TMAGFitBern::NextPermutation(), MotifCluster::NFiedlerVector(), node2vec(), TLinAlg::Norm2(), TGUtil::Normalize(), TMAGFitBern::NormalizeAffMtxV(), TTable::NormalizeColNameV(), TLinAlg::NormL1(), TLinAlg::NormLinf(), TDGraphCounter::operator()(), TSNodeTest::operator()(), TVec< TVal, TSizeTy >::operator<(), TPackVec< TVal >::operator=(), GroupStmt::operator==(), TVec< TVal, TSizeTy >::operator==(), TSStack< TInt >::operator[](), TTable::Order(), TUniChDb::TUcdFileReader::ParseCodePointList(), PlotAutoCorrelation(), TNcpGraphsBase::PlotAvgNcp(), TNcpGraphsBase::PlotBestWhisker(), TLocClustStat::PlotBoltzmanCurve(), TTimeNet::PlotCCfOverTm(), TKronMtx::PlotCmpGraphs(), TLocClust::PlotCutDistr(), TTimeNet::PlotEffDiam(), TTimeNENet::PlotEffDiam(), TSnap::PlotEigValDistr(), TForestFire::PlotFire(), PlotGrad(), TSnap::PlotInDegDistr(), TSnap::PlotInvParticipRat(), TTimeNet::PlotMedianDegOverTm(), TTimeNet::PlotMissingPast(), TLocClustStat::PlotNCPScatter(), TLocClustStat::PlotNcpTop10(), TSnap::PlotOutDegDistr(), TLocClust::PlotPhiDistr(), TNcpGraphsBase::PlotRewBestWhisker(), TSnap::PlotSngValDistr(), TGnuPlot::PlotValCntH(), TGnuPlot::PlotValOverTm(), TGnuPlot::PlotValV(), TLocClust::PlotVolDistr(), TNGraphMtx::PMultiply(), TUNGraphMtx::PMultiply(), TSparseColMatrix::PMultiply(), TSparseRowMatrix::PMultiply(), TFullColMatrix::PMultiply(), TNGraphMtx::PMultiplyT(), TUNGraphMtx::PMultiplyT(), TSparseColMatrix::PMultiplyT(), TSparseRowMatrix::PMultiplyT(), TFullColMatrix::PMultiplyT(), TSStack< TInt >::Pop(), TMaxPriorityQueue< TVal >::PopMax(), TSpecFunc::PowerFit(), PreprocessTransitionProbs(), GroupStmt::Print(), ProcessedGraph::printCounts(), PrintFeatures(), TTable::PrintGrouping(), MAPPR::printProfile(), TTable::PrintSize(), TAGMFit::PrintSummary(), TLAMisc::PrintTFltV(), TLogRegPredict::PrintTheta(), TLAMisc::PrintTIntV(), TSparseSVD::Project(), TTable::Project(), TTable::ProjectInPlace(), TSnapQueue< int >::Push(), TMBlobBs::PutBlob(), TBlobBs::PutBlockLenV(), TBlobBs::PutFFreeBlobPtV(), TVecPool< TInt >::PutV(), TGLib_OLD::TVecPool< TVal >::PutV(), TOLx::PutVarBoolV(), TOLx::PutVarFltV(), TOLx::PutVarIntV(), TOLx::PutVarStrPrV(), TOLx::PutVarStrV(), TOLx::PutVarStrVV(), TTable::QSortPar(), TAGMFast::RandomInit(), TCoda::RandomInit(), TCesna::RandomInit(), TSubGraphsEnum::RecurBfs(), TSubGraphsEnum::RecurBfs1(), TSnap::ReebRefine(), TSnap::ReebSimplify(), TUnicode::RegisterCodec(), TKronNoise::RemoveNodeNoise(), TTable::Rename(), TTable::RenumberColName(), TTable::ResizeTable(), TKroneckerLL::RestoreGraph(), TVec< TFlt, TSizeTy >::Reverse(), TAGMUtil::RewireCmtyNID(), TAGMUtil::RewireCmtyVV(), TAGM::RndConnectInsideCommunity(), RndUnigramInt(), TKronMaxLL::RoundTheta(), ChibaNishizekiWeighter::Run(), TKroneckerLL::RunMStep(), TKroneckerLL::SampleNextPerm(), TBigStrPool::Save(), TAGMUtil::SaveBipartiteGephi(), TNetInfBs::SaveCascades(), TLAMisc::SaveCsvTFltV(), TGHash< TDat >::SaveDetailTxt(), TTimeNENet::SaveEdgeTm(), TInt::SaveFrugalIntV(), TAGMUtil::SaveGephi(), TGraphKey::SaveGViz(), THtmlDoc::SaveHtmlToXml(), TNIBs::SaveInferred(), TNIBs::SaveInferredPajek(), TMBlobBs::SaveMain(), TLAMisc::SaveMatlabTFltIntKdV(), TLAMisc::SaveMatlabTFltV(), TLAMisc::SaveMatlabTIntV(), TNetInfBs::SaveObjInfo(), TTable::SaveSS(), THist::SaveStat(), TGnuPlot::SaveTs(), TGraphKey::SaveTxt(), TWChA::SaveTxt(), TCnCom::SaveTxt(), TGStatVec::SaveTxt(), TNcpGraphsBase::SaveTxt(), TGHash< TDat >::SaveTxt(), THtmlDoc::SaveTxt(), TLocClustStat::SaveTxtInfo(), TNcpGraphsBase::SaveTxtNcpMin(), TUniChDb::SbEx_AddMulti(), TVec< TVal, TSizeTy >::SearchVForw(), TTable::Select(), TTable::SelectAtomicConst(), TTable::SelfSimJoinPerGroup(), MotifCluster::SemicliqueMotifAdjacency(), TSnap::SetAllInvertSign(), TMAGNodeBeta::SetBetaV(), TAGMFast::SetCmtyVV(), TCoda::SetCmtyVV(), TAGMFit::SetCmtyVV(), TCesna::SetCmtyVV(), TKroneckerLL::SetDegPerm(), TTable::SetFirstValidRow(), TTable::SetFltColToConstMP(), TCesna::SetGraph(), TBigNet< TNodeData, IsDir >::SetInNIdV(), TKroneckerLL::SetIPerm(), TMAGParam< TMAGNodeBern >::SetMtxV(), TBigNet< TNodeData, IsDir >::SetOutNIdV(), TKroneckerLL::SetRandomEdges(), TTimeNENet::SetRndEdgeTimes(), TMAGAffMtx::SetRndMtx(), TKronMtx::SetRndMtx(), TNIBs::SG(), TQQueue< TInt >::Shuffle(), TTable::SimJoin(), TSparseSVD::SimpleLanczos(), TSparseSVD::SimpleLanczosSVD(), SimulateWalk(), TMaxPriorityQueue< TVal >::Size(), TMAGFitBern::SortAttrOrdering(), TSparseOps< TKey, TDat >::SparseMerge(), MotifCluster::SpectralCut(), TTable::SpliceByGroup(), TStrUtil::SplitLines(), TStrUtil::SplitOnCh(), TStrUtil::SplitSentences(), TStrUtil::SplitWords(), TTable::StoreFltCol(), TTable::StoreGroupCol(), TTable::StoreIntCol(), TTable::StoreStrCol(), ChibaNishizekiWeighter::SubgraphDegreeOrder(), SummarizeConnectedComponents(), TLinAlg::SumVec(), TLAMisc::SumVec(), Sweep(), TGStat::TakeConnComp(), TGStat::TakeDiam(), TGraphKey::TakeSig(), TGStat::TakeSpectral(), TGStat::TakeTriadPart(), TCorr::TCorr(), TD34GraphCounter::TD34GraphCounter(), TUniCaseFolding::Test(), TSnap::TestAnf(), TUniChDb::TestCaseConversion(), TUniChDb::TestComposition(), TUniCodec::TestDecodeUtf16(), TUniCodec::TestDecodeUtf8(), TUniChDb::TestFindNextWordOrSentenceBoundary(), TKroneckerLL::TestSamplePerm(), TUniCodec::TestUtf16(), TUniCodec::TestUtf8(), TUniChDb::TestWbFindNonIgnored(), TFFile::TFFile(), TSnap::TFltVToNumpy(), TGraphAttributes::TGraphAttributes(), TGraphKey::TGraphKey(), THashSet< TKey, THashFunc >::THashSet(), TTable::ThresholdJoinCountCollisions(), TTable::ThresholdJoinCountPerJoinKeyCollisions(), THtmlHldV::THtmlHldV(), TTimeNet::TimeGrowth(), TTimeNENet::TimeGrowth(), TSnap::TIntVToNumpy(), TKronMtx::TKronMtx(), TMAGAffMtx::TMAGAffMtx(), TMAGNodeBeta::TMAGNodeBeta(), TMom::TMom(), TNcpGraphsBase::TNcpGraphsBase(), TLocClustStat::TNodeSweep::TNodeSweep(), TSnap::ToGraphMP(), TSsParserMP::ToLc(), TSsParser::ToLc(), TUrl::ToLcPath(), TSnap::ToNetwork(), TMMNet::ToNetwork(), TMMNet::ToNetwork2(), TMMNet::ToNetworkMP(), TSnap::ToNetworkMP(), TSnap::ToNetworkMP2(), TSStack< TInt >::Top(), TLAMisc::ToSpVec(), TAGMUtil::TotalMemberships(), TCodecBase::ToUnicode(), T8BitCodec< TEncoding_ISO8859_3 >::ToUnicode(), TLAMisc::ToVec(), TPreproc::TPreproc(), TCluster::Train(), TSnap::TSnapDetail::transitiveTransform(), MotifCluster::TriangleMotifAdjacency(), TSigmoid::TSigmoid(), TSparseRowMatrix::TSparseRowMatrix(), TTable::TTable(), TStatTest::TTest(), TVec< TVal, TSizeTy >::Union(), TTable::Union(), TTable::UnionAll(), TVec< TVal, TSizeTy >::UnionLen(), TTable::Unique(), T8BitCodec< TEncoding_ISO8859_3 >::UniToStr(), TMAGFitBern::UnNormalizeAffMtxV(), TUnicode::UnregisterCodec(), UnweightedGraphRepresentation(), TMAGFitBern::UpdateApxPhiMI(), TTable::UpdateFltFromTable(), TTable::UpdateFltFromTableMP(), ChibaNishizekiWeighter::UpdateWeights(), TSnap::TSnapDetail::vectorIntersect(), MotifCluster::WedgeMotifAdjacency(), TUniCodec::WordsToBytes(), TSnap::WriteEdgeSchemaToFile(), TSnap::WriteEdgesToFile(), TSnap::WriteNodeSchemaToFile(), and TSnap::WriteNodesToFile().
Definition at line 946 of file ds.h.
References TSIn::Load().
Referenced by TAGMFit::Load(), TAGMFast::Load(), TCoda::Load(), THash< TPair, THash >::Load(), TCesna::Load(), TStrHash< TInt, TBigStrPool >::Load(), THashSet< TInt >::Load(), TUniChDb::Load(), THash< TPair, THash >::LoadShM(), TStrHash< TInt, TBigStrPool >::LoadShM(), TLogRegPredict::TLogRegPredict(), and TVec< TFlt, TSizeTy >::TVec().
Constructs the vector from a shared memory input.
The buffer is mapped straight to memory, so this method should not be used if initialization of the elements is needed. Disallowed operations for shared memory vectors include editing values in the vector directly, copying into the vector, and truncating the vector
Definition at line 932 of file ds.h.
References TShMIn::AdvanceCursor(), and TSIn::Load().
Referenced by TUNGraph::TNode::LoadShM(), TNodeNet< TNodeData >::TNode::LoadShM(), THash< TPair, THash >::LoadShM(), TCrossNet::LoadShM(), TNGraph::TNode::LoadShM(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::LoadShM(), TStrHash< TInt, TBigStrPool >::LoadShM(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::LoadShM(), TTable::LoadTableShM(), TCrossNet::TLoadVecInit::operator()(), TTable::TLoadVecInit::operator()(), and TNEANet::LoadVecFunctor::operator()().
|
inline |
Constructs vector from shared memory input passing in functor to initialize elements.
Definition at line 472 of file ds.h.
void TVec< TVal, TSizeTy >::LoadXml | ( | const PXmlTok & | XmlTok, |
const TStr & | Nm = "" |
||
) |
Definition at line 103 of file xmlser.h.
References TXmlTok::GetSubTok(), TXmlTok::GetSubToks(), TPt< TRec >::LoadXml(), and XLoadHd.
void TVec< TVal, TSizeTy >::Merge | ( | ) |
Sorts the vector and only keeps a single element of each value.
Definition at line 1356 of file ds.h.
References AssertR, IAssertR, TVec< TVal, TSizeTy >::Len(), and TVec< TVal, TSizeTy >::Sort().
Referenced by TUniChDb::InitWordAndSentenceBoundaryFlags().
void TVec< TVal, TSizeTy >::MoveFrom | ( | TVec< TVal, TSizeTy > & | Vec | ) |
Takes over the data and the capacity from Vec
.
No memory gets copied and Vec
gets destroyed.
Definition at line 1073 of file ds.h.
References TVec< TVal, TSizeTy >::MxVals, TVec< TVal, TSizeTy >::Vals, and TVec< TVal, TSizeTy >::ValT.
Referenced by TSpecFunc::EntropyFracDim(), and TSubGraphsEnum::Gen2Graphs().
|
inline |
Reserves space after the current last element in a thread safe manner, returning the old vector size.
The method assumes that the space has been preallocated. It does not perform any checks and it does not resize the vector space. The method is thread-safe.
Definition at line 622 of file ds.h.
bool TVec< TVal, TSizeTy >::NextPerm | ( | ) |
Generates next permutation of the elements in the vector.
Assuming we started with a sorted vector repeated calls to NextPerm()
will generate all permutations of the elements of the vector. Returns false
when the last permutation is reached.
Definition at line 1368 of file ds.h.
References Swap().
Referenced by TGHash< TDat >::InitPermutations().
bool TVec< TVal, TSizeTy >::operator< | ( | const TVec< TVal, TSizeTy > & | Vec | ) | const |
Lexicographically compares two vectors.
For example, (a,b) < (a',b')
if and only if a < a'
or (a = a' and b < b')
.
Definition at line 981 of file ds.h.
References TVec< TVal, TSizeTy >::Len(), and TVec< TVal, TSizeTy >::ValT.
TVec< TVal, TSizeTy > & TVec< TVal, TSizeTy >::operator= | ( | const TVec< TVal, TSizeTy > & | Vec | ) |
Assigns new contents to the vector, replacing its current content.
Definition at line 961 of file ds.h.
References TVec< TVal, TSizeTy >::Vals, and TVec< TVal, TSizeTy >::ValT.
bool TVec< TVal, TSizeTy >::operator== | ( | const TVec< TVal, TSizeTy > & | Vec | ) | const |
Checks that the two vectors have the same contents.
Definition at line 972 of file ds.h.
References TVec< TVal, TSizeTy >::Len(), and TVec< TVal, TSizeTy >::ValT.
|
inline |
Returns a reference to the element at position ValN
in the vector.
Definition at line 503 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::GetVal().
|
inline |
Returns a reference to the element at position ValN
in the vector.
Definition at line 507 of file ds.h.
void TVec< TVal, TSizeTy >::Pack | ( | ) |
Reduces vector capacity (frees memory) to match its size.
Definition at line 1057 of file ds.h.
References EAssertR, IAssert, and IAssertR.
Referenced by TNGraphMP::Defrag(), TNodeNet< TNodeData >::Defrag(), TNEANetMP::Defrag(), TNGraph::Defrag(), TNodeEDatNet< TNodeData, TEdgeData >::Defrag(), TNEGraph::Defrag(), TNodeEdgeNet< TNodeData, TEdgeData >::Defrag(), TNEANet::Defrag(), TDirNet::Defrag(), TCliqueOverlap::Expand(), TGHash< TDat >::InitPermutations(), TAGMUtil::LoadCmtyVV(), THash< TPair, THash >::Pack(), TStrHash< TInt, TBigStrPool >::Pack(), TNGraphMP::TNode::PackNIdV(), TUNGraph::TNode::PackNIdV(), TNGraph::TNode::PackNIdV(), TBPGraph::TNode::PackNIdV(), TNGraphMP::TNode::PackOutNIdV(), TUNGraph::TNode::PackOutNIdV(), TNGraph::TNode::PackOutNIdV(), TBPGraph::TNode::PackOutNIdV(), TGraphKey::TakeGraph(), TGraphKey::TakeSig(), and TLAMisc::ToSpVec().
TSizeTy TVec< TVal, TSizeTy >::Partition | ( | const TSizeTy & | MnLValN, |
const TSizeTy & | MxRValN, | ||
const bool & | Asc | ||
) |
Partitions the values between positions MnLValN...MxLValN
.
Helper function used by QSort()
.
Asc | Sorts the elements in ascending (if true ) or descending (if false ) order. |
Definition at line 1286 of file ds.h.
References forever, and Swap().
|
inlinestatic |
Partitions the values between positions BI...EI
under the comparator Cmp
.
Definition at line 743 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::QSortCmp().
bool TVec< TVal, TSizeTy >::PrevPerm | ( | ) |
Generates previous permutation of the elements in the vector.
Returns false
when the first permutation is reached.
Definition at line 1390 of file ds.h.
References Swap().
void TVec< TVal, TSizeTy >::PutAll | ( | const TVal & | Val | ) |
Sets all elements of the vector to value Val
.
Definition at line 1229 of file ds.h.
References EAssertR.
Referenced by TMAGFitBern::ComputeApxAdjLL(), TMAGFitBern::ComputeMI(), TMAGFitBern::CountAttr(), Counter1D::Counter1D(), Counter2D::Counter2D(), Counter3D::Counter3D(), MotifCluster::DegreeOrdering(), TMAGFitBern::DoEStepApxOneIter(), TMAGFitBern::DoEStepOneIter(), TMAGFitBern::DoMStep(), TLAMisc::FillZero(), TUniChDb::FindSentenceBoundaries(), TUniChDb::FindWordBoundaries(), THash< TPair, THash >::Gen(), THashSet< TInt >::Gen(), TempMotifCounter::GetAllStaticTriangles(), TKronMtx::GetInitMtx(), TTable::GetSchema(), TMAGFitBern::GradAffMtx(), TMAGFitBern::GradApxAffMtx(), TKroneckerLL::GradDescentConvergence(), TGraphAnf< PGraph >::InitAnfBits(), ChibaNishizekiWeighter::Initialize(), TKroneckerLL::InitLL(), TBigNet< TNodeData, IsDir >::IsolateNode(), TAGMFast::MLEGradAscentParallel(), TCoda::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), MotifCluster::NFiedlerVector(), TMAGAffMtx::PutAllMtx(), TKronMtx::PutAllMtx(), TMAGFitBern::RandomInit(), TKroneckerLL::SampleGradient(), TMAGParam< TMAGNodeBern >::SetMtxAll(), SymeigsSmallest(), TUniChDb::TestFindNextWordOrSentenceBoundary(), TKroneckerLL::TestKronDescent(), TKroneckerLL::TestSamplePerm(), THash< TKey, TDat, THashFunc >::THash(), THashSet< TKey, THashFunc >::THashSet(), THtmlLxChDef::THtmlLxChDef(), THttpChDef::THttpChDef(), TLxChDef::TLxChDef(), TMAGNodeBern::TMAGNodeBern(), TMAGNodeBeta::TMAGNodeBeta(), TLAMisc::ToVec(), TStrHash< TInt, TBigStrPool >::TStrHash(), and TTable::UpdateFltFromTableMP().
void TVec< TVal, TSizeTy >::QSort | ( | const TSizeTy & | MnLValN, |
const TSizeTy & | MxRValN, | ||
const bool & | Asc | ||
) |
Quick sorts the values between positions MnLValN...MxLValN
.
Helper function used by Sort()
.
Asc | Sorts the elements in ascending (if true ) or descending (if false ) order. |
Definition at line 1305 of file ds.h.
Referenced by TSnap::GetTreeSig().
|
inlinestatic |
Quick sorts the values between positions BI...EI
under the comparator Cmp
.
Definition at line 762 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::QSortCmp(), TPackVec< TVal >::Sort(), and TVec< TFlt, TSizeTy >::SortCmp().
|
inline |
Reduces the vector's length to _Vals
elements, which must be less than the current length.
Definition at line 556 of file ds.h.
Referenced by TSnap::GetShortestDistances(), TSnap::GetShortestDistancesMP2(), TSnap::GetTriads(), TSnap::GetTriangleCnt(), and TSnap::GetUniqueNbrV().
|
inline |
Reserves enough memory for the vector to store _MxVals
elements.
Definition at line 543 of file ds.h.
Referenced by TTable::AddIdColumn(), TNumericalStuff::CholeskyDecomposition(), TNumericalStuff::CholeskySolve(), TSnap::GetCmnNbrs(), TSnap::GetLen2Paths(), TBigNet< TNodeData, IsDir >::GetNIdV(), TNodeNet< TNodeData >::GetNIdV(), TNodeEDatNet< TNodeData, TEdgeData >::GetNIdV(), TSnap::GetNodeInDegV(), TSnap::GetNodeOutDegV(), TTable::GetPartitionRanges(), TSnap::GetTriads(), TSnap::GetTriads_v0(), TSnap::GetTriangleCnt(), TSnap::GetUniqueNbrV(), TTable::Join(), TSparseSVD::Lanczos(), TSparseSVD::Lanczos2(), TNumericalStuff::LUDecomposition(), TSnap::MapHits(), TSnap::MapPageRank(), TSparseSVD::OrtoIterSVD(), TUNGraph::ReserveNIdDeg(), TNGraphMP::ReserveNIdInDeg(), TNGraph::ReserveNIdInDeg(), TNGraphMP::ReserveNIdOutDeg(), TNGraph::ReserveNIdOutDeg(), TTable::ResizeTable(), TTable::SelectAtomicConst(), TUniCodec::TestUtf16(), TUniCodec::TestUtf8(), TSnap::ToGraphMP(), TSnap::ToNetworkMP(), and TSnap::ToNetworkMP2().
|
inline |
Reserves enough memory for the vector to store _MxVals
elements and sets its length to _Vals
.
|
inline |
Returns the size of allocated storage capacity.
Definition at line 577 of file ds.h.
Referenced by THash< TPair, THash >::GetMemUsed(), TStrHash< TInt, TBigStrPool >::GetMemUsed(), THash< TPair, THash >::GetReservedKeyIds(), TSnapQueue< int >::Push(), TSnapQueue< int >::Reserved(), and TStrHash< TInt, TBigStrPool >::Reserved().
|
protected |
Resizes the vector so that it can store at least _MxVals
.
Definition at line 877 of file ds.h.
References TStr::CStr(), FailR, TStr::Fmt(), TInt::GetStr(), GetTypeNm(), IAssert, IAssertR, and TInt::Mx.
Referenced by TVec< TFlt, TSizeTy >::Add(), and TVec< TFlt, TSizeTy >::Reserve().
void TVec< TVal, TSizeTy >::Reverse | ( | ) |
Reverses the order of the elements in the vector.
Definition at line 1350 of file ds.h.
References Swap().
Referenced by TSpecFunc::EntropyFracDim(), TBreathFS< PGraph >::GetRndPath(), and TStr::IsWcMatch().
|
inline |
Definition at line 954 of file ds.h.
References TSOut::Save().
Referenced by TBlobBs::PutFFreeBlobPtV(), TGraphKey::Save(), TJsonVal::Save(), TAGMFit::Save(), TNodeNet< TNodeData >::TNode::Save(), TNEANetMP::TNode::Save(), TNGraphMP::TNode::Save(), TUStr::Save(), TUNGraph::TNode::Save(), TAGMFast::Save(), TWChA::Save(), THitInfo::Save(), TCoda::Save(), TCnCom::Save(), TNetInfBs::Save(), TFSet::Save(), TGStatVec::Save(), TSnapQueue< int >::Save(), THash< TPair, THash >::Save(), TLogRegPredict::Save(), TNcpGraphsBase::Save(), TCesna::Save(), TNEANetMP::Save(), TCrossNet::Save(), TNGraph::TNode::Save(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save(), TNEGraph::TNode::Save(), TStrHash< TInt, TBigStrPool >::Save(), TBPGraph::TNode::Save(), TTable::Save(), THashSet< TInt >::Save(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Save(), TUniChDb::Save(), PVec< TVal >::Save(), TSStack< TInt >::Save(), and TQQueue< TInt >::Save().
void TVec< TVal, TSizeTy >::SaveXml | ( | TSOut & | SOut, |
const TStr & | Nm | ||
) | const |
Definition at line 113 of file xmlser.h.
References TInt::GetStr(), and XSaveHdArg.
TSizeTy TVec< TVal, TSizeTy >::SearchBack | ( | const TVal & | Val | ) | const |
Returns the position of an element with value Val
.
If the element is not found return value is -1. Uses backward linear search.
TSizeTy TVec< TVal, TSizeTy >::SearchBin | ( | const TVal & | Val | ) | const |
Returns the position of an element with value Val
.
If the element is not found return value is -1. Uses binary search and thus assumes the vector is sorted.
Definition at line 1519 of file ds.h.
Referenced by TNGraphMP::DelEdge(), TUNGraph::DelEdge(), TNGraph::DelEdge(), TBPGraph::DelEdge(), TUndirNet::DelEdge(), TDirNet::DelEdge(), TNGraphMP::DelNode(), TNodeNet< TNodeData >::DelNode(), TUNGraph::DelNode(), TNGraph::DelNode(), TNodeEDatNet< TNodeData, TEdgeData >::DelNode(), TBPGraph::DelNode(), TUndirNet::DelNode(), TDirNet::DelNode(), TVec< TFlt, TSizeTy >::IsInBin(), TNEANetMP::TNode::IsInEId(), TNEGraph::TNode::IsInEId(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsInEId(), TNodeNet< TNodeData >::TNode::IsInNId(), TNGraphMP::TNode::IsInNId(), TNGraph::TNode::IsInNId(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsInNId(), TGraphKey::IsIsomorph(), TUNGraph::TNode::IsNbrNId(), TBPGraph::TNode::IsNbrNId(), TCnCom::IsNIdIn(), TNEANetMP::TNode::IsOutEId(), TNEGraph::TNode::IsOutEId(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsOutEId(), TNodeNet< TNodeData >::TNode::IsOutNId(), TNGraphMP::TNode::IsOutNId(), and TNGraph::TNode::IsOutNId().
TSizeTy TVec< TVal, TSizeTy >::SearchBin | ( | const TVal & | Val, |
TSizeTy & | InsValN | ||
) | const |
TSizeTy TVec< TVal, TSizeTy >::SearchBinLeft | ( | const TVal & | Val, |
TSizeTy & | InsValN | ||
) | const |
TSizeTy TVec< TVal, TSizeTy >::SearchForw | ( | const TVal & | Val, |
const TSizeTy & | BValN = 0 |
||
) | const |
Returns the position of an element with value Val
.
If the element is not found return value is -1. Uses linear search starting at position BValN
.
Definition at line 1552 of file ds.h.
Referenced by TTree< TVal >::DelNode(), TVec< TFlt, TSizeTy >::GetAddDat(), THtmlLx::GetArg(), TXmlLx::GetArgVal(), TXmlTok::GetBoolArgVal(), TVec< TFlt, TSizeTy >::GetDat(), TTmInfo::GetDayOfWeekN(), TXmlTok::GetFltArgVal(), TXmlTok::GetIntArgVal(), TTmInfo::GetMonthN(), TXmlTok::GetStrArgVal(), TVec< TFlt, TSizeTy >::IsIn(), THtmlLx::PutArg(), and TWChA::SearchCh().
TSizeTy TVec< TVal, TSizeTy >::SearchVForw | ( | const TVec< TVal, TSizeTy > & | ValV, |
const TSizeTy & | BValN = 0 |
||
) | const |
Returns the starting position of vector ValV
.
If the vector is not found return value is -1.
Definition at line 1566 of file ds.h.
References TVec< TVal, TSizeTy >::Len().
Referenced by TWChA::SearchStr().
|
inline |
Sets the value of element at position ValN
to Val
.
Definition at line 653 of file ds.h.
Referenced by TBreathFS< PGraph >::DoBfsHybrid(), KNNJaccard(), KNNJaccardParallel(), TTable::Rename(), and TBreathFS< PGraph >::TopDownStep().
Randomly shuffles the elements of the vector.
Definition at line 1335 of file ds.h.
References TRnd::GetUniDevInt(), TRnd::GetUniDevInt64(), TInt::Mx, and Swap().
Referenced by TForestFire::BurnGeoFire(), TUndirFFire::BurnGeoFire(), TKronNoise::FlipEdgeNoise(), TSnap::GetBetweennessCentr(), TSnap::GetBfsEffDiam(), TSnap::GetRndSubGraph(), TSnap::GetTriads(), TSnap::GetTriads_v0(), TSnap::GetWeightedBetweennessCentr(), TSnap::Infomap(), TAGMFast::MLENewton(), node2vec(), TSnap::PlotShortPathDistr(), TKronNoise::RemoveEdgeNoise(), TKronNoise::RemoveNodeNoise(), TKroneckerLL::SetRndPerm(), and TQQueue< TInt >::Shuffle().
void TVec< TVal, TSizeTy >::Sort | ( | const bool & | Asc = true | ) |
Sorts the elements of the vector.
Use a combination if quicksort and insertion sort.
Asc | Sorts the elements in ascending (if true ) or descending (if false ) order. |
Definition at line 1318 of file ds.h.
Referenced by TNGraphMP::AddNode(), TUNGraph::AddNode(), TNGraph::AddNode(), TUndirNet::AddNode(), TDirNet::AddNode(), TGnuPlot::AddPlot(), TTable::AggregateVector(), TLocClustStat::BagOfWhiskers(), TLocClustStat::BagOfWhiskers2(), TSnap::CascFind(), TSnap::CascFindMP(), TempMotifCounter::Count3TEdge2Node(), TempMotifCounter::Count3TEdge3NodeStars(), TempMotifCounter::Count3TEdge3NodeStarsNaive(), TempMotifCounter::Count3TEdgeTriads(), TempMotifCounter::Count3TEdgeTriadsNaive(), TMom::Def(), MotifCluster::DegreeOrdering(), TMAGFitBern::DoEStepOneIter(), TLocClust::DrawWhiskers(), TMAGAffMtx::Dump(), TKronMtx::Dump(), TSubGraphsEnum::EnumSubGraphs(), TBiConVisitor::FinishNode(), TSubGraphsEnum::Gen2Graphs(), TBlobBs::GenBlockLenV(), TempMotifCounter::GetAllStaticTriangles(), TMAGAffMtx::GetAvgAbsErr(), TKronMtx::GetAvgAbsErr(), TMAGAffMtx::GetAvgFroErr(), TKronMtx::GetAvgFroErr(), TNetInfBs::GetBestEdge(), TSnap::GetBfsEffDiam(), TSnap::GetBiConSzCnt(), TNetInfBs::GetBound(), TSnap::GetClustCf(), TCodaAnalyzer::GetCmtyVAll(), TCliqueOverlap::GetCPMCommunities(), TLocClustStat::GetCurveStat(), TSnap::GetDegCnt(), TTimeNENet::GetEdgeTmBuckets(), TTimeNENet::GetEIdByTm(), TSnap::GetEigVals(), TSnap::GetEigVec(), TSnap::GetInDegCnt(), TSnap::GetInvParticipRat(), TGHash< TDat >::GetKeyIdByDat(), TGHash< TDat >::GetKeyIdByGSz(), TTimeNet::GetNIdByTm(), TTimeNENet::GetNIdByTm(), TSnap::GetNodesAtHops(), TSnap::GetOutDegCnt(), TSnap::GetSccs(), TSnap::GetSccSzCnt(), TSnap::GetSngVals(), TSnap::GetSngVec(), TTimeNet::GetTmBuckets(), TTimeNENet::GetTmBuckets(), TSnap::GetTriadParticip(), TGStatVec::GetValV(), TSnap::GetWccs(), TSnap::GetWccSzCnt(), TKroneckerLL::GradDescentConvergence(), TNetInfBs::GreedyOpt(), TUniChDb::InitWordAndSentenceBoundaryFlags(), TBigNet< TNodeData, IsDir >::InvertFromSources(), TNIBs::LabelBurstAutomaton(), TSparseSVD::Lanczos(), TSparseSVD::Lanczos2(), TVec< TVal, TSizeTy >::Merge(), TCoda::NeighborComInit(), TCesna::NeighborComInit(), TMAGFitBern::NextPermutation(), TNcpGraphsBase::PlotBestWhisker(), TTimeNet::PlotEffDiam(), TTimeNENet::PlotEffDiam(), TSnap::PlotEigValDistr(), TSnap::PlotEigValRank(), TFfGGen::PlotFireSize(), TNcpGraphsBase::PlotNcpMin(), TLocClustStat::PlotNCPModul(), TNcpGraphsBase::PlotRewBestWhisker(), TNcpGraphsBase::PlotRewNcpMin(), TSnap::PlotSngValDistr(), TSnap::PlotSngValRank(), TSnap::PlotSngVec(), TGnuPlot::PlotValMomH(), TGnuPlot::PlotValOverTm(), TSubGraphsEnum::RecurBfs(), TSubGraphsEnum::RecurBfs1(), TGStatVec::SaveTxt(), TNcpGraphsBase::SaveTxtNcpMin(), TKroneckerLL::SetBestDegPerm(), TKroneckerLL::SetDegPerm(), TSparseSVD::SimpleLanczos(), TCnCom::Sort(), TTuple< TVal, NVals >::Sort(), TBigNet< TNodeData, IsDir >::SortEdgeV(), TNGraphMP::TNode::SortNIdV(), TUNGraph::TNode::SortNIdV(), TNGraph::TNode::SortNIdV(), SummarizeConnectedComponents(), SymeigsSmallest(), TGraphKey::TakeGraph(), TGraphKey::TakeSig(), TGStat::TakeSpectral(), TUniChDb::TestWbFindNonIgnored(), TSparseRowMatrix::TSparseRowMatrix(), and TMAGFitBern::UnNormalizeAffMtxV().
|
inline |
Sorts the elements of the vector using the comparator Cmp
.
Definition at line 770 of file ds.h.
Referenced by TGStatVec::Sort().
Swaps the contents of the vector with Vec
.
Definition at line 1101 of file ds.h.
References TVec< TVal, TSizeTy >::MxVals, Swap(), TVec< TVal, TSizeTy >::Vals, and TVec< TVal, TSizeTy >::ValT.
Referenced by TGnuPlot::AddPlot(), TGnuPlot::AddPwrFit3(), TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TUndirFFire::BurnGeoFire(), TSnap::TSnapDetail::TCNMQMatrix::CmtyCMN(), TSnap::CommunityGirvanNewman(), TGStatVec::DelAfter(), TGStatVec::DelBefore(), TGStatVec::DelSmallNodes(), TLocClustStat::GetBoltzmanCurveStat(), TLocClustStat::GetCurveStat(), TTable::Partition(), TTable::PartitionKeyVal(), TLocClustStat::PlotNCPModul(), TVec< TFlt, TSizeTy >::Reverse(), TKroneckerLL::SampleNextPerm(), TTimeNENet::SetRndEdgeTimes(), TMAGFitBern::SortAttrOrdering(), TMAGAffMtx::Swap(), TKronMtx::Swap(), TMaxPriorityQueue< TVal >::Swap(), TKroneckerLL::SwapNodesLL(), and TKroneckerLL::UpdateGraphDLL().
|
inline |
Swaps elements at positions ValN1
and ValN2
.
|
inlinestatic |
Swaps the elements that iterators LVal
and RVal
point to.
Definition at line 677 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::BSortCmp(), and TVec< TFlt, TSizeTy >::PartitionCmp().
void TVec< TVal, TSizeTy >::Trunc | ( | const TSizeTy & | _Vals = -1 | ) |
Truncates the vector's length and capacity to _Vals
elements.
If _Vals=-1
then the capacity is reduced to match vector's length.
Definition at line 1033 of file ds.h.
References EAssertR, IAssert, and IAssertR.
Referenced by TCoda::GetTopCIDs(), TTable::ResizeTable(), and ChibaNishizekiWeighter::SubgraphDegreeOrder().
void TVec< TVal, TSizeTy >::Union | ( | const TVec< TVal, TSizeTy > & | ValV | ) |
Sets this vector to its union with ValV
. Assumes the vectors are sorted!
Definition at line 1418 of file ds.h.
Referenced by TCodaAnalyzer::GetCmtyVAll().
void TVec< TVal, TSizeTy >::Union | ( | const TVec< TVal, TSizeTy > & | ValV, |
TVec< TVal, TSizeTy > & | DstValV | ||
) | const |
Sets DstValV
to the union of this vector and ValV
. Assumes the vectors are sorted!
Definition at line 1446 of file ds.h.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Gen(), TInt::GetMx(), TVec< TVal, TSizeTy >::GetVal(), and TVec< TVal, TSizeTy >::Len().
TSizeTy TVec< TVal, TSizeTy >::UnionLen | ( | const TVec< TVal, TSizeTy > & | ValV | ) | const |
Returns the size of the union of vectors this
and ValV
. Assumes the vectors are sorted!
Definition at line 1493 of file ds.h.
References TVec< TVal, TSizeTy >::GetVal(), and TVec< TVal, TSizeTy >::Len().
|
protected |
True if the vector array is in shared memory
Definition at line 437 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::LoadShM(), TVec< TFlt, TSizeTy >::SetVal(), TVec< TFlt, TSizeTy >::Swap(), and TVec< TFlt, TSizeTy >::TVec().
|
protected |
Vector capacity. Capacity is the size of allocated storage. If MxVals==-1
, then ValT
is not owned by the vector, and it won't free it at destruction.
Definition at line 434 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::Add(), TVec< TFlt, TSizeTy >::Gen(), TVec< TFlt, TSizeTy >::GenExt(), TVec< TFlt, TSizeTy >::GetAddDat(), TVec< TFlt, TSizeTy >::GetMemUsed(), TVec< TFlt, TSizeTy >::IsExt(), TVec< TFlt, TSizeTy >::LoadShM(), TVec< TVal, TSizeTy >::MoveFrom(), TVec< TFlt, TSizeTy >::Reserved(), TVec< TFlt, TSizeTy >::SetVal(), TVec< TVal, TSizeTy >::Swap(), TVec< TFlt, TSizeTy >::Swap(), TVec< TVal, TSizeTy >::TVec(), TVec< TFlt, TSizeTy >::TVec(), and TVec< TFlt, TSizeTy >::~TVec().
|
protected |
Vector length. Length is the number of elements stored in the vector.
Definition at line 435 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::Add(), TVec< TVal, TSizeTy >::AddV(), TVec< TVal, TSizeTy >::AddVMerged(), TVec< TFlt, TSizeTy >::Empty(), TVec< TFlt, TSizeTy >::EndI(), TVec< TFlt, TSizeTy >::Gen(), TVec< TFlt, TSizeTy >::GenExt(), TVec< TFlt, TSizeTy >::GetMemSize(), TVec< TFlt, TSizeTy >::LastLast(), TVec< TFlt, TSizeTy >::Len(), TVec< TFlt, TSizeTy >::LoadShM(), TVec< TVal, TSizeTy >::MoveFrom(), TVec< TFlt, TSizeTy >::MoveLastMP(), TVec< TVal, TSizeTy >::operator=(), TVec< TFlt, TSizeTy >::operator[](), TVec< TFlt, TSizeTy >::Reduce(), TVec< TFlt, TSizeTy >::Reserve(), TVec< TFlt, TSizeTy >::SetVal(), TVec< TVal, TSizeTy >::Swap(), TVec< TVal, TSizeTy >::TVec(), and TVec< TFlt, TSizeTy >::TVec().
|
protected |
Pointer to the memory where the elements of the vector are stored.
Definition at line 436 of file ds.h.
Referenced by TVec< TFlt, TSizeTy >::Add(), TVec< TFlt, TSizeTy >::BegI(), TVec< TVal, TSizeTy >::CopyUniqueFrom(), TVec< TFlt, TSizeTy >::EndI(), TVec< TFlt, TSizeTy >::Gen(), TVec< TFlt, TSizeTy >::GenExt(), TVec< TFlt, TSizeTy >::GetI(), TVec< TFlt, TSizeTy >::LastLast(), TVec< TFlt, TSizeTy >::LoadShM(), TVec< TVal, TSizeTy >::MoveFrom(), TVec< TVal, TSizeTy >::operator<(), TVec< TVal, TSizeTy >::operator=(), TPackVec< TVal >::operator=(), TVec< TVal, TSizeTy >::operator==(), TVec< TFlt, TSizeTy >::operator[](), TVec< TFlt, TSizeTy >::SetVal(), TVec< TVal, TSizeTy >::Swap(), TVec< TFlt, TSizeTy >::Swap(), TVec< TVal, TSizeTy >::TVec(), TVec< TFlt, TSizeTy >::TVec(), and TVec< TFlt, TSizeTy >::~TVec().