Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
f968c4ed
Commit
f968c4ed
authored
Feb 17, 2014
by
Alexandre Duret-Lutz
Browse files
graph: add SPOT_API on public classes.
* src/graph/graph.hh, src/graph/ngraph.hh: Here.
parent
c793d3f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/graph/graph.hh
View file @
f968c4ed
...
...
@@ -20,6 +20,7 @@
#ifndef SPOT_GRAPH_GRAPH_HH
# define SPOT_GRAPH_GRAPH_HH
#include
"misc/common.hh"
#include
<vector>
#include
<type_traits>
#include
<tuple>
...
...
@@ -28,7 +29,7 @@
namespace
spot
{
template
<
typename
State_Data
,
typename
Trans_Data
,
bool
Alternating
=
false
>
class
digraph
;
class
SPOT_API
digraph
;
namespace
internal
{
...
...
@@ -40,7 +41,7 @@ namespace spot
// instance.
template
<
typename
Data
,
bool
boxed
=
!
std
::
is_class
<
Data
>
::
value
>
struct
boxed_label
struct
SPOT_API
boxed_label
{
typedef
Data
data_t
;
Data
label
;
...
...
@@ -69,7 +70,7 @@ namespace spot
};
template
<
>
struct
boxed_label
<
void
,
true
>:
public
std
::
tuple
<>
struct
SPOT_API
boxed_label
<
void
,
true
>:
public
std
::
tuple
<>
{
typedef
std
::
tuple
<>
data_t
;
std
::
tuple
<>&
data
()
...
...
@@ -85,7 +86,7 @@ namespace spot
};
template
<
typename
Data
>
struct
boxed_label
<
Data
,
false
>:
public
Data
struct
SPOT_API
boxed_label
<
Data
,
false
>:
public
Data
{
typedef
Data
data_t
;
...
...
@@ -120,7 +121,7 @@ namespace spot
// one without.
template
<
typename
Transition
,
typename
State_Data
>
struct
distate_storage
:
public
State_Data
struct
SPOT_API
distate_storage
:
public
State_Data
{
Transition
succ
;
// First outgoing transition (used when iterating)
Transition
succ_tail
;
// Last outgoing transition (used for
...
...
@@ -142,7 +143,7 @@ namespace spot
// Again two implementation: one with label, and one without.
template
<
typename
State
,
typename
Transition
,
typename
Trans_Data
>
struct
trans_storage
:
public
Trans_Data
struct
SPOT_API
trans_storage
:
public
Trans_Data
{
typedef
Transition
transition
;
...
...
@@ -171,7 +172,7 @@ namespace spot
// of that list.
template
<
typename
Graph
>
class
trans_iterator
class
SPOT_API
trans_iterator
{
public:
typedef
typename
Graph
::
transition
transition
;
...
...
@@ -224,7 +225,7 @@ namespace spot
// Fake container listing the outgoing transitions of a state.
template
<
typename
Graph
>
class
state_out
class
SPOT_API
state_out
{
public:
typedef
typename
Graph
::
transition
transition
;
...
...
src/graph/ngraph.hh
View file @
f968c4ed
...
...
@@ -30,7 +30,7 @@ namespace spot
typename
State_Name
,
typename
Name_Hash
=
std
::
hash
<
State_Name
>,
typename
Name_Equal
=
std
::
equal_to
<
State_Name
>>
class
named_graph
class
SPOT_API
named_graph
{
protected:
Graph
&
g_
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment