#include <iostream>
#include <sstream>
#include <limits.h>
#include <float.h>
Go to the source code of this file.
|
| template<class T, unsigned int N> |
| static unsigned int | totalSize (const MultiDimArray< T, N > &ht) |
| template<class T, unsigned int N> |
| static unsigned int | validSize (const MultiDimArray< T, N > &ht) |
| template<class T> |
| static unsigned int | totalSize (const MultiDimArray< T, 1 > &ht) |
| template<class T> |
| static unsigned int | validSize (const MultiDimArray< T, 1 > &ht) |
| template<class T, unsigned int N> |
| void | dump (const MultiDimArray< T, N > &idh, std::ostream &os=std::cout, const std::string &prefix="(") |
| template<class T> |
| void | dump (const MultiDimArray< T, 1 > &idh, std::ostream &os=std::cout, const std::string &prefix="(") |
| template<class T, unsigned int N, class K> |
| void | dumpOneEntry (const MultiDimArray< T, N > &idh, const K &indices, std::ostream &os=std::cout, const std::string &prefix="(") |
| template<class T, class K> |
| void | dumpOneEntry (const MultiDimArray< T, 1 > &idh, const K &indices, std::ostream &os=std::cout, const std::string &prefix="(") |
| template<class T, unsigned int N> |
| std::ostream & | operator<< (std::ostream &os, const MultiDimArray< T, N > &idh) |
◆ dump() [1/2]
◆ dump() [2/2]
template<class T, unsigned int N>
Definition at line 358 of file MultiDimArray.h.
359 {
362 for (
int idx = idxMin;
idx <= idxMax; ++
idx ) {
363 std::ostringstream oss;
365 dump( idh[idx], os, prefix + oss.str() );
366 }
367}
◆ dumpOneEntry() [1/2]
template<class T, class K>
Definition at line 415 of file MultiDimArray.h.
416 {
419}
std::pair< long int, long int > indices
◆ dumpOneEntry() [2/2]
template<class T, unsigned int N, class K>
Definition at line 406 of file MultiDimArray.h.
407 {
409 std::ostringstream oss;
411 dumpOneEntry( idh[idx], indices, os, prefix + oss.str() );
412}
void dumpOneEntry(const MultiDimArray< T, N > &idh, const K &indices, std::ostream &os=std::cout, const std::string &prefix="(")
◆ operator<<()
template<class T, unsigned int N>
◆ totalSize() [1/2]
Definition at line 332 of file MultiDimArray.h.
332 {
334}
unsigned int size() const
Size of this field.
◆ totalSize() [2/2]
template<class T, unsigned int N>
Definition at line 310 of file MultiDimArray.h.
310 {
311 unsigned int nTotal = 0;
314 for (
int idx = idxMin;
idx <= idxMax; ++
idx ) {
316 }
317 return nTotal;
318}
static unsigned int totalSize(const MultiDimArray< T, N > &ht)
◆ validSize() [1/2]
Definition at line 337 of file MultiDimArray.h.
337 {
338 unsigned int cnt = 0;
341 for (
int idx = idxMin;
idx <= idxMax; ++
idx ) {
343 }
345}
static const SubType & invalidSubType()
◆ validSize() [2/2]
template<class T, unsigned int N>
Definition at line 321 of file MultiDimArray.h.
321 {
322 unsigned int nTotal = 0;
325 for (
int idx = idxMin;
idx <= idxMax; ++
idx ) {
327 }
328 return nTotal;
329}
static unsigned int validSize(const MultiDimArray< T, N > &ht)
◆ MultiDimArray< T, N >::s_invalidSubType
template<class T, unsigned int N>