Classes | Namespaces | Defines

mitkGenericLookupTable.h File Reference

#include <string>
#include <sstream>
#include <stdlib.h>
#include <map>
#include <itkDataObject.h>
#include "mitkVector.h"
#include "mitkCommon.h"

Go to the source code of this file.

Classes

class  mitk::GenericLookupTable< T >
 Template class for generating lookup-tables. More...

Namespaces

namespace  mitk
 

Qmitk.


Defines

#define mitkSpecializeGenericLookupTable(LookupTableName, Type)
#define mitkSpecializeGenericLookupTableOperator(LookupTableName)

Define Documentation

#define mitkSpecializeGenericLookupTable (   LookupTableName,
  Type 
)
Value:
class MITK_CORE_EXPORT LookupTableName: public GenericLookupTable< Type >    \
{                                                               \
public:                                                         \
typedef LookupTableName Self;                                   \
  typedef GenericLookupTable< Type >   Superclass;              \
  virtual const char *GetNameOfClass() const                    \
  {return #LookupTableName;}                                    \
  LookupTableName() {}                                          \
  virtual ~LookupTableName() {}                                 \
}; \
std::ostream& operator<<(std::ostream& stream, const LookupTableName& /*l*/);

Generates a specialized subclass of mitk::GenericLookupTable. This way, GetNameOfClass() returns the value provided by LookupTableName. Please see mitkProperties.h for examples.

Parameters:
LookupTableNamethe name of the instantiation of GenericLookupTable
Typethe value type of the GenericLookupTable

Definition at line 126 of file mitkGenericLookupTable.h.

#define mitkSpecializeGenericLookupTableOperator (   LookupTableName )
Value:
std::ostream& mitk::operator<<(std::ostream& stream, const LookupTableName& /*l*/) \
{                                                                              \
  return stream;                                                               \
};

Generates the ostream << operator for the lookuptable. This definition of a global function must be in a cpp file, therefore it is split from the class declaration macro mitkSpecializeGenericLookupTable.

Definition at line 144 of file mitkGenericLookupTable.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines