Revision 1978

trunk/src/GNUmakefile (revision 1978)
331 331
ifeq ($(SHELL),cmd)
332 332
	if not exist ${DIST}\include md ${DIST}\include
333 333
	copy linad99\fvar.hpp ${DIST}\include
334
	copy linad99\ad_exit.h ${DIST}\include
335 334
	copy linad99\dvector.h ${DIST}\include
336 335
	copy linad99\ivector.h ${DIST}\include
337 336
	copy linad99\vector_shapex.h ${DIST}\include
338
	copy linad99\independent_variables.h ${DIST}\include
339
	copy linad99\dvar_vector.h ${DIST}\include
340
	copy linad99\dvar_vector_position.h ${DIST}\include
341
	copy linad99\double_and_int.h ${DIST}\include
342
	copy linad99\prevariable.h ${DIST}\include
343 337
	copy linad99\dfpool.h ${DIST}\include
344 338
	copy linad99\factors.h ${DIST}\include
345 339
	copy tools99\adoption.hpp ${DIST}\include
......
359 353
else
360 354
	mkdir -p ${DIST}/include
361 355
	cp linad99/fvar.hpp ${DIST}/include
362
	cp linad99/ad_exit.h ${DIST}/include
363 356
	cp linad99/dvector.h ${DIST}/include
364 357
	cp linad99/ivector.h ${DIST}/include
365 358
	cp linad99/vector_shapex.h ${DIST}/include
366
	cp linad99/independent_variables.h ${DIST}/include
367
	cp linad99/dvar_vector.h ${DIST}/include
368
	cp linad99/dvar_vector_position.h ${DIST}/include
369
	cp linad99/double_and_int.h ${DIST}/include
370
	cp linad99/prevariable.h ${DIST}/include
371 359
	cp linad99/dfpool.h ${DIST}/include
372 360
	cp linad99/factors.h ${DIST}/include
373 361
	cp tools99/adoption.hpp ${DIST}/include
trunk/src/linad99/double_and_int.h (revision 1978)
1
/*
2
 * $Id$
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 *
7
 * ADModelbuilder and associated libraries and documentations are
8
 * provided under the general terms of the "New BSD" license
9
 *
10
 * License:
11
 *
12
 * Redistribution and use in source and binary forms, with or without
13
 * modification, are permitted provided that the following conditions are
14
 * met:
15
 *
16
 * 1. Redistributions of source code must retain the above copyright
17
 * notice, this list of conditions and the following disclaimer.
18
 *
19
 * 2.  Redistributions in binary form must reproduce the above copyright
20
 * notice, this list of conditions and the following disclaimer in the
21
 * documentation and/or other materials provided with the distribution.
22
 *
23
 * 3.  Neither the name of the  University of California, Otter Research,
24
 * nor the ADMB Foundation nor the names of its contributors may be used
25
 * to endorse or promote products derived from this software without
26
 * specific prior written permission.
27
 *
28
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
 */
40

  
41
#ifndef __ADMB_DOUBLE_AND_INT_H__
42
#define __ADMB_DOUBLE_AND_INT_H__
43
/**
44
  Holds the data for the prevariable class.
45
  \ingroup BAD
46
 */
47
class double_and_int
48
{
49
public:
50
   ///< value of the variable
51
  double x;
52

  
53
  /** Return the value of the variable.
54
  \return double reference containing the value of the variable.
55
  */
56
  inline double &xvalue(void)
57
  {
58
    return x;
59
  }
60
};
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff