VTK
vtkTypeList Class Reference

TypeList implementation and utilities. More...

#include <vtkTypeList.h>

Detailed Description

TypeList implementation and utilities.

vtkTypeList provides a way to collect a list of types using C++ templates. In VTK, this is used heavily by the vtkArrayDispatch system to instantiate templated code for specific array implementations. The book "Modern C++ Design: Generic Programming and Design Patterns Applied" by Andrei Alexandrescu provides additional details and applications for typeLists. This implementation is heavily influenced by the example code in the book.

Note that creating a typelist in C++ is simplified greatly by using the vtkTypeList_Create_N macros defined in the CMake-generated vtkTypeListMacros.h header.

See also
vtkArrayDispatch vtkTypeListMacros
Tests:
vtkTypeList (Tests)

The documentation for this class was generated from the following file: