const bool overlapping = false) const;
#endif
+
+ /**
+ * Determine an estimate for the memory
+ * consumption (in bytes) of this
+ * object.
+ */
+ unsigned int memory_consumption () const;
+
private:
/**
* A type that denotes the half
||
(range_1.begin == range_2.begin));
}
+
+ unsigned int memory_consumption () const
+ {
+ return sizeof(Range);
+ }
+
};
/**
//---------------------------------------------------------------------------
+#include <base/memory_consumption.h>
#include <base/index_set.h>
#include <list>
#endif
+
+unsigned int
+IndexSet::memory_consumption () const
+{
+ return MemoryConsumption::memory_consumption (ranges) +
+ MemoryConsumption::memory_consumption (is_compressed) +
+ MemoryConsumption::memory_consumption (index_space_size);
+}
+
+
+
DEAL_II_NAMESPACE_CLOSE
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams