mtc_colorset.cpp
Go to the documentation of this file.
1/** @file mtc_colorset.cpp
2
3Implements color sets for multitasking automata
4
5*/
6
7/* FAU Discrete Event Systems Library (libfaudes)
8
9 Copyright (C) 2008 Matthias Singer
10 Exclusive copyright is granted to Klaus Schmidt
11
12 This library is free software; you can redistribute it and/or
13 modify it under the terms of the GNU Lesser General Public
14 License as published by the Free Software Foundation; either
15 version 2.1 of the License, or (at your option) any later version.
16
17 This library is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
21
22 You should have received a copy of the GNU Lesser General Public
23 License along with this library; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
25
26
27#include "mtc_colorset.h"
28
29
30
31namespace faudes {
32
33// register
35
36
37// std faudes type (cannot do New() with macro)
43
44
45// msColorSymbolTable (static)
47
48// DoCopy()
49void ColorSet::DoCopy(const ColorSet& rSourceSet) {
50 // call base
51 NameSet::DoCopy(rSourceSet);
52}
53
54// DoMove()
55void ColorSet::DoMove(ColorSet& rSourceSet) {
56 // call base
57 NameSet::DoMove(rSourceSet);
58}
59
60// Colorset::New()
61ColorSet* ColorSet::New(void) const {
62 ColorSet* res = new ColorSet();
64 return res;
65}
66
67
68// StaticSymbolTablep()
72
73// ColorSymbolTablep()
75 mpSymbolTable = pSymTab;
76}
77
78// operators
79ColorSet ColorSet::operator * (const ColorSet& rOtherSet) const {
80 FD_DC("ColorSet(" << this << ")::operator * (" << &rOtherSet << ")");
81 ColorSet res;
82 res.Copy( NameSet::operator * (rOtherSet) );
83 return res;
84}
85
86// operator +
87ColorSet ColorSet::operator + (const ColorSet& rOtherSet) const {
88 FD_DC("ColorSet(" << this << ")::operator + (" << &rOtherSet << ")");
89 ColorSet res;
90 res.Copy( NameSet::operator + (rOtherSet) );
91 return res;
92}
93
94// operator -
95ColorSet ColorSet::operator - (const ColorSet& rOtherSet) const {
96 FD_DC("ColorSet(" << this << ")::operator - (" << &rOtherSet << ")");
97 ColorSet res;
98 res.Copy( NameSet::operator - (rOtherSet) );
99 return res;
100}
101
102// operator <=
103bool ColorSet::operator <= (const ColorSet& rOtherSet) const {
104 return NameSet::operator <= (rOtherSet);
105}
106
107// operator >=
108bool ColorSet::operator >= (const ColorSet& rOtherSet) const {
109 return NameSet::operator >= (rOtherSet);
110}
111
112} // namespace faudes
#define FD_DC(message)
#define FAUDES_TYPE_IMPLEMENTATION_MOVE(ftype, ctype, cbase)
Definition cfl_types.h:959
#define FAUDES_TYPE_IMPLEMENTATION_EQUAL(ftype, ctype, cbase)
Definition cfl_types.h:967
#define FAUDES_TYPE_IMPLEMENTATION_CAST(ftype, ctype, cbase)
Definition cfl_types.h:948
#define FAUDES_TYPE_IMPLEMENTATION_ASSIGN(ftype, ctype, cbase)
Definition cfl_types.h:951
#define FAUDES_TYPE_IMPLEMENTATION_NEWCOPY(ftype, ctype, cbase)
Definition cfl_types.h:946
void DoCopy(const ColorSet &rSourceSet)
bool operator<=(const ColorSet &rOtherSet) const
bool operator>=(const ColorSet &rOtherSet) const
ColorSet operator*(const ColorSet &rOtherSet) const
static SymbolTable * StaticSymbolTablep(void)
ColorSet operator-(const ColorSet &rOtherSet) const
void ColorSymbolTablep(SymbolTable *pSymTab)
void DoMove(ColorSet &rSourceSet)
static SymbolTable msSymbolTable
ColorSet operator+(const ColorSet &rOtherSet) const
void DoCopy(const NameSet &rSourceSet)
bool operator<=(const NameSet &rOtherSet) const
void DoMove(NameSet &rSourceSet)
bool operator>=(const NameSet &rOtherSet) const
SymbolTable * mpSymbolTable
virtual Type & Copy(const Type &rSrc)
Definition cfl_types.cpp:82
virtual Type * New(void) const
Definition cfl_types.cpp:54
AutoRegisterType< ColorSet > gRtiColorset("ColorSet")

libFAUDES 2.34d --- 2026.03.11 --- c++ api documentaion by doxygen