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
YAML_PM::IterPriv::IterPriv
IterPriv()
Definition: iterpriv.h:21
YAML_PM
Definition: aliasmanager.h:11
YAML_PM::IterPriv::IT_NONE
@ IT_NONE
Definition: iterpriv.h:25
YAML_PM::IterPriv::IterPriv
IterPriv(std::map< Node *, Node *, ltnode >::const_iterator it)
Definition: iterpriv.h:23
YAML_PM::IterPriv::IT_SEQ
@ IT_SEQ
Definition: iterpriv.h:25
ltnode.h
YAML_PM::IterPriv
Definition: iterpriv.h:19
YAML_PM::IterPriv::IterPriv
IterPriv(std::vector< Node * >::const_iterator it)
Definition: iterpriv.h:22
YAML_PM::IterPriv::type
ITER_TYPE type
Definition: iterpriv.h:26
YAML_PM::IterPriv::ITER_TYPE
ITER_TYPE
Definition: iterpriv.h:25
YAML_PM::IterPriv::IT_MAP
@ IT_MAP
Definition: iterpriv.h:25
YAML_PM::IterPriv::seqIter
std::vector< Node * >::const_iterator seqIter
Definition: iterpriv.h:28
YAML_PM::IterPriv::mapIter
std::map< Node *, Node *, ltnode >::const_iterator mapIter
Definition: iterpriv.h:29


mp2p_icp
Author(s):
autogenerated on Fri Dec 20 2024 03:45:59