Orbiter 2022
Combinatorial Objects
extension.cpp
Go to the documentation of this file.
1// extension.cpp
2//
3// Anton Betten
4// Dec 19, 2011
5
7#include "discreta/discreta.h"
10
11using namespace std;
12
13namespace orbiter {
14namespace layer4_classification {
15namespace poset_classification {
16
17
19{
20 pt = -1;
21 orbit_len = 0;
23 data = 0;
24 data1 = 0;
25 data2 = 0;
26}
27
29{
30}
31
33{
34 return pt;
35}
36
38{
39 extension::pt = pt;
40}
41
43{
44 return type;
45}
46
47void extension::set_type(int type)
48{
49 extension::type = type;
50}
51
53{
54 return orbit_len;
55}
56
57void extension::set_orbit_len(int orbit_len)
58{
59 extension::orbit_len = orbit_len;
60}
61
63{
64 return data;
65}
66
67void extension::set_data(int data)
68{
69 extension::data = data;
70}
71
72
74{
75 return data1;
76}
77
78void extension::set_data1(int data1)
79{
80 extension::data1 = data1;
81}
82
84{
85 return data2;
86}
87
88void extension::set_data2(int data2)
89{
90 extension::data2 = data2;
91}
92
93
94void print_extension_type(ostream &ost, int t)
95{
97 ost << " unprocessed";
98 }
99 else if (t == EXTENSION_TYPE_EXTENSION) {
100 ost << " extension";
101 }
102 else if (t == EXTENSION_TYPE_FUSION) {
103 ost << " fusion";
104 }
105 else if (t == EXTENSION_TYPE_PROCESSING) {
106 ost << " processing";
107 }
108 else if (t == EXTENSION_TYPE_NOT_CANONICAL) {
109 ost << " not canonical";
110 }
111 else {
112 ost << "type=" << t;
113 }
114}
115
116
117}}}
118
119
the orbiter library for the classification of combinatorial objects
#define EXTENSION_TYPE_PROCESSING
#define EXTENSION_TYPE_FUSION
#define EXTENSION_TYPE_UNPROCESSED
#define EXTENSION_TYPE_NOT_CANONICAL
#define EXTENSION_TYPE_EXTENSION