AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::slic::detail Namespace Reference

Classes

struct  FalseType
 Variable of a type that evaluates as false. More...
 

Functions

template<typename T >
void printArray (std::ostream &os, const std::string &name, const T *data, axom::IndexType n)
 Print an array to a stream, moving the data to the host, if needed. More...
 
template<typename ContainerType >
void printContainer (std::ostream &os, const std::string &name, const ContainerType &container)
 Print a container to a stream, moving the data to the host, if needed. More...
 

Variables

static const FalseType false_value
 

Function Documentation

◆ printArray()

template<typename T >
void axom::slic::detail::printArray ( std::ostream &  os,
const std::string &  name,
const T *  data,
axom::IndexType  n 
)

Print an array to a stream, moving the data to the host, if needed.

Template Parameters
TThe element type for the data array.
Parameters
osThe stream to which the data will be written.
nameThe name of the data.
dataA pointer to the data.
nThe number of elements in the array.

References axom::copy(), and axom::deallocate().

◆ printContainer()

template<typename ContainerType >
void axom::slic::detail::printContainer ( std::ostream &  os,
const std::string &  name,
const ContainerType &  container 
)

Print a container to a stream, moving the data to the host, if needed.

Template Parameters
ContainerTypeA container template type that supplies data() and size() methods.
Parameters
osThe stream to which the data will be written.
nameThe name of the view.
containerThe container to print.

References printArray().

Variable Documentation

◆ false_value

const FalseType axom::slic::detail::false_value
static