![]() |
Header file for a type list implementation. More...
Go to the source code of this file.
Classes | |
struct | blaze::TypeList< H, T > |
Implementation of a type list.The TypeList class is an implementation of a type list according to the example of Andrei Alexandrescu. The type list merely consists of the two data types Head and Tail. In order to create type lists of more data types, the TypeList class is used recursively: More... | |
class | blaze::Length< TList > |
Calculating the length of a type list.The Length class can be used to obtain the length of a type list (i.e. the number of contained types). In order to obtain the length of a type list, the Length class has to be instantiated for a particular type list. The length of the type list can be obtained using the member enumeration value. The following example gives an impression of the use of the Length class: More... | |
class | blaze::TypeAt< TList, Index > |
Indexing a type list.The TypeAt class can be used to access a type list at a specified position to query the according type. In order to index a type list, the TypeAt class has to be instantiated for a particular type list and an index value. The indexed type is available via the member type definition Result. The following example gives an impression of the use of the TypeAt class: More... | |
class | blaze::Contains< TList, Type > |
Searching a type list.The Contains class can be used to search the type list for a particular type Type. In contrast to the IndexOf class, the Contains class does not evaluate the index of the type but only checks whether or not the type is contained in the type list. Additionally, in contrast to the ContainsRelated class, the Contains class strictly searches for the given type Type and not for a related data type. In case the type is contained in the type list, the value member enumeration is set to 1, else it is set to 0. In order to check whether a type is part of a type list, the Contains class has to be instantiated for a particular type list and another type. The following example gives an impression of the use of the Contains class: More... | |
class | blaze::ContainsRelated< TList, Type > |
Searching a type list.The ContainsRelated class can be used to search the type list for a type related to Type. In contrast to the Contains class, the ContainsRelated class only searches for a type the given data type Type can be converted to. In case a related type is found in the type list, the value member enumeration is set to 1, else it is set to 0. In order to check whether a related type is contained in the type list, the ContainsRelated class has to be instantiated for a particular type list and another type. The following example gives an impression of the use of the ContainsRelated class: More... | |
class | blaze::IndexOf< TList, Type > |
Searching a type list.The IndexOf class can be used to search the type list for a particular type Type. In contrast to the Contains and the ContainsRelated classes, the IndexOf class evaluates the index of the given type in the type list. In case the type is contained in the type list, the value member represents the index of the queried type. Otherwise the value member is set to -1. In order to search for a type, the IndexOf class has to be instantiated for a particular type list and a search type. The following example gives an impression of the use of the IndexOf class: More... | |
class | blaze::Append< TList, Type > |
Appending a type to a type list.The Append class can be used to append the data type Type to a type list TList. In order to append a data type, the Append class has to be instantiated for a particular type list and another type. The following example gives an impression of the use of the Append class: More... | |
class | blaze::Erase< TList, Type > |
Erasing the first occurrence of a type from a type list.The Erase class can be used to erase the first occurrence of data type Type from a type list TList. In order to erase the first occurrence of a data type, the Erase class has to be instantiated for a particular type list and another type. The following example gives an impression of the use of the Erase class: More... | |
class | blaze::EraseAll< TList, Type > |
Erasing all occurrences of a type from a type list.The EraseAll class can be used to erase all occurrences of data type Type from a type list TList. In order to erase all occurrences of a data type, the EraseAll class has to be instantiated for a particular type list and another type. The following example gives an impression of the use of the EraseAll class: More... | |
class | blaze::Unique< TList > |
Erasing all duplicates from a type list.The Unique class can be used to erase all duplicates from a type list TList. In order to erase all duplicates, the Unique class has to be instantiated for a particular type list. The following example gives an impression of the use of the Unique class: More... | |
Namespaces | |
blaze | |
Namespace of the Blaze C++ math library. | |
Macros | |
#define | BLAZE_TYPELIST_1(T1) TypeList< T1, NullType > |
Type list generation macro.This macro creates a type list only consisting of the type T1. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
#define | BLAZE_TYPELIST_2(T1, T2) TypeList< T1, BLAZE_TYPELIST_1( T2 ) > |
Type list generation macro.This macro creates a type list consisting of the two types T1 and T2. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
#define | BLAZE_TYPELIST_3(T1, T2, T3) TypeList< T1, BLAZE_TYPELIST_2( T2, T3 ) > |
Type list generation macro.This macro creates a type list consisting of the three types T1, T2 and T3. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
#define | BLAZE_TYPELIST_4(T1, T2, T3, T4) TypeList< T1, BLAZE_TYPELIST_3( T2, T3, T4 ) > |
Type list generation macro.This macro creates a type list consisting of the four types T1, T2, T3 and T4. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
#define | BLAZE_TYPELIST_5(T1, T2, T3, T4, T5) TypeList< T1, BLAZE_TYPELIST_4( T2, T3, T4, T5 ) > |
Type list generation macro.This macro creates a type list consisting of the five types T1, T2, T3, T4 and T5. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
#define | BLAZE_TYPELIST_6(T1, T2, T3, T4, T5, T6) TypeList< T1, BLAZE_TYPELIST_5( T2, T3, T4, T5, T6 ) > |
Type list generation macro.This macro creates a type list consisting of the six types T1, T2, T3, T4, T5 and T6. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
#define | BLAZE_TYPELIST_7(T1, T2, T3, T4, T5, T6, T7) TypeList< T1, BLAZE_TYPELIST_6( T2, T3, T4, T5, T6, T7 ) > |
Type list generation macro.This macro creates a type list consisting of the seven types T1, T2, T3, T4, T5, T6 and T7. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
#define | BLAZE_TYPELIST_8(T1, T2, T3, T4, T5, T6, T7, T8) TypeList< T1, BLAZE_TYPELIST_7( T2, T3, T4, T5, T6, T7, T8 ) > |
Type list generation macro.This macro creates a type list consisting of the eight types T1, T2, T3, T4, T5, T6, T7 and T8. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
#define | BLAZE_TYPELIST_9(T1, T2, T3, T4, T5, T6, T7, T8, T9) TypeList< T1, BLAZE_TYPELIST_8( T2, T3, T4, T5, T6, T7, T8, T9 ) > |
Type list generation macro.This macro creates a type list consisting of the nine types T1, T2, T3, T4, T5, T6, T7, T8 and T9. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
#define | BLAZE_TYPELIST_10(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) TypeList< T1, BLAZE_TYPELIST_9( T2, T3, T4, T5, T6, T7, T8, T9, T10 ) > |
Type list generation macro.This macro creates a type list consisting of the ten types T1, T2, T3, T4, T5, T6, T7, T8, T9 and T10. The terminating type for the type list is the NullType. The following example demonstrates the use of this macro: More... | |
Header file for a type list implementation.
Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved
This file is part of the Blaze library. You can redistribute it and/or modify it under the terms of the New (Revised) BSD License. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.