[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [4896] Prefer implicitly-defined special member functions
From: |
Greg Chicares |
Subject: |
[lmi-commits] [4896] Prefer implicitly-defined special member functions [12/1] |
Date: |
Mon, 03 May 2010 11:48:28 +0000 |
Revision: 4896
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4896
Author: chicares
Date: 2010-05-03 11:48:28 +0000 (Mon, 03 May 2010)
Log Message:
-----------
Prefer implicitly-defined special member functions [12/1]
Modified Paths:
--------------
lmi/trunk/dbvalue.cpp
lmi/trunk/dbvalue.hpp
Modified: lmi/trunk/dbvalue.cpp
===================================================================
--- lmi/trunk/dbvalue.cpp 2010-05-03 11:34:49 UTC (rev 4895)
+++ lmi/trunk/dbvalue.cpp 2010-05-03 11:48:28 UTC (rev 4896)
@@ -129,29 +129,6 @@
}
//============================================================================
-TDBValue::TDBValue(TDBValue const& z)
- :obstruct_slicing<TDBValue>()
- ,key_ (z.key_)
- ,axis_lengths_ (z.axis_lengths_)
- ,data_values_ (z.data_values_)
- ,gloss_ (z.gloss_)
-{
-}
-
-//============================================================================
-TDBValue& TDBValue::operator=(TDBValue const& z)
-{
- if(this != &z)
- {
- key_ = z.key_;
- axis_lengths_ = z.axis_lengths_;
- data_values_ = z.data_values_;
- gloss_ = z.gloss_;
- }
- return *this;
-}
-
-//============================================================================
TDBValue::~TDBValue()
{
}
Modified: lmi/trunk/dbvalue.hpp
===================================================================
--- lmi/trunk/dbvalue.hpp 2010-05-03 11:34:49 UTC (rev 4895)
+++ lmi/trunk/dbvalue.hpp 2010-05-03 11:48:28 UTC (rev 4896)
@@ -53,6 +53,8 @@
/// all axes. In a typical query, all other axes are single-valued,
/// but all durations are wanted; this axis ordering puts consecutive
/// durational values in contiguous storage for efficient retrieval.
+///
+/// Implicitly-declared special member functions do the right thing.
class LMI_SO TDBValue
:virtual private obstruct_slicing<TDBValue>
@@ -91,8 +93,6 @@
,double datum
,std::string const& gloss = std::string()
);
- TDBValue(TDBValue const&);
- TDBValue& operator=(TDBValue const&);
~TDBValue();
double const* operator[](TDBIndex const& idx) const;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [4896] Prefer implicitly-defined special member functions [12/1],
Greg Chicares <=