#include <vector>#include <list>#include "Candidate/CandHandle.h"Go to the source code of this file.
Namespaces | |
| namespace | DataUtil |
Functions | |
| template<class OutputIterator, class CandDaughterType> | |
| OutputIterator | CDL2STL (const CandHandle &handle, OutputIterator result) |
| Base function to convert a candidate daughter list to an STL container of CandHandles. | |
| template<class CandDaughterType> | |
| std::vector< const CandDaughterType * > | CDL2STLvector (const CandHandle &handle) |
| Convert a Candidate's Daughter list to an STL vector of pointers to given candidate handle type. | |
| template<class CandDaughterType> | |
| std::vector< CandDaughterType * > | CDL2STLvector (CandHandle &handle) |
| non const | |
| template<class CandDaughterType> | |
| std::list< const CandDaughterType * > | CDL2STLlist (const CandHandle &handle) |
| Convert a Candidate's Daughter list to an STL list of pointers to given candidate handle type. | |
| template<class CandDaughterType> | |
| std::list< CandDaughterType * > | CDL2STLlist (CandHandle &handle) |
| nonconst version: | |
|
||||||||||
|
nonconst version:
Definition at line 160 of file CDL2STL.h. 00161 {
00162 typedef std::list<CandDaughterType*> dvec_t;
00163 dvec_t dv;
00164 typedef std::back_insert_iterator<dvec_t> dv_inserter;
00165 dv_inserter dvi(dv);
00166 DataUtil::CDL2STL<dv_inserter, CandDaughterType>(handle,dvi);
00167 return dv;
00168 }
|
|
||||||||||
|
non const
Definition at line 127 of file CDL2STL.h. 00128 {
00129 typedef std::vector<CandDaughterType*> dvec_t;
00130 dvec_t dv;
00131 typedef std::back_insert_iterator<dvec_t> dv_inserter;
00132
00133 dv_inserter dvi(dv);
00134 DataUtil::CDL2STL<dv_inserter, CandDaughterType>(handle,dvi);
00135 return dv;
00136 }
|
1.3.9.1