libFAUDES

Sections

Index

faudes::ColorSet Class Reference
[Multitasking PlugIn]

#include <mtc_colorset.h>

Inherits faudes::NameSet.

List of all members.


Detailed Description

Container for colors: this is a NameSet with its own static symboltable.

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.
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 equality.
bool operator!= (const ColorSet &rOtherSet) const
 Test for unequality.
bool operator<= (const ColorSet &rOtherSet) const
 Test for subset.
bool operator>= (const ColorSet &rOtherSet) const
 Test for superset.

Static Public Member Functions

static SymbolTableStaticSymbolTablep (void)
 Get pointer to static ColorSymbolTable.

Static Private Attributes

static SymbolTable msSymbolTable
 Static global symbol table for color names.

Constructor & Destructor Documentation

faudes::ColorSet::ColorSet ( void   )  [inline]

Constructor for ColorSet with static ColorSymbolTable.

faudes::ColorSet::ColorSet ( SymbolTable pSymTab  )  [inline]

Constructor for ColorSet with specified symbol table.

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.

Parameters:
rFilename Filename
rLabel Token label for the colors in the file; default value "Colors"


Member Function Documentation

SymbolTable * faudes::ColorSet::StaticSymbolTablep ( void   )  [static]

Get pointer to static ColorSymbolTable.

Returns:
Pointer to static ColorSymbolTable

void faudes::ColorSet::ColorSymbolTablep ( SymbolTable pSymTab  ) 

Reset pointer mpSymbolTable.

Parameters:
pSymTab Pointer to new symbol table

ColorSet faudes::ColorSet::operator* ( const ColorSet rOtherSet  )  const

Set intersection operator.

Returns:
Intersection ColorSet

ColorSet faudes::ColorSet::operator+ ( const ColorSet rOtherSet  )  const

Set union operator.

Returns:
Union Set

ColorSet faudes::ColorSet::operator- ( const ColorSet rOtherSet  )  const

Set difference operator.

Returns:
Difference ColorSet

bool faudes::ColorSet::operator== ( const ColorSet rOtherSet  )  const

Test for equality.

bool faudes::ColorSet::operator!= ( const ColorSet rOtherSet  )  const

Test for unequality.

bool faudes::ColorSet::operator<= ( const ColorSet rOtherSet  )  const

Test for subset.

bool faudes::ColorSet::operator>= ( const ColorSet rOtherSet  )  const

Test for superset.


Member Data Documentation

Static global symbol table for color names.


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

libFAUDES 2.13a c++ source docu by doxygen 1.5.6