Debug
This commit is contained in:
parent
482bb368f1
commit
20b831f0dd
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.4 2004/07/02 13:02:39 ponchio
|
||||||
Added GetRegion, Read and Write
|
Added GetRegion, Read and Write
|
||||||
|
|
||||||
|
@ -223,6 +226,11 @@ template <class T> class VFile {
|
||||||
return *(buffer.data + offset);
|
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:
|
/** you can get a region instead of an element but:
|
||||||
1)region must be Chunk aligned.
|
1)region must be Chunk aligned.
|
||||||
2)you get impredictable results if regions overlap or mix with operator[]
|
2)you get impredictable results if regions overlap or mix with operator[]
|
||||||
|
|
Loading…
Reference in New Issue