35#ifndef NEKTAR_UNIT_TESTS_COUNTED_OBJECT_H
36#define NEKTAR_UNIT_TESTS_COUNTED_OBJECT_H
38#include <boost/test/unit_test.hpp>
93 return !(*
this == rhs);
117 static void Check(
unsigned int expectedDefaultConstructed,
118 unsigned int expectedConstructedFromInt,
119 unsigned int expectedDestroyed,
120 unsigned int expectedCopied,
unsigned int expectedCloned,
121 unsigned int expectedAssigned)
135 operator unsigned int()
const
161template <
typename DerivedType>
164template <
typename DerivedType>
167template <
typename DerivedType>
170template <
typename DerivedType>
173template <
typename DerivedType>
176template <
typename DerivedType>
179template <
typename DerivedType>
182template <
typename DerivedType>
185template <
typename DerivedType>
188template <
typename DerivedType>
191template <
typename DerivedType>
static unsigned int numberConstructedFromInt
static unsigned int numberDestroyed
static unsigned int numberCopied
bool operator==(const CountedObject< DerivedType > &rhs) const
CountedObject< DerivedType > * clone() const
static unsigned int numberOfExpressionConstructions
static unsigned int numberOf3ParameterConstructions
static unsigned int numberOf1ParameterConstructions
static unsigned int numberAssigned
static void Check(unsigned int expectedDefaultConstructed, unsigned int expectedConstructedFromInt, unsigned int expectedDestroyed, unsigned int expectedCopied, unsigned int expectedCloned, unsigned int expectedAssigned)
CountedObject(unsigned int a1, unsigned int a2, unsigned int a3)
static void ClearCounters()
unsigned int GetValue() const
static unsigned int numberDefaultConstructed
CountedObject(const CountedObject< DerivedType > &rhs)
static unsigned int numberOfExpressionAssignments
bool operator!=(const CountedObject< DerivedType > &rhs) const
CountedObject(unsigned int a1, unsigned int a2)
CountedObject< DerivedType > & operator=(const CountedObject< DerivedType > &rhs)
CountedObject(unsigned int v)
static unsigned int numberCloned
static unsigned int numberOf2ParameterConstructions
std::ostream & operator<<(std::ostream &os, const NekMatrix< DataType, FormType > &rhs)