List.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
22 //----------------------------------------------------------------------
23 #ifndef ICL_CORE_LIST_H_INCLUDED
24 #define ICL_CORE_LIST_H_INCLUDED
25 
26 #include <list>
27 
28 #include "icl_core/BaseTypes.h"
30 
31 namespace icl_core {
32 
33 // \todo Create a wrapper class (and/or additional RT-safe implementations).
34 template <typename T>
35 class List : public std::list<T>
36 {
37 public:
38  typedef typename std::list<T>::size_type size_type;
39 
40  List() : std::list<T>() { }
41  List(const List& c) : std::list<T>(c) { }
42  List(const std::list<T>& c) : std::list<T>(c) { }
43  explicit List(size_type num, typename ConvertToRef<T>::ToConstRef val = DefaultConstruct<T>::C())
44  : std::list<T>(num, val)
45  { }
46  template <typename TInputIterator>
47  List(TInputIterator start, TInputIterator end) : std::list<T>(start, end) { }
48 };
49 
60 
61 }
62 
63 #endif
Helper definitions for template programming.
List(size_type num, typename ConvertToRef< T >::ToConstRef val=DefaultConstruct< T >::C())
Definition: List.h:43
List< uint8_t > Unsigned8List
Definition: List.h:50
List< int16_t > Signed16List
Definition: List.h:55
List< uint32_t > Unsigned32List
Definition: List.h:52
List< float > FloatList
Definition: List.h:58
List< int8_t > Signed8List
Definition: List.h:54
List< int32_t > Signed32List
Definition: List.h:56
List(const std::list< T > &c)
Definition: List.h:42
List< int64_t > Signed64List
Definition: List.h:57
List(const List &c)
Definition: List.h:41
List< uint64_t > Unsigned64List
Definition: List.h:53
List< double > DoubleList
Definition: List.h:59
Contains Interface base classes and base types.
List(TInputIterator start, TInputIterator end)
Definition: List.h:47
std::list< T >::size_type size_type
Definition: List.h:38
List< uint16_t > Unsigned16List
Definition: List.h:51


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58