MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
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) | |
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. |
Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2010 by Michal Spanel
.
Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2010/01/25
Description:
#define MDS_ITERATOR_CLASS_TRAITS | ( | Namespace, | |
IteratorClass, | |||
ItemType | |||
) |
namespace Namespace { class IteratorClass; } \ template <> \ struct CIteratorTraits<Namespace::IteratorClass> \ { \ typedef ItemType tItem; \ };
Helper macro used to declare iterator traits before the iterator class.
#define MDS_ITERATOR_TEMPLATE_TRAITS | ( | Namespace, | |
IteratorClassTemplate | |||
) |
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.