[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [4879] Remove even more gratuitous dissimilarities
From: |
Greg Chicares |
Subject: |
[lmi-commits] [4879] Remove even more gratuitous dissimilarities |
Date: |
Sat, 01 May 2010 03:06:19 +0000 |
Revision: 4879
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4879
Author: chicares
Date: 2010-05-01 03:06:19 +0000 (Sat, 01 May 2010)
Log Message:
-----------
Remove even more gratuitous dissimilarities
Modified Paths:
--------------
lmi/trunk/dbvalue.hpp
lmi/trunk/ihs_dbvalue.hpp
Modified: lmi/trunk/dbvalue.hpp
===================================================================
--- lmi/trunk/dbvalue.hpp 2010-05-01 02:36:33 UTC (rev 4878)
+++ lmi/trunk/dbvalue.hpp 2010-05-01 03:06:19 UTC (rev 4879)
@@ -1,6 +1,6 @@
// Product-database entity.
//
-// Copyright (C) 1998, 2001, 2005, 2006, 2007, 2008, 2009, 2010 Gregory W.
Chicares.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
2008, 2009, 2010 Gregory W. Chicares.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -100,7 +100,7 @@
double const* operator[](int const* idx) const; // Antediluvian
int GetKey() const;
- int GetNDims() const;
+ int GetNDims() const; // Antediluvian: detect default-contructed
objects.
int GetLength() const;
int GetLength(int axis) const;
std::vector<int> const& GetAxisLengths() const;
@@ -136,7 +136,7 @@
gender
underwriting class (e.g. preferred, standard, and various substd tables)
smoker
- issue age (TODO ?? or attained age as optional alternative?)
+ issue age (or attained age as an optional alternative?)
medical/paramedical/nonmedical
rate bands (see below)
and maybe
Modified: lmi/trunk/ihs_dbvalue.hpp
===================================================================
--- lmi/trunk/ihs_dbvalue.hpp 2010-05-01 02:36:33 UTC (rev 4878)
+++ lmi/trunk/ihs_dbvalue.hpp 2010-05-01 03:06:19 UTC (rev 4879)
@@ -101,10 +101,10 @@
double const* operator[](TDBIndex const& idx) const;
double& operator[](std::vector<int> const& idx);
+ double const* operator[](int const* idx) const; // Antediluvian
int GetKey() const;
- // TODO ?? Isn't the following function useless?
- int GetNDims() const;
+ int GetNDims() const; // Antediluvian: detect default-contructed
objects.
int GetLength() const;
int GetLength(int axis) const;
std::vector<int> const& GetAxisLengths() const;
@@ -128,6 +128,10 @@
int key_;
std::vector<int> axis_lengths_;
std::vector<double> data_values_;
+ int ndims_; // Antediluvian: number of dimensions
+ int* dims_; // Antediluvian: dimensions
+ int ndata_; // Antediluvian: number of data
+ double* data_; // Antediluvian: data
std::string gloss_;
};
@@ -136,7 +140,7 @@
gender
underwriting class (e.g. preferred, standard, and various substd tables)
smoker
- issue age (or attained age as optional alternative?)
+ issue age (or attained age as an optional alternative?)
medical/paramedical/nonmedical
rate bands (see below)
and maybe
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [4879] Remove even more gratuitous dissimilarities,
Greg Chicares <=