BusBoy
2
|
#include <set>
#include <map>
#include <vector>
#include <sstream>
Go to the source code of this file.
Namespaces | |
namespace | BUSBOY |
Copyright 2014 Google Inc. | |
Functions | |
template<typename T > | |
void | BUSBOY::copyArray (const T *src, T *dest, size_t size) |
Copy an array into space allocated by the caller. More... | |
template<typename T > | |
T * | BUSBOY::copyArray (const T *src, size_t size) |
Copy an array into space allocated by this method. More... | |
template<typename T > | |
bool | BUSBOY::compareArray (const T *arr1, const T *arr2, size_t size) |
Memberwise array comparison of arrays known to be the same size. More... | |
template<typename T > | |
bool | BUSBOY::comparePointers (const T *p1, const T *p2) |
Helper method for compareVectorOfPointers. More... | |
template<typename T > | |
bool | BUSBOY::compareVectorsOfPointers (const std::vector< T * > vector1, const std::vector< T * > vector2) |
Operator== for vectors where the elements are pointers. More... | |
template<typename V > | |
void | BUSBOY::deleteVectorOfPointers (std::vector< V * > &vector) |
Deletes all the values in a vector of pointers. More... | |
template<typename K , typename V > | |
bool | BUSBOY::comparePointerPairs (const std::pair< K, V * > &pair1, const std::pair< K, V * > &pair2) |
Helper method for compareMapOfPointers. More... | |
template<typename K , typename V > | |
bool | BUSBOY::compareMapsOfPointers (const std::map< K, V * > map1, const std::map< K, V * > map2) |
Operator== for maps where the elements are pointers. More... | |
template<typename K , typename V > | |
void | BUSBOY::deleteMapOfPointers (std::map< K, V * > &map) |
Deletes all the values in a map of pointers. More... | |
template<typename K , typename V > | |
std::set< K > | BUSBOY::keySet (const std::map< K, V > &map) |
Returns all the keys in a map. More... | |
template<typename K , typename V > | |
void | BUSBOY::mapAddAll (std::map< K, V > *map1, const std::map< K, V > &map2) |
Add contents of map2 to map1, updating map1. More... | |
template<typename T > | |
std::string | BUSBOY::vectorToString (const std::vector< T > &vec, const std::string &delim) |
Converts a vector to a delimited string. More... | |
template<typename T > | |
std::string | BUSBOY::setToString (const std::set< T > &set, const std::string &delim) |
Converts a set to a delimited string. More... | |
template<typename InputIterator > | |
std::string | BUSBOY::containerToString (const InputIterator begin, const InputIterator end, const std::string &delim) |
Converts elements between begin and end to a delimited string. More... | |
template<typename T > | |
std::vector< T > | BUSBOY::setToVector (const std::set< T > &set) |
Converts a set to a vector using the natural set ordering. More... | |
Copyright 2014 Google Inc. All rights reserved.