27 #include "../../../common/STLUtils.h"
28 #include "../../../se/Symbolizer.h"
41 for(std::size_t i = 0; i < rhs.
m_symbs.size(); ++i)
42 addSymbolizer(rhs.
m_symbs[i]->clone());
62 return m_symbs.size();
67 assert(i < m_symbs.size());
74 return getSymbolizer(i);
86 m_symbs.push_back(symb);
92 assert(i < m_symbs.size());
100 assert(i < m_symbs.size());
103 m_symbs.erase(m_symbs.begin() + i);
108 assert(first < m_symbs.size());
109 assert(second < m_symbs.size());
116 m_symbs[first] = m_symbs[second];
117 m_symbs[second] = symb;
Symbol * clone() const
It creates a new copy of this object.
void removeSymbolizer(const std::size_t &i)
It removes the specified Symbolizer from the list of Symbolizers of the symbol.
void addSymbolizer(te::se::Symbolizer *symb)
It adds the given Symbolizer to the list of Symbolizers of the symbol.
std::vector< te::se::Symbolizer * > m_symbs
Set of symbolizers that compose the symbol.
te::se::Symbolizer * getSymbolizer(const std::size_t &i) const
It returns the n-th Symbolizer.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
A Symbolizer describes how a feature is to appear on a map.
Symbol()
Default constructor.
void setInfo(const SymbolInfo &info)
It sets the information associated to the symbol.
This class represents a symbol. TODO: More description!
void setSymbolizer(const std::size_t &i, te::se::Symbolizer *symb)
It sets the given Symbolizer at the given position.
te::se::Symbolizer * operator[](const std::size_t &i) const
It returns the n-th Symbolizer.
const SymbolInfo & getInfo() const
It return the information associated to the symbol.
std::size_t getSymbolizersCount() const
It returns the number of Symbolizers that compose of the symbol.
This class represents a symbol.
Information about a given Symbol.
void swapSymbolizers(const std::size_t &first, const std::size_t &second)
It swaps the position of the Symbolizers.
const std::vector< te::se::Symbolizer * > & getSymbolizers() const
It returns the list of Symbolizers that compose the symbol.