{
static String value;
value.clean();
- for (Vector<NotePairs::Entry *>::const_iterator i = entries.begin(); i != entries.end(); ++i) {
+ for (std::vector<NotePairs::Entry *>::const_iterator i = entries.begin(); i != entries.end(); ++i) {
if ((*i)->name.cmp(noteKey) == 0) {
if (value.size())
value.append(", ");
{
static String value;
value.clean();
- for (Vector<NotePairs::Entry *>::const_iterator i = entries.begin(); i != entries.end(); ++i) {
+ for (std::vector<NotePairs::Entry *>::const_iterator i = entries.begin(); i != entries.end(); ++i) {
value.append((*i)->name);
value.append(": ");
value.append(ConfigParser::QuoteString((*i)->value));
const char *
NotePairs::findFirst(const char *noteKey) const
{
- for (Vector<NotePairs::Entry *>::const_iterator i = entries.begin(); i != entries.end(); ++i) {
+ for (std::vector<NotePairs::Entry *>::const_iterator i = entries.begin(); i != entries.end(); ++i) {
if ((*i)->name.cmp(noteKey) == 0)
return (*i)->value.termedBuf();
}
bool
NotePairs::hasPair(const char *key, const char *value) const
{
- for (Vector<NotePairs::Entry *>::const_iterator i = entries.begin(); i != entries.end(); ++i) {
+ for (std::vector<NotePairs::Entry *>::const_iterator i = entries.begin(); i != entries.end(); ++i) {
if ((*i)->name.cmp(key) == 0 && (*i)->value.cmp(value) == 0)
return true;
}
void
NotePairs::append(const NotePairs *src)
{
- for (Vector<NotePairs::Entry *>::const_iterator i = src->entries.begin(); i != src->entries.end(); ++i) {
+ for (std::vector<NotePairs::Entry *>::const_iterator i = src->entries.begin(); i != src->entries.end(); ++i) {
entries.push_back(new NotePairs::Entry((*i)->name.termedBuf(), (*i)->value.termedBuf()));
}
}
void
NotePairs::appendNewOnly(const NotePairs *src)
{
- for (Vector<NotePairs::Entry *>::const_iterator i = src->entries.begin(); i != src->entries.end(); ++i) {
+ for (std::vector<NotePairs::Entry *>::const_iterator i = src->entries.begin(); i != src->entries.end(); ++i) {
if (!hasPair((*i)->name.termedBuf(), (*i)->value.termedBuf()))
entries.push_back(new NotePairs::Entry((*i)->name.termedBuf(), (*i)->value.termedBuf()));
}
#include "acl/forward.h"
#include "base/RefCount.h"
-#include "base/Vector.h"
#include "CbDataList.h"
#include "format/Format.h"
#include "MemPool.h"
#if HAVE_STRING
#include <string>
#endif
+#include <vector>
class HttpRequest;
class HttpReply;
explicit Value(const String &aVal) : value(aVal), aclList(NULL), valueFormat(NULL) {}
~Value();
};
- typedef Vector<Value::Pointer> Values;
+ typedef std::vector<Value::Pointer> Values;
explicit Note(const String &aKey): key(aKey) {}
class Notes
{
public:
- typedef Vector<Note::Pointer> NotesList;
+ typedef std::vector<Note::Pointer> NotesList;
typedef NotesList::iterator iterator; ///< iterates over the notes list
typedef NotesList::const_iterator const_iterator; ///< iterates over the notes list
*/
bool empty() const {return entries.empty();}
- Vector<NotePairs::Entry *> entries; ///< The key/value pair entries
+ std::vector<NotePairs::Entry *> entries; ///< The key/value pair entries
private:
NotePairs &operator = (NotePairs const &); // Not implemented
#include "squid.h"
#include "StoreFileSystem.h"
-Vector<StoreFileSystem*> *StoreFileSystem::_FileSystems = NULL;
+std::vector<StoreFileSystem*> *StoreFileSystem::_FileSystems = NULL;
void
StoreFileSystem::RegisterAllFsWithCacheManager(void)
GetFileSystems().push_back (&instance);
}
-Vector<StoreFileSystem *> const &
+std::vector<StoreFileSystem *> const &
StoreFileSystem::FileSystems()
{
return GetFileSystems();
}
-Vector<StoreFileSystem*> &
+std::vector<StoreFileSystem*> &
StoreFileSystem::GetFileSystems()
{
if (!_FileSystems)
- _FileSystems = new Vector<StoreFileSystem *>;
+ _FileSystems = new std::vector<StoreFileSystem *>;
return *_FileSystems;
}
static void SetupAllFs();
static void FsAdd(StoreFileSystem &);
static void FreeAllFs();
- static Vector<StoreFileSystem*> const &FileSystems();
- typedef Vector<StoreFileSystem*>::iterator iterator;
- typedef Vector<StoreFileSystem*>::const_iterator const_iterator;
+ static std::vector<StoreFileSystem*> const &FileSystems();
+ typedef std::vector<StoreFileSystem*>::iterator iterator;
+ typedef std::vector<StoreFileSystem*>::const_iterator const_iterator;
StoreFileSystem() : initialised(false) {}
virtual ~StoreFileSystem() {}
virtual void registerWithCacheManager(void);
private:
- static Vector<StoreFileSystem*> &GetFileSystems();
- static Vector<StoreFileSystem*> *_FileSystems;
+ static std::vector<StoreFileSystem*> &GetFileSystems();
+ static std::vector<StoreFileSystem*> *_FileSystems;
static void RegisterAllFsWithCacheManager(void);
};
void *cbdata;
bool _done;
int bucket;
- Vector<StoreEntry *> entries;
+ std::vector<StoreEntry *> entries;
// keep this last. it plays with private/public
CBDATA_CLASS2(StoreSearchHashIndex);
#include "profiler/Profiler.h"
#include "SquidConfig.h"
+#include <vector>
+
const ACLFlag ACLFlags::NoFlags[1] = {ACL_F_END};
const char *AclMatchedName = NULL;
registerMe ();
}
-Vector<ACL::Prototype const *> * ACL::Prototype::Registry;
+std::vector<ACL::Prototype const *> * ACL::Prototype::Registry;
void *ACL::Prototype::Initialized;
bool
if (!Registry || (Initialized != ((char *)Registry - 5)) ) {
/* TODO: extract this */
/* Not initialised */
- Registry = new Vector <ACL::Prototype const *>;
+ Registry = new std::vector<ACL::Prototype const *>;
Initialized = (char *)Registry - 5;
}
#define SQUID_ACL_H
#include "acl/forward.h"
-#include "base/Vector.h"
#include "cbdata.h"
#include "defines.h"
#include "dlink.h"
#if HAVE_STRING
#include <string>
#endif
+#include <vector>
class ConfigParser;
char const *typeString;
private:
- static Vector<Prototype const *> * Registry;
+ static std::vector<Prototype const *> * Registry;
static void *Initialized;
- typedef Vector<Prototype const*>::iterator iterator;
- typedef Vector<Prototype const*>::const_iterator const_iterator;
+ typedef std::vector<Prototype const*>::iterator iterator;
+ typedef std::vector<Prototype const*>::const_iterator const_iterator;
void registerMe();
};
if (values->empty())
return (note->findFirst(name.termedBuf()) != NULL);
- for (Vector<NotePairs::Entry *>::iterator i = note->entries.begin(); i!= note->entries.end(); ++i) {
+ for (std::vector<NotePairs::Entry *>::iterator i = note->entries.begin(); i!= note->entries.end(); ++i) {
if ((*i)->name.cmp(name.termedBuf()) == 0) {
if (values->match((*i)->value.termedBuf()))
return true;
const char *error; // human-readable information; set iff !valid()
// ICAP server MUST supply this info
- Vector<ICAP::Method> methods;
+ std::vector<ICAP::Method> methods;
String istag;
// ICAP server MAY supply this info. If not, Squid supplies defaults.
if (!theOptions->methods.empty()) {
bool method_found = false;
String method_list;
- Vector <ICAP::Method>::iterator iter = theOptions->methods.begin();
+ std::vector <ICAP::Method>::iterator iter = theOptions->methods.begin();
while (iter != theOptions->methods.end()) {