#include <mtc_colorset.h>

Public Member Functions

 ColorSet (void)
 
 ColorSet (SymbolTable *pSymTab)
 
 ColorSet (const ColorSet &rSourceSet)
 
 ColorSet (const std::string &rFilename, const std::string &rLabel="Colors")
 
virtual ~ColorSet (void)
 
void ColorSymbolTablep (SymbolTable *pSymTab)
 
ColorSet operator* (const ColorSet &rOtherSet) const
 
ColorSet operator+ (const ColorSet &rOtherSet) const
 
ColorSet operator- (const ColorSet &rOtherSet) const
 
bool operator<= (const ColorSet &rOtherSet) const
 
bool operator>= (const ColorSet &rOtherSet) const
 
- Public Member Functions inherited from faudes::NameSet
 NameSet (void)
 
 NameSet (const NameSet &rOtherSet)
 
 NameSet (const std::string &rFilename, const std::string &rLabel="")
 
virtual ~NameSet (void)
 
SymbolTableSymbolTablep (void) const
 
void SymbolTablep (SymbolTable *pSymTab)
 
bool Insert (const Idx &rIndex)
 
Idx Insert (const std::string &rName)
 
virtual void InsertSet (const NameSet &rOtherSet)
 
virtual void InsertSet (const TBaseSet< Idx > &rOtherSet)
 
virtual bool Erase (const Idx &rIndex)
 
virtual bool Erase (const std::string &rName)
 
virtual NameSet::Iterator Erase (const Iterator &pos)
 
void EraseSet (const NameSet &rOtherSet)
 
virtual void EraseSet (const TBaseSet< Idx > &rOtherSet)
 
void RestrictSet (const NameSet &rOtherSet)
 
virtual void RestrictSet (const TBaseSet< Idx > &rOtherSet)
 
void SymbolicName (Idx index, const std::string &rName)
 
void SymbolicName (const std::string &rName, const std::string &rNewName)
 
std::string SymbolicName (Idx index) const
 
Idx Index (const std::string &rName) const
 
bool Exists (const Idx &rIndex) const
 
bool Exists (const std::string &rName) const
 
NameSet::Iterator Find (const Idx &rIndex) const
 
NameSet::Iterator Find (const std::string &rName) const
 
NameSet operator+ (const NameSet &rOtherSet) const
 
NameSet operator- (const NameSet &rOtherSet) const
 
NameSet operator* (const NameSet &rOtherSet) const
 
bool operator<= (const NameSet &rOtherSet) const
 
bool operator>= (const NameSet &rOtherSet) const
 
std::string Str (const Idx &rIndex) const
 
- Public Member Functions inherited from faudes::TBaseSet< Idx >
 TBaseSet (void)
 
 TBaseSet (const TBaseSet &rOtherSet)
 
 TBaseSet (const std::string &rFilename, const std::string &rLabel="BaseSet")
 
virtual ~TBaseSet (void)
 
const std::string & Name (void) const
 
void Name (const std::string &rName)
 
virtual void Clear (void)
 
Idx Size (void) const
 
bool Empty (void) const
 
virtual std::string Str (const Idx &rElem) const
 
Iterator Begin (void) const
 
Iterator End (void) const
 
virtual bool Valid (const Idx &rElem) const
 
virtual bool Erase (const Idx &rElem)
 
virtual Iterator Erase (const Iterator &pos)
 
virtual void EraseSet (const TBaseSet &rOtherSet)
 
virtual void RestrictSet (const TBaseSet &rOtherSet)
 
virtual bool Disjoint (const TBaseSet &rOtherSet) const
 
virtual bool Insert (const Idx &rElem)
 
virtual Iterator Inject (const Iterator &pos, const Idx &rElem)
 
virtual void Inject (const Idx &rElem)
 
virtual void InsertSet (const TBaseSet &rOtherSet)
 
bool Exists (const Idx &rElem) const
 
Iterator Find (const Idx &rElem) const
 
TBaseSet operator+ (const TBaseSet &rOtherSet) const
 
TBaseSet operator- (const TBaseSet &rOtherSet) const
 
TBaseSet operator* (const TBaseSet &rOtherSet) const
 
bool operator<= (const TBaseSet &rOtherSet) const
 
