Orbiter 2022
Combinatorial Objects
regular_linear_space_description.cpp
Go to the documentation of this file.
1/*
2 * regular_linear_space_description.cpp
3 *
4 * Created on: Jun 17, 2020
5 * Author: betten
6 */
7
8
9
10
11
12
13#include "orbiter.h"
14
15using namespace std;
16
17namespace orbiter {
18namespace layer5_applications {
19namespace apps_combinatorics {
20
21
23{
24 f_m = FALSE;
25 m = 0;
26 f_n = FALSE;
27 n = 0;
28 f_k = FALSE;
29 k = 0;
30 f_r = FALSE;
31 r = 0;
33 target_size = 0;
34
35 starter_size = 0;
37
39 Control = NULL;
40
41};
42
44{
47 }
48 if (Control) {
50 }
51
52};
53
54
56 int argc, std::string *argv,
57 int verbose_level)
58{
59 int i;
61
62 cout << "regular_linear_space_description::read_arguments" << endl;
63 for (i = 0; i < argc; i++) {
64
65 if (ST.stringcmp(argv[i], "-m") == 0) {
66 f_m = TRUE;
67 m = ST.strtoi(argv[++i]);
68 cout << "-m " << m << endl;
69 }
70 else if (ST.stringcmp(argv[i], "-n") == 0) {
71 f_n = TRUE;
72 n = ST.strtoi(argv[++i]);
73 cout << "-n " << n << endl;
74 }
75 else if (ST.stringcmp(argv[i], "-k") == 0) {
76 f_k = TRUE;
77 k = ST.strtoi(argv[++i]);
78 cout << "-k " << k << endl;
79 }
80 else if (ST.stringcmp(argv[i], "-r") == 0) {
81 f_r = TRUE;
82 r = ST.strtoi(argv[++i]);
83 cout << "-r " << r << endl;
84 }
85 else if (ST.stringcmp(argv[i], "-target_size") == 0) {
87 target_size = ST.strtoi(argv[++i]);
88 cout << "-target_size " << target_size << endl;
89 }
90 else if (ST.stringcmp(argv[i], "-control") == 0) {
93 i += Control->read_arguments(argc - (i + 1),
94 argv + i + 1, verbose_level);
95
96 cout << "done reading -poset_classification_control " << endl;
97 cout << "i = " << i << endl;
98 cout << "argc = " << argc << endl;
99 if (i < argc) {
100 cout << "next argument is " << argv[i] << endl;
101 }
102 }
103 else if (ST.stringcmp(argv[i], "-end") == 0) {
104 cout << "-end" << endl;
105 break;
106 }
107 else {
108 cout << "regular_linear_space_description::read_arguments "
109 "unrecognized option " << argv[i] << endl;
110 }
111 } // next i
112 cout << "regular_linear_space_description::read_arguments done" << endl;
113 return i + 1;
114}
115
116}}}
117
functions related to strings and character arrays
to control the behavior of the poset classification algorithm
#define FREE_int(p)
Definition: foundations.h:640
#define NEW_OBJECT(type)
Definition: foundations.h:638
#define FREE_OBJECT(p)
Definition: foundations.h:651
#define TRUE
Definition: foundations.h:231
#define FALSE
Definition: foundations.h:234
the orbiter library for the classification of combinatorial objects