TProcuraAdversa
Algoritmos de procura adversa
Loading...
Searching...
No Matches
TVector< Item > Class Template Reference

#include <TVector.h>

Collaboration diagram for TVector< Item >:

Public Member Functions

 TVector (int size=0)
 
 TVector (int size, Item const *init)
 
virtual ~TVector ()
 
void Add (Item a)
 
void Insert (Item a, int index=0)
 
TVector< Item > & Insert (TVector< Item > &v, int index=0)
 
void Push (Item a)
 
Item & Pop ()
 
Item & operator[] (int i)
 
Item & First ()
 
Item & Last ()
 
int Count ()
 
void Count (int value)
 
Item & Random ()
 
TVector< Item > & operator= (TVector< Item > &v)
 
TVector< Item > & operator+= (TVector< Item > &v)
 
TVector< Item > & BeASet ()
 
TVector< Item > & Union (TVector< Item > &v)
 
TVector< Item > & Intersection (TVector< Item > &v)
 
TVector< Item > & Difference (TVector< Item > &v)
 
bool Equal (TVector< Item > &v)
 
bool Contained (TVector< Item > &v)
 
void Delete (int i)
 
void Remove (Item const &i)
 
int Find (Item &i, bool binary=false, int left=0, int right=-1)
 
void Replace (Item const &iold, Item const &inew)
 
void Sort (TVector< int > *idxvect=NULL)
 
void Sort (int start, int end=-1)
 
void RandomOrder ()
 
void Invert ()
 
void Reset (Item const &i)
 
int Distance (TVector< Item > &v, int type=0)
 

Static Public Attributes

static Item erro
 

Detailed Description

template<class Item>
class TVector< Item >

Definition at line 26 of file TVector.h.

Constructor & Destructor Documentation

◆ TVector() [1/2]

template<class Item >
TVector< Item >::TVector ( int  size = 0)
inline

Definition at line 49 of file TVector.h.

◆ TVector() [2/2]

template<class Item >
TVector< Item >::TVector ( int  size,
Item const *  init 
)

Definition at line 123 of file TVector.h.

◆ ~TVector()

template<class Item >
TVector< Item >::~TVector ( )
virtual

Definition at line 136 of file TVector.h.

Member Function Documentation

◆ Add()

template<class Item >
void TVector< Item >::Add ( Item  a)
inline

Definition at line 54 of file TVector.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BeASet()

template<class Item >
TVector< Item > & TVector< Item >::BeASet ( )

Definition at line 360 of file TVector.h.

◆ Contained()

template<class Item >
bool TVector< Item >::Contained ( TVector< Item > &  v)

Definition at line 446 of file TVector.h.

Here is the call graph for this function:

◆ Count() [1/2]

template<class Item >
int TVector< Item >::Count ( )
inline

Definition at line 70 of file TVector.h.

Here is the caller graph for this function:

◆ Count() [2/2]

template<class Item >
void TVector< Item >::Count ( int  value)
inline

Definition at line 71 of file TVector.h.

◆ Delete()

template<class Item >
void TVector< Item >::Delete ( int  i)

Definition at line 326 of file TVector.h.

Here is the caller graph for this function:

◆ Difference()

template<class Item >
TVector< Item > & TVector< Item >::Difference ( TVector< Item > &  v)

Definition at line 411 of file TVector.h.

Here is the call graph for this function:

◆ Distance()

template<class Item >
int TVector< Item >::Distance ( TVector< Item > &  v,
int  type = 0 
)

Definition at line 502 of file TVector.h.

Here is the call graph for this function:

◆ Equal()

template<class Item >
bool TVector< Item >::Equal ( TVector< Item > &  v)

Definition at line 435 of file TVector.h.

Here is the call graph for this function:

◆ Find()

template<class Item >
int TVector< Item >::Find ( Item &  i,
bool  binary = false,
int  left = 0,
int  right = -1 
)

Definition at line 146 of file TVector.h.

Here is the caller graph for this function:

◆ First()

template<class Item >
Item & TVector< Item >::First ( )
inline

Definition at line 68 of file TVector.h.

Here is the caller graph for this function:

◆ Insert() [1/2]

template<class Item >
void TVector< Item >::Insert ( Item  a,
int  index = 0 
)

Definition at line 478 of file TVector.h.

◆ Insert() [2/2]

template<class Item >
TVector< Item > & TVector< Item >::Insert ( TVector< Item > &  v,
int  index = 0 
)

Definition at line 459 of file TVector.h.

Here is the call graph for this function:

◆ Intersection()

template<class Item >
TVector< Item > & TVector< Item >::Intersection ( TVector< Item > &  v)

Definition at line 396 of file TVector.h.

Here is the call graph for this function:

◆ Invert()

template<class Item >
void TVector< Item >::Invert ( )

Definition at line 495 of file TVector.h.

◆ Last()

template<class Item >
Item & TVector< Item >::Last ( )
inline

Definition at line 69 of file TVector.h.

Here is the caller graph for this function:

◆ operator+=()

template<class Item >
TVector< Item > & TVector< Item >::operator+= ( TVector< Item > &  v)

Definition at line 348 of file TVector.h.

Here is the call graph for this function:

◆ operator=()

template<class Item >
TVector< Item > & TVector< Item >::operator= ( TVector< Item > &  v)

Definition at line 337 of file TVector.h.

Here is the call graph for this function:

◆ operator[]()

template<class Item >
Item & TVector< Item >::operator[] ( int  i)
inline

Definition at line 63 of file TVector.h.

Here is the caller graph for this function:

◆ Pop()

template<class Item >
Item & TVector< Item >::Pop ( )
inline

Definition at line 61 of file TVector.h.

Here is the caller graph for this function:

◆ Push()

template<class Item >
void TVector< Item >::Push ( Item  a)
inline

Definition at line 59 of file TVector.h.

Here is the call graph for this function:

◆ Random()

template<class Item >
Item & TVector< Item >::Random ( )
inline

Definition at line 76 of file TVector.h.

Here is the call graph for this function:

◆ RandomOrder()

template<class Item >
void TVector< Item >::RandomOrder ( )

Definition at line 289 of file TVector.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Remove()

template<class Item >
void TVector< Item >::Remove ( Item const &  i)

Definition at line 297 of file TVector.h.

Here is the caller graph for this function:

◆ Replace()

template<class Item >
void TVector< Item >::Replace ( Item const &  iold,
Item const &  inew 
)

Definition at line 317 of file TVector.h.

◆ Reset()

template<class Item >
void TVector< Item >::Reset ( Item const &  i)

Definition at line 309 of file TVector.h.

Here is the caller graph for this function:

◆ Sort() [1/2]

template<class Item >
void TVector< Item >::Sort ( int  start,
int  end = -1 
)

Definition at line 189 of file TVector.h.

◆ Sort() [2/2]

template<class Item >
void TVector< Item >::Sort ( TVector< int > *  idxvect = NULL)

Definition at line 172 of file TVector.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Union()

template<class Item >
TVector< Item > & TVector< Item >::Union ( TVector< Item > &  v)

Definition at line 382 of file TVector.h.

Here is the call graph for this function:

Member Data Documentation

◆ erro

template<class Item >
Item TVector< Item >::erro
static

Definition at line 45 of file TVector.h.


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