bool operator>= (const TBaseSet &rOtherSet) const
 
bool operator< (const TBaseSet &rOtherSet) const
 
void DValid (const std::string &rMessage="") const
 
void Detach (DetachMode flag=AttrIncl) const
 
void Lock (void) const
 
virtual const AttributeVoidAttributeType (void) const
 
virtual bool AttributeTest (const Type &rAttr) const
 
virtual TBaseSetAssignWithoutAttributes (const TBaseSet &rSourceSet)
 
virtual void Attributes (const TBaseSet &rOtherSet)
 
Idx AttributesSize (void) const
 
void ClearAttributes (void)
 
bool EqualAttributes (const TBaseSet &rOtherSet) const
 
virtual AttributeVoidAttributep (const Idx &rElem)
 
virtual const AttributeVoidAttribute (const Idx &rElem) const
 
virtual void Attribute (const Idx &rElem, const Type &rAttr)
 
virtual void AttributeTry (const Idx &rElem, const Type &rAttr)
 
virtual void ClrAttribute (const Idx &rElem)
 
virtual void XElementTag (const std::string &rTag)
 
virtual const std::string & TypeName (void) const
 
virtual void TypeName (const std::string &rType)
 
Typeoperator= (const Type &rSrc)
 
bool operator== (const Type &rOther) const
 
bool operator!= (const Type &rOther) const
 
- Public Member Functions inherited from faudes::Type
 Type (void)
 
 Type (const Type &rType)
 
virtual ~Type (void)
 
virtual TypeNew (void) const
 
virtual TypeCopy (void) const
 
virtual const TypeCast (const Type *pOther) const
 
virtual TypeAssign (const Type &rSrc)
 
Typeoperator= (const Type &rSrc)
 
virtual bool Equal (const Type &rOther) const
 
bool operator== (const Type &rOther) const
 
bool operator!= (const Type &rOther) const
 
void Write (const Type *pContext=0) const
 
void Write (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void Write (const std::string &pFileName, std::ios::openmode openmode) const
 
void Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const
 
void XWrite (const Type *pContext=0) const
 
void XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToString (const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToText (const std::string &rLabel="", const Type *pContext=0) const
 
void DWrite (const Type *pContext=0) const
 
void DWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
void SWrite (TokenWriter &rTw) const
 
void SWrite (void) const
 
std::string ToSText (void) const
 
void Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0)
 
void FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0)
 
void Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 

Static Public Member Functions

static SymbolTableStaticSymbolTablep (void)
 

Protected Member Functions

virtual void DoAssign (const ColorSet &rSourceSet)
 
- Protected Member Functions inherited from faudes::NameSet
void DoAssign (const NameSet &rSourceSet)
 
bool DoEqual (const NameSet &rOtherSet) const
 
