27 #include "../common/STLUtils.h" 
   54   assert(name.empty() == 
false);
 
   62   m_parent->disconnect(
this);
 
   64   m_parent->push_back(
this);
 
   79   assert(colorScheme && (colorScheme->
getParent() == 0));
 
   80   m_colorSchemes.push_back(colorScheme);
 
   86   std::vector<ColorScheme*>::iterator it = std::find(m_colorSchemes.begin(), m_colorSchemes.end(), colorScheme);
 
   88   if(it != m_colorSchemes.end())
 
   89     m_colorSchemes.erase(it);
 
   94   return m_colorSchemes;
 
void disconnect(ColorScheme *colorScheme)
It just remove the reference to the informed color scheme. 
 
const std::vector< ColorScheme * > & getColorSchemes() const 
It returns a reference to the list of color schemes belonging to this group. 
 
This class represents a group of color schemes. 
 
~ColorSchemeGroup()
Destructor. 
 
const std::string & getName() const 
It returns the group name. 
 
It models the concept of color scheme. 
 
void setParent(ColorSchemeGroup *parent)
It sets the parent color scheme group for this scheme. 
 
ColorSchemeGroup(const std::string &name)
It initializes a new ColorSchemeGroup and adds it to the parent catalog. 
 
void setName(const std::string &name)
It sets the group name and adjust its entry in its the catalog if needed. 
 
void push_back(ColorScheme *colorScheme)
It adds a new color scheme to the group and sets its relationship. 
 
const std::string & getDescription() const 
It returns the group description. 
 
The concept of color scheme. 
 
ColorSchemeGroup * getParent() const 
It returns the parent scheme group or NULL if it doesn't belong to a group. 
 
A catalog for color schemes. 
 
void setParent(ColorSchemeCatalog *parent)
It sets the parent color catalog for this group. 
 
ColorSchemeCatalog * getParent() const 
It returns the parent catalog or NULL if it doesn't belong to a catalog. 
 
void setDescription(const std::string &d)
It sets the group description. 
 
A catalog for color schemes groups. 
 
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...