[cig-commits] r14114 - in short/3D/PyLith/branches/pylith-swig: libsrc/materials unittests/libtests/materials
brad at geodynamics.org
brad at geodynamics.org
Sat Feb 21 16:19:57 PST 2009
Author: brad
Date: 2009-02-21 16:19:57 -0800 (Sat, 21 Feb 2009)
New Revision: 14114
Modified:
short/3D/PyLith/branches/pylith-swig/libsrc/materials/Metadata.cc
short/3D/PyLith/branches/pylith-swig/libsrc/materials/Metadata.hh
short/3D/PyLith/branches/pylith-swig/unittests/libtests/materials/Makefile.am
Log:
Added libtests for Metadata.
Modified: short/3D/PyLith/branches/pylith-swig/libsrc/materials/Metadata.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/libsrc/materials/Metadata.cc 2009-02-21 22:06:25 UTC (rev 14113)
+++ short/3D/PyLith/branches/pylith-swig/libsrc/materials/Metadata.cc 2009-02-22 00:19:57 UTC (rev 14114)
@@ -57,6 +57,20 @@
} // constructor
// ----------------------------------------------------------------------
+// Copy constructor.
+pylith::materials::Metadata::Metadata(const Metadata& m) :
+ _properties(m._properties),
+ _stateVars(m._stateVars),
+ _propertyNames(m._propertyNames),
+ _stateVarNames(m._stateVarNames),
+ _dbProperties(m._dbProperties),
+ _dbStateVars(m._dbStateVars),
+ _numDBProperties(m._numDBProperties),
+ _numDBStateVars(m._numDBStateVars)
+{ // copy constructor
+} // copy constructor
+
+// ----------------------------------------------------------------------
// Default destructor
pylith::materials::Metadata::~Metadata(void)
{ // destructor
Modified: short/3D/PyLith/branches/pylith-swig/libsrc/materials/Metadata.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/libsrc/materials/Metadata.hh 2009-02-21 22:06:25 UTC (rev 14113)
+++ short/3D/PyLith/branches/pylith-swig/libsrc/materials/Metadata.hh 2009-02-22 00:19:57 UTC (rev 14114)
@@ -75,6 +75,12 @@
const char* dbStateVars[],
const int numDBStateVars);
+ /** Copy constructor.
+ *
+ * @parameter m Metadataw to copy.
+ */
+ Metadata(const Metadata& m);
+
/// Default destructor
~Metadata(void);
@@ -162,7 +168,6 @@
// NOT IMPLEMENTED //////////////////////////////////////////////////////
private :
- Metadata(const Metadata&); ///< Not implemented
const Metadata& operator=(const Metadata&); ///< Not implemented
}; // Metadata
Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/materials/Makefile.am
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/materials/Makefile.am 2009-02-21 22:06:25 UTC (rev 14113)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/materials/Makefile.am 2009-02-22 00:19:57 UTC (rev 14114)
@@ -21,6 +21,7 @@
# Primary source files
testmaterials_SOURCES = \
+ TestMetadata.cc \
TestMaterial.cc \
test_materials.cc
More information about the CIG-COMMITS
mailing list