diff options
author | Torben Hohn <torbenh@gmx.de> | 2010-06-03 20:09:17 +0000 |
---|---|---|
committer | Torben Hohn <torbenh@gmx.de> | 2010-06-03 20:09:17 +0000 |
commit | 357cf39470e485415aeee8270fe3a786cb0b6ec6 (patch) | |
tree | 4d3292c26f5b1f7940351cc1c40fd2caad059d4b /libs/ardour/ardour/graphnode.h | |
parent | c59dade835fa5aa8150fae6d503bd93eee92075d (diff) |
add missing graph.cc and friends :S
git-svn-id: svn://localhost/ardour2/branches/3.0@7225 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/graphnode.h')
-rw-r--r-- | libs/ardour/ardour/graphnode.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/libs/ardour/ardour/graphnode.h b/libs/ardour/ardour/graphnode.h new file mode 100644 index 0000000000..e5f2a78452 --- /dev/null +++ b/libs/ardour/ardour/graphnode.h @@ -0,0 +1,64 @@ +/* + Copyright (C) 2000 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + + +#ifndef __ardour_graphnode_h__ +#define __ardour_graphnode_h__ + +#include <list> +#include <set> +#include <vector> + +#include <boost/shared_ptr.hpp> + +namespace ARDOUR +{ + +class Graph; +class GraphNode; + +typedef boost::shared_ptr<GraphNode> node_ptr_t; +typedef std::set< node_ptr_t > node_set_t; +typedef std::list< node_ptr_t > node_list_t; + +class GraphNode +{ + public: + GraphNode( boost::shared_ptr<Graph> Graph ); + + void prep( int chain ); + void dec_ref(); + void finish( int chain ); + + virtual void process(); + + private: + friend class Graph; + + node_set_t _activation_set[2]; + + boost::shared_ptr<Graph> _graph; + + gint _refcount; + gint _init_refcount[2]; +}; + +} + +#endif |