iterpriv.h
Go to the documentation of this file.
1 #ifndef ITERPRIV_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
2 #define ITERPRIV_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
3 
4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
5 #pragma once
6 #endif
7 
8 
9 #include "yaml-cpp-pm/ltnode.h"
10 #include <vector>
11 #include <map>
12 
13 namespace YAML_PM
14 {
15  class Node;
16 
17  // IterPriv
18  // . The implementation for iterators - essentially a union of sequence and map iterators.
19  struct IterPriv
20  {
22  IterPriv(std::vector <Node *>::const_iterator it): type(IT_SEQ), seqIter(it) {}
23  IterPriv(std::map <Node *, Node *, ltnode>::const_iterator it): type(IT_MAP), mapIter(it) {}
24 
27 
28  std::vector <Node *>::const_iterator seqIter;
29  std::map <Node *, Node *, ltnode>::const_iterator mapIter;
30  };
31 }
32 
33 #endif // ITERPRIV_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
std::vector< Node * >::const_iterator seqIter
Definition: iterpriv.h:28
std::map< Node *, Node *, ltnode >::const_iterator mapIter
Definition: iterpriv.h:29
IterPriv(std::map< Node *, Node *, ltnode >::const_iterator it)
Definition: iterpriv.h:23
IterPriv(std::vector< Node *>::const_iterator it)
Definition: iterpriv.h:22
ITER_TYPE type
Definition: iterpriv.h:26


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:38:02