Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 PROC_MOBJECT_SESSION_ALLOCATION_H
31 #define PROC_MOBJECT_SESSION_ALLOCATION_H
32 
34 
35 #include <string>
36 using std::string;
37 
38 
39 namespace proc {
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 proc::mobject::session
67 #endif
const string & getRepr() const
Definition: allocation.hpp:59
Positioning specification, possibly chained to further specifications.
Definition: locatingpin.hpp:97
Implementing the Placement mechanics.
virtual void intersect(LocatingSolution &) const
Definition: allocation.cpp:37
string repr
human readable representation of the condition characterising this allocation, e.g.
Definition: allocation.hpp:54
Namespace of Session and user visible high-level objects.
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63
virtual Allocation * clone() const =0
Interface (abstract): any objective, constraint or wish of placing a MObject in a specific way...
Definition: allocation.hpp:48