SheafSystem  0.0.0.0
poset_joiner.h
1 
2 //
3 // Copyright (c) 2014 Limit Point Systems, Inc.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 
18 // Interface for class POSET_JOINER
19 
20 #ifndef POSET_JOINER_H
21 #define POSET_JOINER_H
22 
23 #ifndef SHEAF_DLL_SPEC_H
24 #include "SheafSystem/sheaf_dll_spec.h"
25 #endif
26 
27 #ifndef POD_TYPES_H
28 #include "SheafSystem/pod_types.h"
29 #endif
30 
31 namespace sheaf
32 {
33 
34 class abstract_poset_member;
35 class tern;
36 class poset_state_handle;
37 class scoped_index;
38 class subposet;
39 
43 class SHEAF_DLL_SPEC poset_joiner
44 {
45 public:
46 
50  poset_joiner(const poset_state_handle* xhost);
51 
55  ~poset_joiner();
56 
60  void join(const scoped_index* xexpansion,
61  int xexpansion_ct,
62  const tern& xgreatest,
63  abstract_poset_member& xresult);
64 
68  void join(subposet* xexpansion,
69  const tern& xgreatest,
70  abstract_poset_member& xresult);
71 
75  poset_state_handle* host() const;
76 
77 private:
78 
82  poset_state_handle* _host;
83 };
84 
85 
86 } // namespace sheaf
87 
88 #endif // ifndef POSET_JOINER_H
A client handle for a subposet.
Definition: subposet.h:86
A three state "bool". Does not provide the operations of ternary logic and is intended for use mostly...
Definition: tern.h:45
A client handle for a general, abstract partially order set.
An index within the external ("client") scope of a given id space.
Definition: scoped_index.h:116
Namespace for the sheaves component of the sheaf system.
An abstract client handle for a member of a poset.
Computes the join of given poset members.
Definition: poset_joiner.h:43