diff options
Diffstat (limited to 'Carpet/CarpetLib/src/bboxset.hh')
-rw-r--r-- | Carpet/CarpetLib/src/bboxset.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/bboxset.hh b/Carpet/CarpetLib/src/bboxset.hh index 1a797e2c5..45e0dc0f2 100644 --- a/Carpet/CarpetLib/src/bboxset.hh +++ b/Carpet/CarpetLib/src/bboxset.hh @@ -142,6 +142,9 @@ public: // iterator begin () const { return bs.begin(); } // iterator end () const { return bs.end(); } + // Memory usage + size_t memory () const { return memoryof (bs); } + // Output void output (ostream& os) const; }; @@ -246,6 +249,12 @@ inline bool operator>= (const bboxset<T,D>& s, const bbox<T,D>& b) { +// Memory usage +template<class T, int D> +inline size_t memoryof (bboxset<T,D> const & s) { return s.memory(); } + + + // Output template<class T,int D> inline ostream& operator<< (ostream& os, const bboxset<T,D>& s) { |