Castor3D 0.16.0
Multiplatform 3D engine
Classes | Typedefs | Functions | Variables
castor::manip Namespace Reference

Classes

struct  BaseNumPut
 A custom number output facet. More...
 
struct  BasicBaseManip
 Defines a base manipulator type, its what the built-in stream manipulators do when they take parameters, only they return an opaque type. More...
 
struct  DigitChars
 
struct  DigitChars< char >
 
struct  DigitChars< char16_t >
 
struct  DigitChars< char32_t >
 
struct  DigitChars< char8_t >
 
struct  DigitChars< wchar_t >
 

Typedefs

using BaseManip = BasicBaseManip< char >
 
using WBaseManip = BasicBaseManip< wchar_t >
 
using XBaseManip = BasicBaseManip< xchar >
 
using U32BaseManip = BasicBaseManip< u32char >
 

Functions

template<typename CharType >
BasicBaseManip< CharType > baseT (int b)
 Stream operator.
 
BaseManip base (int b)
 Stream operator.
 
WBaseManip wbase (int b)
 Stream operator.
 
XBaseManip xbase (int b)
 Stream operator.
 
U32BaseManip u32base (int b)
 Stream operator.
 
std::ostream & operator<< (std::ostream &stream, const manip::BaseManip &manip)
 Stream operator.
 
std::wostream & operator<< (std::wostream &stream, const manip::WBaseManip &manip)
 Stream operator.
 
U32OutputStreamoperator<< (U32OutputStream &stream, const manip::U32BaseManip &manip)
 Stream operator.
 

Variables

template<typename CharType >
std::basic_string_view< CharType > constexpr digitCharLcT = DigitChars< CharType >::digitCharLc
 
template<typename CharType >
std::basic_string_view< CharType > constexpr digitCharUcT = DigitChars< CharType >::digitCharUc
 

Typedef Documentation

◆ BaseManip

◆ U32BaseManip

◆ WBaseManip

◆ XBaseManip

Function Documentation

◆ base()

BaseManip castor::manip::base ( int b)
inline

Stream operator.

Remarks
Creates a manipulator, to be able to use it in a stream
Parameters
[in]bThe base

Referenced by castor::manip::BaseNumPut< CharType >::doPutHelper().

Here is the caller graph for this function:

◆ baseT()

template<typename CharType >
BasicBaseManip< CharType > castor::manip::baseT ( int b)
inline

Stream operator.

Remarks
Creates a manipulator, to be able to use it in a stream
Parameters
[in]bThe base

◆ operator<<() [1/3]

std::ostream & castor::manip::operator<< ( std::ostream & stream,
const manip::BaseManip & manip )
inline

Stream operator.

Remarks
We need this so we can apply our custom stream manipulator to the stream.
Parameters
[in]streamThe stream
[in]manipThe manipulator

◆ operator<<() [2/3]

std::wostream & castor::manip::operator<< ( std::wostream & stream,
const manip::WBaseManip & manip )
inline

Stream operator.

Remarks
We need this so we can apply our custom stream manipulator to the stream.
Parameters
[in]streamThe stream
[in]manipThe manipulator

◆ operator<<() [3/3]

U32OutputStream & castor::manip::operator<< ( U32OutputStream & stream,
const manip::U32BaseManip & manip )
inline

Stream operator.

Remarks
We need this so we can apply our custom stream manipulator to the stream.
Parameters
[in]streamThe stream
[in]manipThe manipulator

◆ u32base()

U32BaseManip castor::manip::u32base ( int b)
inline

Stream operator.

Remarks
Creates a manipulator, to be able to use it in a stream
Parameters
[in]bThe base

◆ wbase()

WBaseManip castor::manip::wbase ( int b)
inline

Stream operator.

Remarks
Creates a manipulator, to be able to use it in a stream
Parameters
[in]bThe base

◆ xbase()

XBaseManip castor::manip::xbase ( int b)
inline

Stream operator.

Remarks
Creates a manipulator, to be able to use it in a stream
Parameters
[in]bThe base

Variable Documentation

◆ digitCharLcT

template<typename CharType >
std::basic_string_view< CharType > constexpr castor::manip::digitCharLcT = DigitChars< CharType >::digitCharLc
inlineconstexpr

◆ digitCharUcT

template<typename CharType >
std::basic_string_view< CharType > constexpr castor::manip::digitCharUcT = DigitChars< CharType >::digitCharUc
inlineconstexpr