alaCarte Maps
Renderer for OpenStreetMap tiles
CachedString::StringStorageElement Struct Reference

Classes

struct  Hasher
 Hasher for the StringStorageElement. More...
 
struct  StringComparator
 Comparator for comparing STringStorageELements with strings. More...
 

Public Member Functions

 StringStorageElement (const string &str)
 Creates a new StringStorageELement. More...
 
 StringStorageElement (const StringStorageElement &other)
 Creates a new StringStorageELement from another. More...
 
bool operator== (const StringStorageElement &other) const
 This file is part of alaCarte. More...
 

Public Attributes

const string value
 
const std::size_t hash
 

Detailed Description

Definition at line 45 of file cached_string.hpp.

Constructor & Destructor Documentation

CachedString::StringStorageElement::StringStorageElement ( const string str)

Creates a new StringStorageELement.

Parameters
strstring for this element

Definition at line 73 of file cached_string.cpp.

CachedString::StringStorageElement::StringStorageElement ( const StringStorageElement other)

Creates a new StringStorageELement from another.

Parameters
otherelement to be copied

Definition at line 85 of file cached_string.cpp.

Member Function Documentation

bool CachedString::StringStorageElement::operator== ( const StringStorageElement other) const

This file is part of alaCarte.

alaCarte is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

alaCarte is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with alaCarte. If not, see http://www.gnu.org/licenses/.

Copyright alaCarte 2012-2013 Simon Dreher, Florian Jacob, Tobias Kahlert, Patrick Niklaus, Bernhard Scheirle, Lisa Winter Maintainer: Tobias Kahlert Compares two StringStorageElements

Returns
true if both elements are equal

Definition at line 36 of file cached_string.cpp.

Member Data Documentation

const std::size_t CachedString::StringStorageElement::hash

Definition at line 51 of file cached_string.hpp.

const string CachedString::StringStorageElement::value

Definition at line 50 of file cached_string.hpp.


The documentation for this struct was generated from the following files: