deprecate copy() in favor of make_twa_graph()
Fixes #258. * spot/twaalgos/copy.cc: Delete, and move the code... * spot/twa/twagraph.cc: ... in some anonymous namespace here. * spot/twa/twagraph.hh: Adjust the make_twa_graph() overload. * spot/twaalgos/copy.hh, NEWS: Mark copy() as deprecated and redirect to make_twa_graph(). * doc/org/upgrade2.org, doc/org/tut51.org, python/spot/impl.i, spot/twaalgos/dot.cc, spot/twaalgos/langmap.cc, tests/core/ikwiad.cc: Adjust callers. * spot/twaalgos/Makefile.am: Remove copy.cc.
This commit is contained in:
parent
1e9daa73f3
commit
8e685e00c9
12 changed files with 197 additions and 206 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2012, 2013, 2014, 2015, 2016 Laboratoire de Recherche et
|
||||
// Copyright (C) 2012-2017 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
// Copyright (C) 2003, 2004, 2005 Laboratoire d'Informatique de Paris
|
||||
// Copyright (C) 2003-2005 Laboratoire d'Informatique de Paris
|
||||
// 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
|
||||
// Université Pierre et Marie Curie.
|
||||
//
|
||||
|
|
@ -23,18 +23,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <spot/misc/common.hh>
|
||||
#include <spot/twa/fwd.hh>
|
||||
#include <spot/twa/twa.hh>
|
||||
#include <spot/twa/twagraph.hh>
|
||||
|
||||
namespace spot
|
||||
{
|
||||
/// \ingroup twa_misc
|
||||
/// \brief Build an explicit automaton from all states of \a aut,
|
||||
///
|
||||
/// This works using the abstract interface for automata. If you
|
||||
/// have a twa_graph that you want to copy, it is more efficient
|
||||
/// to call make_twa_graph() instead.
|
||||
/// This function was deprecated in Spot 2.4. Use the
|
||||
/// function make_twa_graph() instead.
|
||||
SPOT_DEPRECATED("use make_twa_graph() instead")
|
||||
SPOT_API twa_graph_ptr
|
||||
copy(const const_twa_ptr& aut, twa::prop_set p,
|
||||
bool preserve_names = false, unsigned max_states = -1U);
|
||||
inline copy(const const_twa_ptr& aut, twa::prop_set p,
|
||||
bool preserve_names = false, unsigned max_states = -1U)
|
||||
{
|
||||
return make_twa_graph(aut, p, preserve_names, max_states);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue