Loading...
Searching...
No Matches
elxCoreMainGTestUtilities.h File Reference
`#include <elxBaseComponent.h>`
`#include <elxParameterObject.h>`
`#include <elxConversion.h>`
`#include <itkDeref.h>`
`#include <itkImage.h>`
`#include <itkImageBase.h>`
`#include <itkImageBufferRange.h>`
`#include <itkImageRegionRange.h>`
`#include <itkIndex.h>`
`#include <itkSize.h>`
`#include <algorithm>`
`#include <array>`
`#include <cmath>`
`#include <initializer_list>`
`#include <iterator>`
`#include <map>`
`#include <numeric>`
`#include <random>`
`#include <string>`
`#include <type_traits>`
`#include <vector>`
`#include <gtest/gtest.h>`
Include dependency graph for elxCoreMainGTestUtilities.h:

Go to the source code of this file.

## Data Structures

class | elastix::CoreMainGTestUtilities::Exception
struct | elastix::CoreMainGTestUtilities::ImageDomain< VDimension >
struct | elastix::CoreMainGTestUtilities::TypeHolder< TNested >

## Namespaces

namespace | elastix
namespace | elastix::CoreMainGTestUtilities

## Macros

#define | ELX_GTEST_EXPECT_FALSE_AND_THROW_EXCEPTION_IF(condition)

## Functions

template<typename T>
itk::SmartPointer< T > | elastix::CoreMainGTestUtilities::CheckNew ()
std::vector< double > | elastix::CoreMainGTestUtilities::ConvertStringsToVectorOfDouble (const std::vector< std::string > &strings)
template<std::vcl_size_t VDimension>
itk::Offset< VDimension > | elastix::CoreMainGTestUtilities::ConvertToOffset (const std::vector< double > &doubles)
template<typename TPixel, unsigned VImageDimension>
auto | elastix::CoreMainGTestUtilities::CreateImage (const ImageDomain< VImageDimension > &imageDomain)
template<typename TPixel, unsigned VImageDimension>
auto | elastix::CoreMainGTestUtilities::CreateImage (const itk::Size< VImageDimension > &imageSize)
template<typename TPixel, unsigned VImageDimension>
auto | elastix::CoreMainGTestUtilities::CreateImageFilledWithSequenceOfNaturalNumbers (const ImageDomain< VImageDimension > &imageDomain)
template<typename TPixel, unsigned VImageDimension>
auto | elastix::CoreMainGTestUtilities::CreateImageFilledWithSequenceOfNaturalNumbers (const itk::Size< VImageDimension > &imageSize)
template<unsigned VImageDimension>
std::map< std::string, std::vector< std::string > > | elastix::CoreMainGTestUtilities::CreateParameterMap (std::initializer_list< std::pair< std::string, std::string > > initializerList)
std::map< std::string, std::vector< std::string > > | elastix::CoreMainGTestUtilities::CreateParameterMap (std::initializer_list< std::pair< std::string, std::string > > initializerList)
std::map< std::string, std::vector< std::string > > | elastix::CoreMainGTestUtilities::CreateParameterMap (std::initializer_list< std::pair< std::string, std::vector< std::string > > > initializerList)
ParameterObject::Pointer | elastix::CoreMainGTestUtilities::CreateParameterObject (const ParameterObject::ParameterMapType &parameterMap)
ParameterObject::Pointer | elastix::CoreMainGTestUtilities::CreateParameterObject (std::initializer_list< std::pair< std::string, std::string > > initializerList)
template<unsigned int VImageDimension>
auto | elastix::CoreMainGTestUtilities::CreateRandomImageDomain (std::mt19937 &randomNumberEngine)
template<typename TSmartPointer>
decltype(auto) | elastix::CoreMainGTestUtilities::DerefSmartPointer (const TSmartPointer &ptr)
template<typename TPixel, unsigned int VImageDimension>
void | elastix::CoreMainGTestUtilities::FillImageRegion (itk::Image< TPixel, VImageDimension > &image, const itk::Index< VImageDimension > &regionIndex, const itk::Size< VImageDimension > &regionSize)
template<typename T>
decltype(T().front()) | elastix::CoreMainGTestUtilities::Front (T &container)
template<typename TRandomNumberEngine>
int | elastix::CoreMainGTestUtilities::GenerateRandomSign (TRandomNumberEngine &randomNumberEngine)
std::string | elastix::CoreMainGTestUtilities::GetCurrentBinaryDirectoryPath ()
std::string | elastix::CoreMainGTestUtilities::GetDataDirectoryPath ()
std::string | elastix::CoreMainGTestUtilities::GetNameOfTest (const testing::Test &)
template<typename TFilter>
std::vector< double > | elastix::CoreMainGTestUtilities::GetTransformParametersFromFilter (TFilter &filter)
std::vector< double > | elastix::CoreMainGTestUtilities::GetTransformParametersFromMaps (const std::vector< ParameterObject::ParameterMapType > &transformParameterMaps)

## Variables

constexpr itk::SizeValueType | elastix::CoreMainGTestUtilities::minimumImageSizeValue { 4 }

## Macro Definition Documentation

## ELX_GTEST_EXPECT_FALSE_AND_THROW_EXCEPTION_IF

#define ELX_GTEST_EXPECT_FALSE_AND_THROW_EXCEPTION_IF | ( |  | condition | ) |

Value:
if (condition) \
{ \
EXPECT_FALSE(true) << "Expected to be false: " #condition; \
throw ::elastix::CoreMainGTestUtilities::Exception("Exception thrown because " #condition); \
} \
static_assert(true, "Expect a semi-colon ';' at the end of a macro call")

Expect the specified condition to be false, and throw an exception if it is true.

Definition at line 81 of file elxCoreMainGTestUtilities.h.

Generated on 1768596610 for elastix by 1.15.0 |