Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
EmptyValues.cpp 850 B
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
#include "MantidKernel/EmptyValues.h"
#include <climits>
#include <cfloat>

namespace Mantid {

/**
 * Returns what we consider an "empty" integer within a property
 * @returns An flag value
 */
int EMPTY_INT() { return INT_MAX; }

/**
 * Returns what we consider an "empty" long within a property
 * @returns An flag value
 */
long EMPTY_LONG() { return LONG_MAX; }

/**
 * Returns what we consider an "empty" int64_t within a property
 * @returns An flag value
 */
int64_t EMPTY_INT64() { return INT64_MAX; }

/**
 * Returns what we consider an "empty" double within a property
 * @returns An flag value
 */
double EMPTY_DBL() { return DBL_MAX / 2; }

} // namespace Mantid