source: trunk/test_more/extern_value.hpp @ 3008

Last change on this file since 3008 was 2756, checked in by bradbell, 7 years ago

Make testing of numeric limits more robust by
using external functions, instead of arrays, for storing temporary values.

extern_value.cpp: external functions for getting and setting values.

  • Property svn:keywords set to Id
File size: 696 bytes
Line 
1/* $Id: extern_value.hpp 2756 2013-02-27 18:49:28Z bradbell $ */
2/* --------------------------------------------------------------------------
3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
4
5CppAD is distributed under multiple licenses. This distribution is under
6the terms of the
7                    Eclipse Public License Version 1.0.
8
9A copy of this license is included in the COPYING file of this distribution.
10Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
11-------------------------------------------------------------------------- */
12
13template <class Type> 
14class extern_value  {
15private:
16        Type value_;
17public:
18        extern_value(Type value);
19        void set(Type value);
20        Type get(void);
21};
Note: See TracBrowser for help on using the repository browser.