#include <map>
#include <string>
-#include "alg/color.hpp"
-#include "alg/sequence.hpp"
+#include "color.hpp"
+#include "sequence.hpp"
struct DefaultColorMap;
struct DefaultColorMap
{
typedef std::map<std::string, DefaultColorMap> color_map_type;
typedef color_map_type::iterator iterator;
+ typedef color_map_type::const_iterator const_iterator;
DefaultColorMap();
//! initialize color map with a default color
DefaultColorMap(const Color &);
{
public:
AnnotationColors();
- AnnotationColors(AnnotationColors &);
+ AnnotationColors(const AnnotationColors &);
+ // clear all the contents of our mappers
+ void clear();
//! set default color
void setColor(Color &);
//! retreive default color
void erase(const std::string &type, const std::string& instance);
//! lookup an annotation color
- Color lookup(const annot &);
- Color lookup(const std::string &, const std::string &);
+ Color lookup(const annot &) const;
+ Color lookup(const std::string &, const std::string &) const;
private:
// nested maps, with default?
DefaultColorMap root_map;