Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgVectorUtility Namespace Reference


Functions

void Difference (SgVector< int > *vector, const SgVector< int > &vector2)
 Exclude all elements of vector2 from vector.
void Intersection (SgVector< int > *vector, const SgVector< int > &vector2)
 Keep only elements in vector that also occur in vector2.


Function Documentation

void SgVectorUtility::Difference ( SgVector< int > *  vector,
const SgVector< int > &  vector2 
)

Exclude all elements of vector2 from vector.

Definition at line 14 of file SgVectorUtility.cpp.

References SgVector< T >::Exclude().

void SgVectorUtility::Intersection ( SgVector< int > *  vector,
const SgVector< int > &  vector2 
)

Keep only elements in vector that also occur in vector2.

Definition at line 22 of file SgVectorUtility.cpp.

References SgVector< T >::Contains(), SgVector< T >::PushBack(), and SgVector< T >::SwapWith().


17 Jun 2010 Doxygen 1.4.7