INET Framework for OMNeT++/OMNEST
inet::BonnMotionFile Class Reference

Represents a BonnMotion file's contents. More...

#include <BonnMotionFileCache.h>

Public Types

typedef std::vector< double > Line
 

Public Member Functions

const LinegetLine (int nodeId) const
 

Protected Types

typedef std::list< LineLineList
 

Protected Attributes

LineList lines
 

Friends

class BonnMotionFileCache
 

Detailed Description

Represents a BonnMotion file's contents.

See also
BonnMotionFileCache, BonnMotionMobility

Member Typedef Documentation

◆ Line

typedef std::vector<double> inet::BonnMotionFile::Line

◆ LineList

typedef std::list<Line> inet::BonnMotionFile::LineList
protected

Member Function Documentation

◆ getLine()

const BonnMotionFile::Line * inet::BonnMotionFile::getLine ( int  nodeId) const
16 {
17  LineList::const_iterator it = lines.begin();
18  for (int i = 0; i < nodeId && it != lines.end(); i++)
19  it++;
20  return (it == lines.end()) ? nullptr : &(*it);
21 }

Referenced by inet::BonnMotionMobility::initialize().

Friends And Related Function Documentation

◆ BonnMotionFileCache

friend class BonnMotionFileCache
friend

Member Data Documentation

◆ lines

LineList inet::BonnMotionFile::lines
protected

The documentation for this class was generated from the following files:
inet::BonnMotionFile::lines
LineList lines
Definition: BonnMotionFileCache.h:32