A Discrete-Event Network Simulator
API
Public Member Functions | Private Attributes | Friends | List of all members
ns3::int64x64::test::Printer Class Reference

Pretty printer for test cases. More...

Public Member Functions

 Printer (const int64_t high, const uint64_t low)
 Construct from high and low words of Q64.64 representation. More...
 
 Printer (const int64x64_t value)
 Construct from an int64x64_t Q64.64 value. More...
 

Private Attributes

bool m_haveInt
 Do we have a full int64x64_t value? More...
 
int64_t m_high
 The high (integer) word. More...
 
uint64_t m_low
 The low (fractional) word. More...
 
int64x64_t m_value
 The int64x64_t value. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const Printer &p)
 Output streamer, the main reason for this class. More...
 

Detailed Description

Pretty printer for test cases.

Definition at line 60 of file int64x64-test-suite.cc.

Constructor & Destructor Documentation

◆ Printer() [1/2]

ns3::int64x64::test::Printer::Printer ( const int64_t  high,
const uint64_t  low 
)
inline

Construct from high and low words of Q64.64 representation.

Parameters
[in]highThe integer portion.
[in]lowThe fractional portion.

Definition at line 69 of file int64x64-test-suite.cc.

◆ Printer() [2/2]

ns3::int64x64::test::Printer::Printer ( const int64x64_t  value)
inline

Construct from an int64x64_t Q64.64 value.

Parameters
[in]valueThe value.

Definition at line 81 of file int64x64-test-suite.cc.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Printer p 
)
friend

Output streamer, the main reason for this class.

Parameters
[in]osThe stream.
[in]pThe value to print.
Returns
The stream.

Definition at line 104 of file int64x64-test-suite.cc.

Member Data Documentation

◆ m_haveInt

bool ns3::int64x64::test::Printer::m_haveInt
private

Do we have a full int64x64_t value?

Definition at line 98 of file int64x64-test-suite.cc.

Referenced by ns3::int64x64::test::operator<<().

◆ m_high

int64_t ns3::int64x64::test::Printer::m_high
private

The high (integer) word.

Definition at line 100 of file int64x64-test-suite.cc.

Referenced by ns3::int64x64::test::operator<<().

◆ m_low

uint64_t ns3::int64x64::test::Printer::m_low
private

The low (fractional) word.

Definition at line 101 of file int64x64-test-suite.cc.

Referenced by ns3::int64x64::test::operator<<().

◆ m_value

int64x64_t ns3::int64x64::test::Printer::m_value
private

The int64x64_t value.

Definition at line 99 of file int64x64-test-suite.cc.

Referenced by ns3::int64x64::test::operator<<().


The documentation for this class was generated from the following file: