Thrill
0.1
|
#include <tlx/die/core.hpp>
Go to the source code of this file.
Namespaces | |
tlx | |
Macros | |
#define | assert_equal(X, Y) tlx_assert_equal(X, Y) |
#define | assert_unequal(X, Y) tlx_assert_unequal(X, Y) |
#define | die(msg) tlx_die(msg) |
Instead of std::terminate(), throw the output the message via an exception. More... | |
#define | die_equal(X, Y) tlx_die_equal(X, Y) |
#define | die_if(X) tlx_die_if(X) |
#define | die_unequal(X, Y) tlx_die_unequal(X, Y) |
#define | die_unequal_eps(X, Y, eps) tlx_die_unequal_eps(X, Y, eps) |
#define | die_unequal_eps6(X, Y) tlx_die_unequal_eps6(X, Y) |
#define | die_unless(X) tlx_die_unless(X) |
#define | die_unless_throws(code, exception_type) tlx_die_unless_throws(code, exception_type) |
Define to check that [code] throws and exception of given type. More... | |
#define | die_verbose_equal(X, Y, msg) tlx_die_verbose_equal(X, Y, msg) |
#define | die_verbose_if(X, msg) tlx_die_verbose_if(X, msg) |
#define | die_verbose_unequal(X, Y, msg) tlx_die_verbose_unequal(X, Y, msg) |
#define | die_verbose_unequal_eps(X, Y, eps, msg) tlx_die_verbose_unequal_eps(X, Y, eps, msg) |
#define | die_verbose_unequal_eps6(X, Y, msg) tlx_die_verbose_unequal_eps6(X, Y, msg) |
#define | die_verbose_unless(X, msg) tlx_die_verbose_unless(X, msg) |
#define assert_equal | ( | X, | |
Y | |||
) | tlx_assert_equal(X, Y) |
Check that X == Y or die miserably, but output the values of X and Y for better debugging. Only active if NDEBUG is not defined.
Definition at line 55 of file die.hpp.
Referenced by examples::suffix_sorting::DC7Recursive().
#define assert_unequal | ( | X, | |
Y | |||
) | tlx_assert_unequal(X, Y) |
#define die | ( | msg | ) | tlx_die(msg) |
Instead of std::terminate(), throw the output the message via an exception.
Definition at line 22 of file die.hpp.
Referenced by Pool::allocate(), BlockPool::AllocateByteBlock(), StreamSink::AppendBlock(), Dispatcher::MpiAsync::connection(), ActionNode::DecConsumeCounter(), DIA< BfsNode >::Dispose(), File::GetReaderAt(), thrill::vfs::Hdfs3Glob(), thrill::vfs::Hdfs3OpenReadStream(), thrill::vfs::Hdfs3OpenWriteStream(), ActionNode::IncConsumeCounter(), thrill::net::mpi::Initialize(), JsonLogger::JsonLogger(), DIA< BfsNode >::Keep(), LoadPoints(), main(), ZipNode< ValueType, ZipFunction, Pad, UnequalCheck, NoRebalance, kNumInputs >::MainOp(), ZipWindowNode< ValueType, ZipFunction_, Pad_, UnequalCheck, UseStdArray, kNumInputs_ >::MainOp(), MergeNode< ValueType, Comparator, kNumInputs >::MainOp(), thrill::vfs::MakeBZip2ReadFilter(), thrill::vfs::MakeBZip2WriteFilter(), thrill::vfs::MakeGZipReadFilter(), thrill::vfs::MakeGZipWriteFilter(), BlockReader< CatBlockSource >::Next(), Multiplexer::OnMultiplexerHeader(), HyperLogLogRegisters< p >::operator+(), ReadBinaryNode< ValueType >::ReadBinaryNode(), ReadLinesNode::ReadLinesNode(), RunKMeansFile(), RunKMeansGenerated(), RunPageRankGenerated(), RunPageRankJoinGenerated(), RunStochasticGradFile(), thrill::vfs::S3Glob(), thrill::vfs::S3OpenReadStream(), thrill::vfs::S3OpenWriteStream(), ActionNode::SetConsumeCounter(), thrill::vfs::SysGlob(), and File::~File().
#define die_equal | ( | X, | |
Y | |||
) | tlx_die_equal(X, Y) |
#define die_if | ( | X | ) | tlx_die_if(X) |
#define die_unequal | ( | X, | |
Y | |||
) | tlx_die_unequal(X, Y) |
Check that X == Y or die miserably, but output the values of X and Y for better debugging.
Definition at line 50 of file die.hpp.
Referenced by Pool::AllocateFreeArena(), AsyncReadBuffer::DoCallback(), AsyncReadByteBlock::DoCallback(), thrill::mem::GPool(), main(), BlockPool::OnWriteComplete(), Pool::print(), Connection::SyncRecv(), and BlockPool::~BlockPool().
#define die_unequal_eps | ( | X, | |
Y, | |||
eps | |||
) | tlx_die_unequal_eps(X, Y, eps) |
#define die_unequal_eps6 | ( | X, | |
Y | |||
) | tlx_die_unequal_eps6(X, Y) |
#define die_unless | ( | X | ) | tlx_die_unless(X) |
Check condition X and die miserably if false. Same as assert() except this is also active in Release mode.
Definition at line 27 of file die.hpp.
Referenced by Pool::AllocateFreeArena(), BitStreamWriter< BlockWriter >::BitStreamWriter(), BlockPool::BlockPool(), MixStreamData::Close(), Multiplexer::Close(), CatStreamData::Close(), examples::suffix_sorting::DC3Recursive(), examples::suffix_sorting::DC7Recursive(), Pool::deallocate(), BlockPool::DecBlockPinCount(), BlockPool::DestroyBlock(), Dispatcher::DispatchOne(), BlockPool::EvictBlock(), BlockPool::EvictBlockLRU(), BlockReader< CatBlockSource >::GetItemBatch(), GolombBitStreamWriter< BlockWriter >::GolombBitStreamWriter(), thrill::mem::GPool(), BlockPool::IncBlockPinCount(), SelectDispatcher::Interrupt(), main(), Vector< D, double >::Make(), Multiplexer::OnCatStreamBlock(), Multiplexer::OnMixStreamBlock(), Multiplexer::OnMultiplexerHeader(), BlockPool::OnReadComplete(), MixStreamData::OnStreamBlock(), CatStreamData::OnStreamBlock(), MixStreamData::OnStreamBlockOrdered(), CatStreamData::OnStreamBlockOrdered(), BlockPool::OnWriteComplete(), StreamData::OnWriterClosed(), StreamSet< StreamData >::OnWriterClosed(), thrill::vfs::OpenReadStream(), thrill::data::OurNewHandler(), BlockPool::PinBlock(), Pool::print(), Vector< D, double >::Random(), ReadInputFile(), BlockPool::ReleaseInternalMemory(), MergeNode< ValueType, Comparator, kNumInputs >::SearchStep(), SortNode< ValueType, CompareFunction, SortAlgorithm, Stable >::SortAndWriteToFile(), thrill::api::TopoSortVisit(), and BlockPool::~BlockPool().
#define die_unless_throws | ( | code, | |
exception_type | |||
) | tlx_die_unless_throws(code, exception_type) |
#define die_verbose_equal | ( | X, | |
Y, | |||
msg | |||
) | tlx_die_verbose_equal(X, Y, msg) |
Die miserably if X == Y, but first output the values of X and Y for better debugging. Same as die_equal() except the user additionally passes a message.
#define die_verbose_if | ( | X, | |
msg | |||
) | tlx_die_verbose_if(X, msg) |
#define die_verbose_unequal | ( | X, | |
Y, | |||
msg | |||
) | tlx_die_verbose_unequal(X, Y, msg) |
Check that X == Y or die miserably, but output the values of X and Y for better debugging. Same as die_unequal() except the user additionally passes a message.
#define die_verbose_unequal_eps | ( | X, | |
Y, | |||
eps, | |||
msg | |||
) | tlx_die_verbose_unequal_eps(X, Y, eps, msg) |
Check that ABS(X - Y) <= eps or die miserably, but output the values of X and Y for better debugging. Same as die_unequal_eps() except the user additionally passes a message.
#define die_verbose_unequal_eps6 | ( | X, | |
Y, | |||
msg | |||
) | tlx_die_verbose_unequal_eps6(X, Y, msg) |
Check that ABS(X - Y) <= 0.000001 or die miserably, but output the values of X and Y for better debugging. Same as die_unequal_eps6() except the user additionally passes a message.
#define die_verbose_unless | ( | X, | |
msg | |||
) | tlx_die_verbose_unless(X, msg) |
Check condition X and die miserably if false. Same as die_unless() except the user additionally passes a message.