iterpriv.h
Go to the documentation of this file.
00001 #ifndef ITERPRIV_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
00002 #define ITERPRIV_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
00003 
00004 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
00005 #pragma once
00006 #endif
00007 
00008 
00009 #include "yaml-cpp-pm/ltnode.h"
00010 #include <vector>
00011 #include <map>
00012 
00013 namespace YAML_PM
00014 {
00015         class Node;
00016 
00017         // IterPriv
00018         // . The implementation for iterators - essentially a union of sequence and map iterators.
00019         struct IterPriv
00020         {
00021                 IterPriv(): type(IT_NONE) {}
00022                 IterPriv(std::vector <Node *>::const_iterator it): type(IT_SEQ), seqIter(it) {}
00023                 IterPriv(std::map <Node *, Node *, ltnode>::const_iterator it): type(IT_MAP), mapIter(it) {}
00024 
00025                 enum ITER_TYPE { IT_NONE, IT_SEQ, IT_MAP };
00026                 ITER_TYPE type;
00027 
00028                 std::vector <Node *>::const_iterator seqIter;
00029                 std::map <Node *, Node *, ltnode>::const_iterator mapIter;
00030         };
00031 }
00032 
00033 #endif // ITERPRIV_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM


libpointmatcher
Author(s):
autogenerated on Mon Sep 14 2015 02:59:06