virtual void DoWrite (TokenWriter &tw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoDWrite (TokenWriter &tw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoXWrite (TokenWriter &tw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoRead (TokenReader &tr, const std::string &rLabel="", const Type *pContext=0)
 
- Protected Member Functions inherited from faudes::TBaseSet< Idx >
virtual const std::string & XElementTag (void) const
 
virtual void DoSWrite (TokenWriter &rTw) const
 
void DoAssign (const TBaseSet &rSourceSet)
 
bool DoEqual (const TBaseSet &rOtherSet) const
 
void DoAttribute (const Idx &rElem, const Type *pAttr)
 
const AttributeVoidDoAttribute (const Idx &rElem) const
 
AttributeVoidDoAttributeExplicit (const Idx &rElem)
 
TBaseSet< Idx, std::less< Idx > >::Iterator ThisIterator (const typename std::set< Idx, std::less< Idx > >::const_iterator &sit) const
 
void RelinkClients (void)
 
void AttachClient (TBaseSet *pRef) const
 
void DetachClient (TBaseSet *pRef) const
 
void AttachIterator (Iterator *pFit) const
 
void DetachIterator (Iterator *pFit) const
 
virtual const TypeDefinitionTypeDefinitionp (void) const
 
- Protected Member Functions inherited from faudes::Type
void DoAssign (const Type &rSrc)
 
bool DoEqual (const Type &rOther) const
 
virtual Token XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const
 

Static Protected Attributes

static SymbolTable msSymbolTable
 
- Static Protected Attributes inherited from faudes::TBaseSet< Idx >
static std::set< Idx, std::less< Idx > > msEmptySet
 
static std::map< Idx, AttributeVoid * > msEmptyAttributes
 

Additional Inherited Members

- Public Types inherited from faudes::TBaseSet< Idx >
enum  DetachMode
 
- Protected Types inherited from faudes::TBaseSet< Idx >
typedef std::set< Idx, std::less< Idx > >::iterator iterator
 
typedef std::set< Idx, std::less< Idx > >::const_iterator const_iterator
 
typedef std::map< Idx, AttributeVoid * >::iterator aiterator
 
typedef std::map< Idx, AttributeVoid * >::const_iterator const_aiterator
 
- Protected Attributes inherited from faudes::NameSet
SymbolTablempSymbolTable
 
- Protected Attributes inherited from faudes::TBaseSet< Idx >
std::string mMyName
 
std::set< Idx, std::less< Idx > > * pSet
 
std::set< Idx, std::less< Idx > > * mpSet
 
std::map< Idx, AttributeVoid * > * pAttributes
 
std::map< Idx, AttributeVoid * > * mpAttributes
 
TBaseSet< Idx, std::less< Idx > > * pHostSet
 
std::list< TBaseSet< Idx, std::less< Idx > > * >::iterator mClientRecord
 
std::list< TBaseSet< Idx, std::less< Idx > > * > * mpClients
 
bool mDetached
 
bool mLocked
 
std::set< Iterator * > mIterators
 
std::string mXElementTagDef
 

Detailed Description

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

Definition at line 41 of file mtc_colorset.h.

Constructor & Destructor Documentation

◆ ColorSet() [1/4]

faudes::ColorSet::ColorSet ( void  )
inline

Constructor for ColorSet with static ColorSymbolTable.

Definition at line 50 of file mtc_colorset.h.

◆ ColorSet() [2/4]

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

Constructor for ColorSet with specified symbol table.

Definition at line 58 of file mtc_colorset.h.

◆ ColorSet() [3/4]

faudes::ColorSet::ColorSet ( const ColorSet rSourceSet)
inline

Copy-onstructor for ColorSet

Definition at line 66 of file mtc_colorset.h.

◆ ColorSet() [4/4]

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
rFilenameFilename
rLabelToken label for the colors in the file; default value "Colors"

Definition at line 81 of file mtc_colorset.h.

◆ ~ColorSet()

virtual faudes::ColorSet::~ColorSet ( void  )
inlinevirtual

Definition at line 85 of file mtc_colorset.h.

Member Function Documentation

◆ ColorSymbolTablep()

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

Reset pointer mpSymbolTable

Parameters
pSymTabPointer to new symbol table

Definition at line 64 of file mtc_colorset.cpp.

◆ DoAssign()

void faudes::ColorSet::DoAssign ( const ColorSet rSourceSet)
protectedvirtual

Assign from other color set.

Parameters
rSourceSetDestination to copy from
Returns
ref to this set

Definition at line 45 of file mtc_colorset.cpp.

◆ operator*()

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

Set intersection operator

Returns
Intersection ColorSet

Definition at line 69 of file mtc_colorset.cpp.

◆ operator+()

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

Set union operator

Returns
Union Set

Definition at line 77 of file mtc_colorset.cpp.

◆ operator-()

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

Set difference operator

Returns
Difference ColorSet

Definition at line 85 of file mtc_colorset.cpp.

◆ operator<=()

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

Test for subset

Definition at line 93 of file mtc_colorset.cpp.

◆ operator>=()

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

Test for superset

Definition at line 98 of file mtc_colorset.cpp.

◆ StaticSymbolTablep()

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

Get pointer to static ColorSymbolTable

Returns
Pointer to static ColorSymbolTable

Definition at line 59 of file mtc_colorset.cpp.

Member Data Documentation

◆ msSymbolTable

SymbolTable faudes::ColorSet::msSymbolTable
staticprotected

Static global symbol table for color names

Definition at line 138 of file mtc_colorset.h.


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

libFAUDES 2.33c --- 2025.05.15 --- c++ api documentaion by doxygen