Frobby
0.9.5
src
ParameterGroup.h
Go to the documentation of this file.
1
/* Frobby: Software for monomial ideal computations.
2
Copyright (C) 2007 Bjarke Hammersholt Roune (www.broune.com)
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program. If not, see http://www.gnu.org/licenses/.
16
*/
17
#ifndef PARAMETER_GROUP_GUARD
18
#define PARAMETER_GROUP_GUARD
19
20
#include "
Parameter.h
"
21
#include <vector>
22
23
class
ParameterGroup
{
24
public
:
25
typedef
vector<Parameter*>::iterator
iterator
;
26
27
iterator
begin
() {
return
_parameters
.begin();}
28
iterator
end
() {
return
_parameters
.end();}
29
30
ParameterGroup
();
31
virtual
~ParameterGroup
();
32
33
void
addParameter
(
Parameter
*
parameter
);
34
35
void
obtainParameters
(vector<Parameter*>&
parameters
);
36
37
virtual
void
getValue
(
string
& str)
const
;
38
39
private
:
40
vector<Parameter*>
_parameters
;
41
};
42
43
#endif
nameFactoryRegister
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...
Definition
NameFactory.h:142
Parameter.h
ParameterGroup
Definition
ParameterGroup.h:23
ParameterGroup::iterator
vector< Parameter * >::iterator iterator
Definition
ParameterGroup.h:25
ParameterGroup::getValue
virtual void getValue(string &str) const
Definition
ParameterGroup.cpp:27
ParameterGroup::begin
iterator begin()
Definition
ParameterGroup.h:27
ParameterGroup::addParameter
void addParameter(Parameter *parameter)
Definition
ParameterGroup.cpp:31
ParameterGroup::end
iterator end()
Definition
ParameterGroup.h:28
ParameterGroup::~ParameterGroup
virtual ~ParameterGroup()
Definition
ParameterGroup.cpp:24
ParameterGroup::ParameterGroup
ParameterGroup()
Definition
ParameterGroup.cpp:21
ParameterGroup::_parameters
vector< Parameter * > _parameters
Definition
ParameterGroup.h:40
ParameterGroup::obtainParameters
void obtainParameters(vector< Parameter * > ¶meters)
Definition
ParameterGroup.cpp:37
Parameter
Definition
Parameter.h:24
Generated by
1.9.8