diff options
Diffstat (limited to 'boost/test/utils/runtime/cla/basic_parameter.hpp')
-rw-r--r-- | boost/test/utils/runtime/cla/basic_parameter.hpp | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/boost/test/utils/runtime/cla/basic_parameter.hpp b/boost/test/utils/runtime/cla/basic_parameter.hpp deleted file mode 100644 index 817b12a301..0000000000 --- a/boost/test/utils/runtime/cla/basic_parameter.hpp +++ /dev/null @@ -1,85 +0,0 @@ -// (C) Copyright Gennadiy Rozental 2005-2014. -// Use, modification, and distribution are subject to 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://www.boost.org/libs/test for the library home page. -// -// File : $RCSfile$ -// -// Version : $Revision$ -// -// Description : generic custom parameter generator -// *************************************************************************** - -#ifndef BOOST_TEST_UTILS_RUNTIME_CLA_BASIC_PARAMETER_HPP -#define BOOST_TEST_UTILS_RUNTIME_CLA_BASIC_PARAMETER_HPP - -// Boost.Runtime.Parameter -#include <boost/test/utils/runtime/config.hpp> - -#include <boost/test/utils/runtime/cla/typed_parameter.hpp> - -// Boost.Test -#include <boost/test/utils/rtti.hpp> - -// Boost -#include <boost/utility/base_from_member.hpp> - -namespace boost { - -namespace BOOST_TEST_UTILS_RUNTIME_PARAM_NAMESPACE { - -namespace cla { - -// ************************************************************************** // -// ************** runtime::cla::basic_parameter ************** // -// ************************************************************************** // - -template<typename T, typename IdPolicy> -class basic_parameter : private base_from_member<IdPolicy>, public typed_parameter<T> { -public: - // Constructors - explicit basic_parameter( cstring n ) - : base_from_member<IdPolicy>() - , typed_parameter<T>( base_from_member<IdPolicy>::member ) - { - this->accept_modifier( name = n ); - } - - // parameter properties modification - template<typename Modifier> - void accept_modifier( Modifier const& m ) - { - typed_parameter<T>::accept_modifier( m ); - - base_from_member<IdPolicy>::member.accept_modifier( m ); - } -}; - -//____________________________________________________________________________// - -#define BOOST_TEST_UTILS_RUNTIME_CLA_NAMED_PARAM_GENERATORS( param_type ) \ -template<typename T> \ -inline shared_ptr<param_type ## _t<T> > \ -param_type( cstring name = cstring() ) \ -{ \ - return shared_ptr<param_type ## _t<T> >( new param_type ## _t<T>( name ) ); \ -} \ - \ -inline shared_ptr<param_type ## _t<cstring> > \ -param_type( cstring name = cstring() ) \ -{ \ - return shared_ptr<param_type ## _t<cstring> >( new param_type ## _t<cstring>( name ) ); \ -} \ -/**/ - -//____________________________________________________________________________// - -} // namespace cla - -} // namespace BOOST_TEST_UTILS_RUNTIME_PARAM_NAMESPACE - -} // namespace boost - -#endif // BOOST_TEST_UTILS_RUNTIME_CLA_BASIC_PARAMETER_HPP |