faudes::ColorSet Class Reference
|
Public Member Functions | |
ColorSet (void) | |
Constructor for ColorSet with static ColorSymbolTable. | |
ColorSet (SymbolTable *pSymTab) | |
Constructor for ColorSet with specified symbol table. | |
ColorSet (const std::string &rFilename, const std::string &rLabel="Colors") | |
Constructor for ColorSet with static ColorSymbolTable. | |
virtual | ~ColorSet (void) |
void | ColorSymbolTablep (SymbolTable *pSymTab) |
Reset pointer mpSymbolTable. | |
ColorSet | operator* (const ColorSet &rOtherSet) const |
Set intersection operator. | |
ColorSet | operator+ (const ColorSet &rOtherSet) const |
Set union operator. | |
ColorSet | operator- (const ColorSet &rOtherSet) const |
Set difference operator. | |
bool | operator<= (const ColorSet &rOtherSet) const |
Test for subset. | |
bool | operator>= (const ColorSet &rOtherSet) const |
Test for superset. | |
Static Public Member Functions | |
static SymbolTable * | StaticSymbolTablep (void) |
Get pointer to static ColorSymbolTable. | |
Protected Member Functions | |
virtual void | DoAssign (const ColorSet &rSourceSet) |
Assign from other color set. | |
Static Protected Attributes | |
static SymbolTable | msSymbolTable |
Static global symbol table for color names. |
Container for colors: this is a NameSet with its own static symboltable.
Definition at line 41 of file mtc_colorset.h.
faudes::ColorSet::ColorSet | ( | void | ) | [inline] |
Constructor for ColorSet with static ColorSymbolTable.
Definition at line 50 of file mtc_colorset.h.
faudes::ColorSet::ColorSet | ( | SymbolTable * | pSymTab | ) | [inline] |
Constructor for ColorSet with specified symbol table.
Definition at line 58 of file mtc_colorset.h.
faudes::ColorSet::ColorSet | ( | const std::string & | rFilename, | |
const std::string & | rLabel = "Colors" | |||
) | [inline] |
Constructor for ColorSet with static ColorSymbolTable.
This version reads a file with given label to find the colors inside the file.
rFilename | Filename | |
rLabel | Token label for the colors in the file; default value "Colors" |
Definition at line 73 of file mtc_colorset.h.
virtual faudes::ColorSet::~ColorSet | ( | void | ) | [inline, virtual] |
Definition at line 77 of file mtc_colorset.h.
void faudes::ColorSet::ColorSymbolTablep | ( | SymbolTable * | pSymTab | ) |
Reset pointer mpSymbolTable.
pSymTab | Pointer to new symbol table |
Definition at line 64 of file mtc_colorset.cpp.
void faudes::ColorSet::DoAssign | ( | const ColorSet & | rSourceSet | ) | [protected, virtual] |
Assign from other color set.
rSourceSet | Destination to copy from |
Definition at line 45 of file mtc_colorset.cpp.
Set intersection operator.
Definition at line 69 of file mtc_colorset.cpp.
Set difference operator.
Definition at line 85 of file mtc_colorset.cpp.
bool faudes::ColorSet::operator<= | ( | const ColorSet & | rOtherSet | ) | const |
Test for subset.
Definition at line 93 of file mtc_colorset.cpp.
bool faudes::ColorSet::operator>= | ( | const ColorSet & | rOtherSet | ) | const |
Test for superset.
Definition at line 98 of file mtc_colorset.cpp.
SymbolTable * faudes::ColorSet::StaticSymbolTablep | ( | void | ) | [static] |
Get pointer to static ColorSymbolTable.
Definition at line 59 of file mtc_colorset.cpp.
SymbolTable faudes::ColorSet::msSymbolTable [static, protected] |
Static global symbol table for color names.
Definition at line 130 of file mtc_colorset.h.
libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen