A Discrete-Event Network Simulator
API
ns3::int64x64::test::Printer Class Reference

Pretty printer for test cases. More...

+ Collaboration diagram for ns3::int64x64::test::Printer:

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 67 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 76 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 89 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 113 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 107 of file int64x64-test-suite.cc.

◆ m_high

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

The high (integer) word.

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

◆ m_low

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

The low (fractional) word.

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

◆ m_value

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

The int64x64_t value.

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


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