AiLibrary  v1.3.0
A single-header C++ Library from Ailurus Studio
Print Functions

Functions providing the ability to print your data. More...

Functions

template<typename T >
INLINE void ai::printMatrix (const std::vector< std::vector< T > > &matrix, const bool transpose=false, const int precision=5)
 
template<typename T >
INLINE void ai::printVector (const std::vector< T > &vector, const int precision=5)
 
template<typename T >
INLINE void ai::print (const std::vector< std::vector< T > > &matrix, const bool transpose=false, const int precision=5)
 
template<typename T >
INLINE void ai::print (const std::vector< T > &vector, const int precision=5)
 
template<typename T >
INLINE void ai::print (const T value, const std::string name=std::string("Value"))
 
static std::string ai::black ("\3[30m")
 Terminal color code for black. More...
 
static std::string ai::red ("\3[31m")
 Terminal color code for red. More...
 
static std::string ai::green ("\3[32m")
 Terminal color code for green. More...
 
static std::string ai::yellow ("\3[33m")
 Terminal color code for yellow. More...
 
static std::string ai::blue ("\3[34m")
 Terminal color code for blue. More...
 
static std::string ai::magenta ("\3[35m")
 Terminal color code for magenta. More...
 
static std::string ai::cyan ("\3[36m")
 Terminal color code for cyan. More...
 
static std::string ai::white ("\3[37m")
 Terminal color code for white. More...
 
static std::string ai::bold ("\3[1m")
 Terminal style code for bold. More...
 
static std::string ai::underline ("\3[4m")
 Terminal style code for underline. More...
 
static std::string ai::reset ("\3[0m")
 Terminal code to reset special formatting. More...
 
template<typename T >
INLINE void ai::printStyle (const T income, const std::string style)
 
template<typename T >
INLINE void ai::printBlack (const T income)
 
template<typename T >
INLINE void ai::printRed (const T income)
 
template<typename T >
INLINE void ai::printGreen (const T income)
 
template<typename T >
INLINE void ai::printYellow (const T income)
 
template<typename T >
INLINE void ai::printBlue (const T income)
 
template<typename T >
INLINE void ai::printMagenta (const T income)
 
template<typename T >
INLINE void ai::printCyan (const T income)
 
template<typename T >
INLINE void ai::printWhite (const T income)
 
template<typename T >
INLINE void ai::printBold (const T income)
 
template<typename T >
INLINE void ai::printUnderline (const T income)
 
INLINE void ai::printAllStyles ()
 
INLINE void ai::clearStyles ()
 

Detailed Description

Group of functions that prints your data and its parameters for quick analysis

Function Documentation

◆ black()

static std::string ai::black ( "\30m"  )
static

This terminal control sequences sets black font color

Here is the caller graph for this function:

◆ blue()

static std::string ai::blue ( "\34m"  )
static

This terminal control sequences sets blue font color

Here is the caller graph for this function:

◆ bold()

static std::string ai::bold ( "\1m"  )
static

This terminal control sequences sets bold font style

Here is the caller graph for this function:

◆ clearStyles()

INLINE void ai::clearStyles ( )
Here is the call graph for this function:

◆ cyan()

static std::string ai::cyan ( "\36m"  )
static

This terminal control sequences sets cyan font color

Here is the caller graph for this function:

◆ green()

static std::string ai::green ( "\32m"  )
static

This terminal control sequences sets green font color

Here is the caller graph for this function:

◆ magenta()

static std::string ai::magenta ( "\35m"  )
static

This terminal control sequences sets magenta font color

Here is the caller graph for this function:

◆ print() [1/3]

template<typename T >
INLINE void ai::print ( const std::vector< std::vector< T > > &  matrix,
const bool  transpose = false,
const int  precision = 5 
)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ print() [2/3]

template<typename T >
INLINE void ai::print ( const std::vector< T > &  vector,
const int  precision = 5 
)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ print() [3/3]

template<typename T >
INLINE void ai::print ( const T  value,
const std::string  name = std::string("Value") 
)
Template Parameters
TAny printable type

◆ printAllStyles()

INLINE void ai::printAllStyles ( )
Here is the call graph for this function:

◆ printBlack()

template<typename T >
INLINE void ai::printBlack ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ printBlue()

template<typename T >
INLINE void ai::printBlue ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ printBold()

template<typename T >
INLINE void ai::printBold ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ printCyan()

template<typename T >
INLINE void ai::printCyan ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ printGreen()

template<typename T >
INLINE void ai::printGreen ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ printMagenta()

template<typename T >
INLINE void ai::printMagenta ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ printMatrix()

template<typename T >
INLINE void ai::printMatrix ( const std::vector< std::vector< T > > &  matrix,
const bool  transpose = false,
const int  precision = 5 
)
Template Parameters
TAny printable type
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printRed()

template<typename T >
INLINE void ai::printRed ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ printStyle()

template<typename T >
INLINE void ai::printStyle ( const T  income,
const std::string  style 
)
Template Parameters
TAny printable type
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printUnderline()

template<typename T >
INLINE void ai::printUnderline ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ printVector()

template<typename T >
INLINE void ai::printVector ( const std::vector< T > &  vector,
const int  precision = 5 
)
Template Parameters
TAny printable type
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printWhite()

template<typename T >
INLINE void ai::printWhite ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ printYellow()

template<typename T >
INLINE void ai::printYellow ( const T  income)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ red()

static std::string ai::red ( "\31m"  )
static

This terminal control sequences sets red font color

Here is the caller graph for this function:

◆ reset()

static std::string ai::reset ( "\0m"  )
static

This terminal control sequences resets font to the default state

Here is the caller graph for this function:

◆ underline()

static std::string ai::underline ( "\4m"  )
static

This terminal control sequences sets underline font style

Here is the caller graph for this function:

◆ white()

static std::string ai::white ( "\37m"  )
static

This terminal control sequences sets white font color

Here is the caller graph for this function:

◆ yellow()

static std::string ai::yellow ( "\33m"  )
static

This terminal control sequences sets yellow font color

Here is the caller graph for this function: