nomlib
Loading...
Searching...
No Matches
nom::ColorDatabase Class Reference

Container for accessing colors by name (string). More...

#include <ColorDatabase.hpp>

Public Types

typedef ColorDatabase self_type
typedef std::pair< std::string, Color4i > pair
typedef std::map< std::string, Color4i > value_type

Public Member Functions

 ColorDatabase (void)
 Default constructor.
 ~ColorDatabase (void)
 Destructor.
const Color4i & find_color (const std::string &key)
bool append_color (const std::string &key, const Color4i &c)
void erase_color (const std::string &key)

Private Attributes

value_type colors_

Detailed Description

Container for accessing colors by name (string).

See also
Inspired by http://docs.wxwidgets.org/trunk/classwx_colour_database.html

Definition at line 43 of file ColorDatabase.hpp.

Member Typedef Documentation

◆ pair

typedef std::pair<std::string, Color4i> nom::ColorDatabase::pair

Definition at line 48 of file ColorDatabase.hpp.

◆ self_type

typedef ColorDatabase nom::ColorDatabase::self_type

Definition at line 46 of file ColorDatabase.hpp.

◆ value_type

typedef std::map<std::string, Color4i> nom::ColorDatabase::value_type

Definition at line 49 of file ColorDatabase.hpp.

Member Data Documentation

◆ colors_

value_type nom::ColorDatabase::colors_
private

Definition at line 64 of file ColorDatabase.hpp.


The documentation for this class was generated from the following file: