From d403d5a6c7119aae320ffda43881cf2919f6cfd5 Mon Sep 17 00:00:00 2001 From: mat007 Date: Tue, 1 May 2012 16:57:55 +0000 Subject: [PATCH] Removed obsolete file git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@444 860be788-9bd5-4423-9f1e-828f051e677b --- src/libraries/turtle/node.hpp | 56 ----------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 src/libraries/turtle/node.hpp diff --git a/src/libraries/turtle/node.hpp b/src/libraries/turtle/node.hpp deleted file mode 100644 index 5c812ca..0000000 --- a/src/libraries/turtle/node.hpp +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright Mathieu Champlon 2008 -// -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) -// -// See http://turtle.sf.net for documentation. - -#ifndef MOCK_NODE_HPP_INCLUDED -#define MOCK_NODE_HPP_INCLUDED - -#include "verifiable.hpp" -#include -#include -#include -#include - -namespace mock -{ - class node - { - public: - void add( verifiable& v ) - { - v_.push_back( &v ); - } - void remove( verifiable& v ) - { - v_.erase( std::remove( v_.begin(), v_.end(), &v ), v_.end() ); - } - - virtual bool verify() const - { - bool valid = true; - for( verifiables_cit it = v_.begin(); it != v_.end(); ++it ) - if( ! (*it)->verify() ) - valid = false; - return valid; - } - virtual void reset() - { - std::for_each( v_.begin(), v_.end(), - std::mem_fun( &verifiable::reset ) ); - } - - private: - typedef std::vector< verifiable* > verifiables_type; - typedef verifiables_type::const_iterator verifiables_cit; - - std::vector< verifiable* > v_; - std::string name_; - }; -} - -#endif // MOCK_NODE_HPP_INCLUDED