Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
4c3ef6be
Commit
4c3ef6be
authored
8 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
add NPDA callback to astat
parent
bd93dc21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
astat2/src/AutomataStat.cpp
+11
-0
11 additions, 0 deletions
astat2/src/AutomataStat.cpp
astat2/src/AutomataStat.h
+1
-0
1 addition, 0 deletions
astat2/src/AutomataStat.h
with
12 additions
and
0 deletions
astat2/src/AutomataStat.cpp
+
11
−
0
View file @
4c3ef6be
...
...
@@ -15,6 +15,7 @@
#include
<automaton/PDA/InputDrivenDPDA.h>
#include
<automaton/PDA/DPDA.h>
#include
<automaton/PDA/NPDA.h>
void
AutomataStat
::
stat
(
const
automaton
::
Automaton
&
automaton
,
const
AutomataSettings
&
settings
)
{
dispatch
(
automaton
.
getData
(
),
settings
);
...
...
@@ -60,6 +61,16 @@ void AutomataStat::stat ( const automaton::InputDrivenDPDA & automaton, const Au
auto
AutomataStatInputDrivenDPDA
=
AutomataStat
::
RegistratorWrapper
<
void
,
automaton
::
InputDrivenDPDA
>
(
AutomataStat
::
stat
);
void
AutomataStat
::
stat
(
const
automaton
::
NPDA
&
automaton
,
const
AutomataSettings
&
settings
)
{
Printer
::
PrintSet
(
settings
.
states
,
automaton
.
getStates
(
)
);
Printer
::
PrintSet
(
settings
.
finalStates
,
automaton
.
getFinalStates
(
)
);
Printer
::
PrintValue
(
settings
.
initialStates
,
automaton
.
getInitialState
(
)
);
Printer
::
PrintSet
(
settings
.
inputAlphabet
,
automaton
.
getInputAlphabet
(
)
);
Printer
::
PrintMap
(
settings
.
transitions
,
automaton
.
getTransitions
(
)
);
}
auto
AutomataStatNPDA
=
AutomataStat
::
RegistratorWrapper
<
void
,
automaton
::
NPDA
>
(
AutomataStat
::
stat
);
void
AutomataStat
::
stat
(
const
automaton
::
DPDA
&
automaton
,
const
AutomataSettings
&
settings
)
{
Printer
::
PrintSet
(
settings
.
states
,
automaton
.
getStates
(
)
);
Printer
::
PrintSet
(
settings
.
finalStates
,
automaton
.
getFinalStates
(
)
);
...
...
This diff is collapsed.
Click to expand it.
astat2/src/AutomataStat.h
+
1
−
0
View file @
4c3ef6be
...
...
@@ -26,6 +26,7 @@ public:
static void stat ( const automaton::InputDrivenDPDA & automaton, const AutomataSettings & settings );
static void stat ( const automaton::DPDA & automaton, const AutomataSettings & settings );
static void stat ( const automaton::NPDA & automaton, const AutomataSettings & settings );
};
#endif /* AUTOMATA_STAT_H_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment