Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

testUtils.h File Reference

A Set of utilities to test octrees. More...

#include <mpi.h>
#include <vector>
#include "testUtils.txx"

Go to the source code of this file.

Namespaces

namespace  ot
namespace  ot::test
namespace  par
namespace  par::test
namespace  seq
namespace  seq::test
namespace  test

Functions

template<typename T>
bool isSorted (const std::vector< T > &nodes, MPI_Comm comm)
template<typename T>
bool isSorted (T *nodes, unsigned int sz)
template<typename T>
bool isSorted (const std::vector< T > &nodes)
template<typename T>
bool isUniqueAndSorted (const std::vector< T > &nodes, MPI_Comm comm)
template<typename T>
bool isUniqueAndSorted (T *nodes, unsigned int sz)
template<typename T>
bool isUniqueAndSorted (const std::vector< T > &nodes)


Detailed Description

A Set of utilities to test octrees.

Author:
Rahul S. Sampath, rahul.sampath@gmail.com

Definition in file testUtils.h.


Function Documentation

template<typename T>
bool par::test::isSorted const std::vector< T > &  nodes,
MPI_Comm  comm
 

Definition at line 70 of file testUtils.txx.

References par::splitComm2way().

template<typename T>
bool seq::test::isSorted T *  nodes,
unsigned int  sz
 

Definition at line 28 of file testUtils.txx.

template<typename T>
bool seq::test::isSorted const std::vector< T > &  nodes  ) 
 

Parameters:
nodes[in] The vector of nodes that have to be tested.
Returns:
true if it is sorted and false otherwise

Definition at line 16 of file testUtils.txx.

template<typename T>
bool par::test::isUniqueAndSorted const std::vector< T > &  nodes,
MPI_Comm  comm
 

Definition at line 124 of file testUtils.txx.

References par::splitComm2way().

template<typename T>
bool seq::test::isUniqueAndSorted T *  nodes,
unsigned int  sz
 

Definition at line 52 of file testUtils.txx.

template<typename T>
bool seq::test::isUniqueAndSorted const std::vector< T > &  nodes  ) 
 

Parameters:
nodes[in] The vector of nodes that have to be tested.
Returns:
true if it is sorted and unique and false otherwise

Definition at line 40 of file testUtils.txx.


Generated on Tue Mar 24 16:14:14 2009 for DENDRO by  doxygen 1.3.9.1