refs #345 Third and final wave of value classes using the CValueObjectStdTuple CRTP class template, with policy classes.

This commit is contained in:
Mathew Sutcliffe
2014-11-08 00:17:13 +00:00
parent 2b9d4098d4
commit f219d290f1
48 changed files with 326 additions and 1389 deletions

View File

@@ -22,14 +22,14 @@ namespace BlackMisc
{
//! 3x3 matrix
class CMatrix3x3 : public CMatrixBase<CMatrix3x3, 3, 3>
class CMatrix3x3 : public CValueObjectStdTuple<CMatrix3x3, CMatrixBase<CMatrix3x3, 3, 3>>
{
public:
//! Constructor
CMatrix3x3() = default;
//! Init by fill value
explicit CMatrix3x3(double fillValue) : CMatrixBase(fillValue) {}
explicit CMatrix3x3(double fillValue) : CValueObjectStdTuple(fillValue) {}
//! Stupid, but handy constructor by single row column values
explicit CMatrix3x3(double r1c1, double r1c2, double r1c3,