A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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.
 
 Printer (const int64x64_t value)
 Construct from an int64x64_t Q64.64 value.
 

Private Attributes

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

Friends

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

Detailed Description

Pretty printer for test cases.

Definition at line 55 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 64 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 77 of file int64x64-test-suite.cc.

Friends And Related Symbol 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 101 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 95 of file int64x64-test-suite.cc.

◆ m_high

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

The high (integer) word.

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

◆ m_low

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

The low (fractional) word.

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

◆ m_value

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

The int64x64_t value.

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


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