VHISTlib  1.84.0.3018
/daten/ahuesgen/projects/vhist/code/vhistlib/include/vhistdifflib/vhistdiffresult.h
00001 /* $HEADERS
00002  $Id: vhistdiffresult.h 2179 2011-06-24 09:03:24Z ahuesgen $
00003  */
00004 
00005 #ifndef VHISTDIFFRESULT_H
00006 #define VHISTDIFFRESULT_H
00007 
00008 #include <QHash>
00009 #include <QList>
00010 
00011 #include "../shared/misc_defines.h"
00012 #include "diffdefines.h"
00013 #include "path.h"
00014 
00015 namespace vhist
00016 {
00017 
00018 class Path;
00019 
00020 
00021 class VHIST_EXTERN VhistDiffResult
00022 {
00023     public:
00024         VhistDiffResult();
00025         ~VhistDiffResult();
00026         VhistDiffResult(const VhistDiffResult& rhs);
00027         VhistDiffResult(const Associations& associations,
00028                 const Associations& revAssociations,
00029                 const QHash<NodeId, bool> nodeMovedTree1,
00030                 const QHash<NodeId, bool> nodeMovedTree2);
00031 
00032         VhistDiffResult& operator=(const VhistDiffResult& rhs);
00033 
00034     public: // getter
00035         NodeId association(NodeId nodeId, TreeId treeId) const;
00036         bool associated(NodeId nodeId, TreeId treeId) const;
00037         bool parentChanged(NodeId nodeId, TreeId treeId) const;
00038 
00039     private:
00040         Associations m_associations;
00041         Associations m_revAssociations;
00042         QHash<NodeId, bool> m_nodeMovedTree1;
00043         QHash<NodeId, bool> m_nodeMovedTree2;
00044 };
00045 
00046 typedef QList<VhistDiffResult> VhistDiffResults;
00047 
00048 }
00049 
00050 #endif // VHISTDIFFRESULT_H

VHISTlib 1.84.0.3018 of Jun 28 2013, generated by doxygen.