4 Hunk::iterator
Hunk::begin() const
7 iter
.it
= _snippets
.begin();
10 Hunk::iterator
Hunk::end() const
13 iter
.it
= _snippets
.end();
18 void Hunk::_copy(const Hunk
&h
)
20 _original_from_line
= h
._original_from_line
;
21 _modified_from_line
= h
._modified_from_line
;
23 vector
<Snippet
*>::const_iterator it
= h
._snippets
.begin();
24 vector
<Snippet
*>::const_iterator it_end
= h
._snippets
.end();
25 for(;it
!= it_end
; it
++){
26 _snippets
.push_back(new Snippet(**it
));
32 vector
<Snippet
*>::const_iterator it
= _snippets
.begin();
33 vector
<Snippet
*>::const_iterator it_end
= _snippets
.end();
34 for(;it
!= it_end
; it
++){