summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/NewKit/Array.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'dev/ZKA/NewKit/Array.hxx')
-rw-r--r--dev/ZKA/NewKit/Array.hxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/dev/ZKA/NewKit/Array.hxx b/dev/ZKA/NewKit/Array.hxx
index dcb6aede..22ee9f6a 100644
--- a/dev/ZKA/NewKit/Array.hxx
+++ b/dev/ZKA/NewKit/Array.hxx
@@ -37,9 +37,17 @@ namespace Kernel
return true;
}
- SizeT Count() const
+ const SizeT Count()
{
- return N;
+ SizeT count = 0;
+
+ for (SizeT i = 0; i < N; i++)
+ {
+ if (fArray[i])
+ ++count;
+ }
+
+ return count;
}
const T* CData()