{
protected:
T &s;
+ typedef typename T::bin_t bin_t;
public:
VectorDistData(T &stat) : s(stat) {}
- virtual bool binned() const { return T::bin_t::binned; }
+ virtual bool binned() const { return bin_t::binned; }
virtual bool check() const { return s.check(); }
virtual void reset() { s.reset(); }
virtual size_t size() const { return s.size(); }
{
protected:
T &s;
+ typedef typename T::bin_t bin_t;
public:
Vector2dData(T &stat) : s(stat) {}
- virtual bool binned() const { return T::bin_t::binned; }
+ virtual bool binned() const { return bin_t::binned; }
virtual bool check() const { return s.check(); }
virtual void reset() { s.reset(); }
virtual bool zero() const { return s.zero(); }
void setPrint();
};
-template <class Parent, class Child, template <class Child> class Data>
+template <class Parent, class Child, template <class> class Data>
class Wrap : public Child
{
protected:
template <typename T, template <typename T> class Storage, class Bin>
class ScalarBase : public DataAccess
{
- protected:
+ public:
/** Define the type of the storage class. */
typedef Storage<T> storage_t;
/** Define the params of the storage class. */
template <typename T, template <typename T> class Storage, class Bin>
class VectorBase : public DataAccess
{
- protected:
+ public:
/** Define the type of the storage class. */
typedef Storage<T> storage_t;
/** Define the params of the storage class. */
template <typename T, template <typename T> class Storage, class Bin>
class ScalarProxy
{
- protected:
+ public:
/** Define the type of the storage class. */
typedef Storage<T> storage_t;
/** Define the params of the storage class. */
template <typename T, template <typename T> class Storage, class Bin>
class Vector2dBase : public DataAccess
{
- protected:
+ public:
typedef Storage<T> storage_t;
typedef typename storage_t::Params params_t;
-
- public:
typedef typename Bin::VectorBin<storage_t> bin_t;
protected:
template <typename T, template <typename T> class Storage, class Bin>
class VectorProxy
{
- protected:
+ public:
typedef Storage<T> storage_t;
typedef typename storage_t::Params params_t;
typedef typename Bin::VectorBin<storage_t> bin_t;
template <typename T, template <typename T> class Storage, class Bin>
class DistBase : public DataAccess
{
- protected:
+ public:
/** Define the type of the storage class. */
typedef Storage<T> storage_t;
/** Define the params of the storage class. */
template <typename T, template <typename T> class Storage, class Bin>
class VectorDistBase : public DataAccess
{
- protected:
+ public:
typedef Storage<T> storage_t;
typedef typename storage_t::Params params_t;
-
- public:
typedef typename Bin::VectorBin<storage_t> bin_t;
protected:
template <typename T, template <typename T> class Storage, class Bin>
class DistProxy
{
- protected:
+ public:
typedef Storage<T> storage_t;
typedef typename storage_t::Params params_t;
typedef typename Bin::Bin<storage_t> bin_t;
VectorData>
{
public:
+ /** The base implementation. */
+ typedef ScalarBase<T, StatStor, Bin> Base;
+
/**
* Set this vector to have the given size.
* @param size The new size.
DistBase<T, DistStor, Bin>,
DistData>
{
- private:
+ public:
/** Base implementation. */
typedef DistBase<T, DistStor, Bin> Base;
/** The Parameter type. */
DistBase<T, FancyStor, Bin>,
DistData>
{
- private:
+ public:
/** The base implementation */
typedef DistBase<T, DistStor, Bin> Base;
/** The parameter type. */
DistBase<T, AvgFancy, Bin>,
DistData>
{
- private:
+ public:
/** The base implementation */
typedef DistBase<T, DistStor, Bin> Base;
/** The parameter type. */
VectorDistBase<T, DistStor, Bin>,
VectorDistData>
{
- private:
+ public:
/** The base implementation */
typedef VectorDistBase<T, DistStor, Bin> Base;
/** The parameter type. */
VectorDistBase<T, FancyStor, Bin>,
VectorDistData>
{
- private:
+ public:
/** The base implementation */
typedef VectorDistBase<T, FancyStor, Bin> Base;
/** The parameter type. */
VectorDistBase<T, AvgFancy, Bin>,
VectorDistData>
{
- private:
+ public:
/** The base implementation */
typedef VectorDistBase<T, AvgFancy, Bin> Base;
/** The parameter type. */