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

@@ -23,7 +23,7 @@ namespace BlackMisc
class CMatrix3x3;
//! Matrix 3x1
class CMatrix3x1 : public CMatrixBase<CMatrix3x1, 3, 1>
class CMatrix3x1 : public CValueObjectStdTuple<CMatrix3x1, CMatrixBase<CMatrix3x1, 3, 1>>
{
friend class CMatrix3x3;
@@ -32,7 +32,7 @@ namespace BlackMisc
CMatrix3x1() = default;
//! Constructor
CMatrix3x1(double r1, double r2, double r3) : CMatrixBase()
CMatrix3x1(double r1, double r2, double r3)
{
this->m_matrix(0, 0) = r1;
this->m_matrix(1, 0) = r2;
@@ -40,7 +40,7 @@ namespace BlackMisc
}
//! Init by fill value
explicit CMatrix3x1(double fillValue) : CMatrixBase(fillValue) {}
explicit CMatrix3x1(double fillValue) : CValueObjectStdTuple(fillValue) {}
//! Convert to vector
CVector3D toVector3D() const