Lumiera  0.pre.03
»edit your freedom«
allocation.hpp
Go to the documentation of this file.
1 /*
2  ALLOCATION.hpp - objective to place a MObject in a specific way
3 
4  Copyright (C) Lumiera.org
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
30 #ifndef STEAM_MOBJECT_SESSION_ALLOCATION_H
31 #define STEAM_MOBJECT_SESSION_ALLOCATION_H
32 
34 
35 #include <string>
36 using std::string;
37 
38 
39 namespace steam {
40 namespace mobject {
41 namespace session {
42 
43 
48  class Allocation : public LocatingPin
49  {
50  protected:
54  string repr;
55 
56  virtual void intersect (LocatingSolution&) const;
57 
58  public:
59  const string& getRepr () const { return repr; }
60 
61  virtual Allocation* clone () const = 0;
62  };
63 
64 
65 
66 }}} // namespace steam::mobject::session
67 #endif
virtual void intersect(LocatingSolution &) const
Definition: allocation.cpp:37
Positioning specification, possibly chained to further specifications.
Definition: locatingpin.hpp:97
Steam-Layer implementation namespace root.
Implementing the Placement mechanics.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
Interface (abstract): any objective, constraint or wish of placing a MObject in a specific way...
Definition: allocation.hpp:48
string repr
human readable representation of the condition characterising this allocation, e.g.
Definition: allocation.hpp:54