Loading...
Searching...
No Matches
ns3::SatFrameAllocator::CcReqCompare Class Reference

CcReqCompare class for CC type comparisons. More...

Collaboration diagram for ns3::SatFrameAllocator::CcReqCompare:

Public Types

enum  CcReqType_t { CC_TYPE_MIN_RBDC , CC_TYPE_RBDC , CC_TYPE_VBDC }
 Definition for different comparison types. More...

Public Member Functions

 CcReqCompare (const UtAllocContainer_t &utAllocContainer, CcReqCompare::CcReqType_t ccReqType)
 Construct CcReqCompare.
bool operator() (RcAllocItem_t rcAlloc1, RcAllocItem_t rcAlloc2)
 Comparison operator to compare two RC allocations.

Private Attributes

CcReqType_t m_ccReqType
 Type used for comparisons.
const UtAllocContainer_tm_utAllocContainer
 Reference to UT allocation container.

Detailed Description

CcReqCompare class for CC type comparisons.

Definition at line 425 of file satellite-frame-allocator.h.

Member Enumeration Documentation

◆ CcReqType_t

Definition for different comparison types.

Enumerator
CC_TYPE_MIN_RBDC 

CC_TYPE_MIN_RBDC.

CC_TYPE_RBDC 

CC_TYPE_RBDC.

CC_TYPE_VBDC 

CC_TYPE_VBDC.

Definition at line 431 of file satellite-frame-allocator.h.

Constructor & Destructor Documentation

◆ CcReqCompare()

ns3::SatFrameAllocator::CcReqCompare::CcReqCompare ( const UtAllocContainer_t & utAllocContainer,
CcReqCompare::CcReqType_t ccReqType )

Construct CcReqCompare.

Parameters
utAllocContainerReference to UT allocation container.
ccReqTypeType used for comparisons.

Definition at line 143 of file satellite-frame-allocator.cc.

References m_ccReqType, and m_utAllocContainer.

Member Function Documentation

◆ operator()()

bool ns3::SatFrameAllocator::CcReqCompare::operator() ( RcAllocItem_t rcAlloc1,
RcAllocItem_t rcAlloc2 )

Comparison operator to compare two RC allocations.

Parameters
rcAlloc1
rcAlloc2
Returns
false if first RC allocation is smaller than second.

Definition at line 151 of file satellite-frame-allocator.cc.

References CC_TYPE_MIN_RBDC, CC_TYPE_RBDC, CC_TYPE_VBDC, m_ccReqType, and m_utAllocContainer.

Member Data Documentation

◆ m_ccReqType

CcReqType_t ns3::SatFrameAllocator::CcReqCompare::m_ccReqType
private

Type used for comparisons.

Definition at line 465 of file satellite-frame-allocator.h.

Referenced by CcReqCompare(), and operator()().

◆ m_utAllocContainer

const UtAllocContainer_t& ns3::SatFrameAllocator::CcReqCompare::m_utAllocContainer
private

Reference to UT allocation container.

Definition at line 460 of file satellite-frame-allocator.h.

Referenced by CcReqCompare(), and operator()().


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