From 20b831f0dda420287ae519685e94da2ef017c78f Mon Sep 17 00:00:00 2001 From: ponchio Date: Sun, 4 Jul 2004 15:23:48 +0000 Subject: [PATCH] Debug --- apps/nexus/vfile.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/nexus/vfile.h b/apps/nexus/vfile.h index 4716961a..77124c80 100644 --- a/apps/nexus/vfile.h +++ b/apps/nexus/vfile.h @@ -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 @@ -222,6 +225,11 @@ template 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.