/home/coin/SVN-release/CoinAll-1.1.0/cppad/cppad/local/default.hpp

Go to the documentation of this file.
00001 # ifndef CPPAD_DEFAULT_INCLUDED
00002 # define CPPAD_DEFAULT_INCLUDED
00003 
00004 /* --------------------------------------------------------------------------
00005 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-07 Bradley M. Bell
00006 
00007 CppAD is distributed under multiple licenses. This distribution is under
00008 the terms of the 
00009                     Common Public License Version 1.0.
00010 
00011 A copy of this license is included in the COPYING file of this distribution.
00012 Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
00013 -------------------------------------------------------------------------- */
00014 
00015 /*
00016 ------------------------------------------------------------------------------
00017 
00018 $begin Default$$
00019 $spell
00020 $$
00021 
00022 $section AD Default Constructor$$
00023 
00024 $index AD, default construct$$
00025 $index construct, default$$
00026 $index default, constructor$$
00027 
00028 $head Syntax$$
00029 $syntax%AD<%Base%> %x%;%$$
00030 
00031 
00032 $head Purpose$$
00033 Constructs an AD object with an unspecified value.
00034 Directly after this construction,
00035 the object is a $xref/glossary/Parameter/parameter/$$.
00036 
00037 
00038 $head Example$$
00039 $children%
00040         example/default.cpp
00041 %$$
00042 The file
00043 $xref/Default.cpp/$$
00044 contains an example and test of this operation.
00045 It returns true if it succeeds and false otherwise.
00046 
00047 $end
00048 ------------------------------------------------------------------------------
00049 */
00050 //  BEGIN CppAD namespace
00051 namespace CppAD {
00052 
00053 // default constructor
00054 // (if id_ is 1, taddr_ is not used, set anyway to avoid compile warning)
00055 template <class Base>
00056 inline AD<Base>::AD(void) : id_(1), taddr_(0)
00057 { }     
00058 
00059 } // END CppAD namespace
00060 
00061 # endif

Generated on Sun Nov 14 14:06:33 2010 for Coin-All by  doxygen 1.4.7