This commit is contained in:
Federico Ponchio 2004-07-04 15:23:48 +00:00
parent 482bb368f1
commit 20b831f0dd
1 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.5 2004/07/02 17:41:37 ponchio
Debug.
Revision 1.4 2004/07/02 13:02:39 ponchio
Added GetRegion, Read and Write
@ -223,6 +226,11 @@ template <class T> class VFile {
return *(buffer.data + offset);
}
void PushBack(const T &t) {
Resize(n_elements+1);
operator[](n_elements-1) = t;
}
/** you can get a region instead of an element but:
1)region must be Chunk aligned.
2)you get impredictable results if regions overlap or mix with operator[]