dtl::Diff3< elem, sequence > Class Template Reference

#include <dtl.hpp>

List of all members.

Public Member Functions

 Diff3 (sequence &a, sequence &b, sequence &c)
 ~Diff3 ()
bool isConflict () const
void setConflictSeparators (elem begin, elem sepa1, elem sepa2, elem end)
sequence getMergedSequence ()
bool merge ()
void compose ()

Private Types

typedef std::pair< elem, elemInfosesElem
typedef std::vector< sesElemsesElemVec
typedef std::vector< elem > elemVec

Private Member Functions

sequence merge_ ()
void forwardUntilEnd (sesElemVec &v, typename sesElemVec::iterator &it) const
void setEndFlag (sesElemVec &v, typename sesElemVec::iterator &it, bool &b) const
void addDecentSequence (sesElemVec &v, typename sesElemVec::iterator &it, elemVec &seq) const

Private Attributes

sequence A
sequence B
sequence C
sequence S
Diff< elem, sequence > diff_ba
Diff< elem, sequence > diff_bc
bool conflict
elem csepabegin
elem csepa1
elem csepa2
elem csepaend


Detailed Description

template<typename elem, typename sequence>
class dtl::Diff3< elem, sequence >

diff3 template sequence must support random_access_iterator.

Definition at line 755 of file dtl.hpp.


Member Typedef Documentation

template<typename elem , typename sequence >
typedef std::vector< elem > dtl::Diff3< elem, sequence >::elemVec [private]

Definition at line 759 of file dtl.hpp.

template<typename elem , typename sequence >
typedef std::pair< elem, elemInfo > dtl::Diff3< elem, sequence >::sesElem [private]

Definition at line 757 of file dtl.hpp.

template<typename elem , typename sequence >
typedef std::vector< sesElem > dtl::Diff3< elem, sequence >::sesElemVec [private]

Definition at line 758 of file dtl.hpp.


Constructor & Destructor Documentation

template<typename elem , typename sequence >
dtl::Diff3< elem, sequence >::Diff3 ( sequence &  a,
sequence &  b,
sequence &  c 
) [inline]

Definition at line 773 of file dtl.hpp.

template<typename elem , typename sequence >
dtl::Diff3< elem, sequence >::~Diff3 (  )  [inline]

Definition at line 777 of file dtl.hpp.


Member Function Documentation

template<typename elem , typename sequence >
void dtl::Diff3< elem, sequence >::addDecentSequence ( sesElemVec v,
typename sesElemVec::iterator &  it,
elemVec seq 
) const [inline, private]

Definition at line 915 of file dtl.hpp.

template<typename elem , typename sequence >
void dtl::Diff3< elem, sequence >::compose (  )  [inline]

Definition at line 817 of file dtl.hpp.

template<typename elem , typename sequence >
void dtl::Diff3< elem, sequence >::forwardUntilEnd ( sesElemVec v,
typename sesElemVec::iterator &  it 
) const [inline, private]

Definition at line 907 of file dtl.hpp.

template<typename elem , typename sequence >
sequence dtl::Diff3< elem, sequence >::getMergedSequence (  )  [inline]

Definition at line 790 of file dtl.hpp.

template<typename elem , typename sequence >
bool dtl::Diff3< elem, sequence >::isConflict (  )  const [inline]

Definition at line 779 of file dtl.hpp.

template<typename elem , typename sequence >
bool dtl::Diff3< elem, sequence >::merge (  )  [inline]

Definition at line 795 of file dtl.hpp.

template<typename elem , typename sequence >
sequence dtl::Diff3< elem, sequence >::merge_ (  )  [inline, private]

Definition at line 823 of file dtl.hpp.

template<typename elem , typename sequence >
void dtl::Diff3< elem, sequence >::setConflictSeparators ( elem  begin,
elem  sepa1,
elem  sepa2,
elem  end 
) [inline]

Definition at line 783 of file dtl.hpp.

template<typename elem , typename sequence >
void dtl::Diff3< elem, sequence >::setEndFlag ( sesElemVec v,
typename sesElemVec::iterator &  it,
bool &  b 
) const [inline, private]

Definition at line 911 of file dtl.hpp.


Member Data Documentation

template<typename elem , typename sequence >
sequence dtl::Diff3< elem, sequence >::A [private]

Definition at line 761 of file dtl.hpp.

template<typename elem , typename sequence >
sequence dtl::Diff3< elem, sequence >::B [private]

Definition at line 762 of file dtl.hpp.

template<typename elem , typename sequence >
sequence dtl::Diff3< elem, sequence >::C [private]

Definition at line 763 of file dtl.hpp.

template<typename elem , typename sequence >
bool dtl::Diff3< elem, sequence >::conflict [private]

Definition at line 767 of file dtl.hpp.

template<typename elem , typename sequence >
elem dtl::Diff3< elem, sequence >::csepa1 [private]

Definition at line 769 of file dtl.hpp.

template<typename elem , typename sequence >
elem dtl::Diff3< elem, sequence >::csepa2 [private]

Definition at line 770 of file dtl.hpp.

template<typename elem , typename sequence >
elem dtl::Diff3< elem, sequence >::csepabegin [private]

Definition at line 768 of file dtl.hpp.

template<typename elem , typename sequence >
elem dtl::Diff3< elem, sequence >::csepaend [private]

Definition at line 771 of file dtl.hpp.

template<typename elem , typename sequence >
Diff<elem, sequence> dtl::Diff3< elem, sequence >::diff_ba [private]

Definition at line 765 of file dtl.hpp.

template<typename elem , typename sequence >
Diff<elem, sequence> dtl::Diff3< elem, sequence >::diff_bc [private]

Definition at line 766 of file dtl.hpp.

template<typename elem , typename sequence >
sequence dtl::Diff3< elem, sequence >::S [private]

Definition at line 764 of file dtl.hpp.


The documentation for this class was generated from the following file:


 
©2009 Positive Technologies
 
Generated on Tue Jul 14 18:27:32 2009 for WebEngine by 
 
 
1.5.7
 
Get wpcObj at SourceForge.net. Fast, secure and Free Open Source software downloads