22 #ifndef RENDER_ATTRIBUTES_HPP 23 #define RENDER_ATTRIBUTES_HPP 26 #include <boost/unordered_map.hpp> 27 #include <boost/pool/object_pool.hpp> 63 template<
typename IdType>
67 map.insert(std::make_pair(
id, newStyle));
boost::object_pool< Style > stylePool
TESTABLE const boost::unordered_map< WayId, Style * > & getWayMap() const
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how...
TESTABLE Style * getCanvasStyle()
boost::unordered_map< NodeId, Style * > nodeStyles
TESTABLE Style * getNewStyle(NodeId id)
TESTABLE const boost::unordered_map< RelId, Style * > & getRelationMap() const
TESTABLE const boost::unordered_map< NodeId, Style * > & getNodeMap() const
TESTABLE Style * getNewStyle(WayId id)
static const unsigned int ChunkSize
A Style stores the MapCSS properties for a single Node or Way, or a Relation of type multipolygon...
boost::unordered_map< RelId, Style * > relationStyles
Style * newStyle(IdType id, boost::unordered_map< IdType, Style * > &map)
boost::unordered_map< WayId, Style * > wayStyles
TESTABLE Style * getNewStyle(RelId id)