EMANE  1.2.1
EMANE::Models::TDMA::Slotter Class Reference

Helper class used to manipulate slot structure elements. More...

#include <slotter.h>

Public Member Functions

 Slotter ()
 
void reset (const EMANE::Microseconds &slotSizeMicroseconds, std::uint64_t u32SlotsPerFrame, std::uint64_t u32FramesPerMultiFrame)
 
TimePoint getMultiFrameTime (std::uint64_t u64MultiFrameIndex) const
 
TimePoint getFrameTime (std::uint64_t u64FrameIndex) const
 
TimePoint getSlotTime (std::uint64_t u64SlotIndex) const
 
std::tuple< std::uint64_t, std::uint64_t, std::uint64_t > getAbsoluteIndex (const EMANE::TimePoint &timePoint) const
 
std::tuple< std::uint32_t, std::uint32_t > getRelativeIndex (std::uint64_t u64SlotIndex) const
 

Detailed Description

Helper class used to manipulate slot structure elements.

Definition at line 49 of file slotter.h.

Constructor & Destructor Documentation

◆ Slotter()

EMANE::Models::TDMA::Slotter::Slotter ( )
inline

Definition at line 34 of file slotter.inl.

Member Function Documentation

◆ getAbsoluteIndex()

std::tuple< std::uint64_t, std::uint64_t, std::uint64_t > EMANE::Models::TDMA::Slotter::getAbsoluteIndex ( const EMANE::TimePoint timePoint) const
inline

Definition at line 76 of file slotter.inl.

◆ getFrameTime()

EMANE::TimePoint EMANE::Models::TDMA::Slotter::getFrameTime ( std::uint64_t  u64FrameIndex) const
inline

Definition at line 60 of file slotter.inl.

◆ getMultiFrameTime()

EMANE::TimePoint EMANE::Models::TDMA::Slotter::getMultiFrameTime ( std::uint64_t  u64MultiFrameIndex) const
inline

Definition at line 51 of file slotter.inl.

◆ getRelativeIndex()

std::tuple< std::uint32_t, std::uint32_t > EMANE::Models::TDMA::Slotter::getRelativeIndex ( std::uint64_t  u64SlotIndex) const
inline

Definition at line 91 of file slotter.inl.

◆ getSlotTime()

EMANE::TimePoint EMANE::Models::TDMA::Slotter::getSlotTime ( std::uint64_t  u64SlotIndex) const
inline

Definition at line 68 of file slotter.inl.

◆ reset()

void EMANE::Models::TDMA::Slotter::reset ( const EMANE::Microseconds slotSizeMicroseconds,
std::uint64_t  u32SlotsPerFrame,
std::uint64_t  u32FramesPerMultiFrame 
)
inline

Definition at line 40 of file slotter.inl.


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