Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
colormap.h
1 
2 #ifndef colormap_H_
3 #define colormap_H_
4 
5 #include <string>
6 #include <SFML/Graphics.hpp>
7 #include <vector>
8 #include <unordered_map>
9 
20 class colormap {
21  private:
22  std::unordered_map<std::string,sf::Color> colorAssignment;
23  public:
31  colormap(std::vector<std::string>& givenKmers, std::vector<sf::Color>& givenColorlist);
32 
36  colormap();
37 
44  void updateAssignment(std::vector<std::string>& givenKmers, std::vector<sf::Color>& givenColorlist);
45 
53  sf::Color Map(std::string Kmer);
54 
61  std::unordered_map<std::string,sf::Color> giveAssignment();
62 };
63 
64 #endif //colormap_H_
std::unordered_map< std::string, sf::Color > giveAssignment()
Definition: colormap.cc:54
This Class stores an unordered_map from strings to colors and a method to map strings (expecially kme...
Definition: colormap.h:20
colormap()
standard Constructor
Definition: colormap.cc:17
void updateAssignment(std::vector< std::string > &givenKmers, std::vector< sf::Color > &givenColorlist)
Definition: colormap.cc:24
sf::Color Map(std::string Kmer)
Definition: colormap.cc:43