MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Classes | Namespaces | Defines
mdsIteratorTraits.h File Reference

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2010 by Michal Spanel
. More...

#include <MDSTk/Base/mdsTypeTraits.h>

Classes

struct  mds::CIteratorTraits< M >
 Traits used to implement curiously recurring template pattern for iterators. More...

Namespaces

namespace  mds
 

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel


Defines

#define MDS_ITERATOR_CLASS_TRAITS(Namespace, IteratorClass, ItemType)
 Helper macro used to declare iterator traits before the iterator class.
#define MDS_ITERATOR_TEMPLATE_TRAITS(Namespace, IteratorClassTemplate)
 Helper macro used to declare iterator traits before the iterator class.

Detailed Description

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2010 by Michal Spanel
.

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2010/01/25

Id:
mdsIteratorTraits.h 2092 2012-02-15 12:50:59Z spanel

Description:


Define Documentation

#define MDS_ITERATOR_CLASS_TRAITS (   Namespace,
  IteratorClass,
  ItemType 
)
Value:
namespace Namespace { class IteratorClass; } \
    template <> \
    struct CIteratorTraits<Namespace::IteratorClass> \
    { \
        typedef ItemType tItem; \
    };

Helper macro used to declare iterator traits before the iterator class.

  • Make sure that you use this macro within the namespace mds!
#define MDS_ITERATOR_TEMPLATE_TRAITS (   Namespace,
  IteratorClassTemplate 
)
Value:
namespace Namespace { template <class C, typename T> class IteratorClassTemplate; } \
    template <class C, typename T> \
    struct CIteratorTraits<Namespace::IteratorClassTemplate<C, T> > \
    { \
        typedef T tItem; \
    };

Helper macro used to declare iterator traits before the iterator class.

  • Make sure that you use this macro within the namespace mds!