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

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

Member Function Documentation

const BonnMotionFile::Line * inet::BonnMotionFile::getLine ( int  nodeId) const

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

26 {
27  LineList::const_iterator it = lines.begin();
28  for (int i = 0; i < nodeId && it != lines.end(); i++)
29  it++;
30  return (it == lines.end()) ? nullptr : &(*it);
31 }
LineList lines
Definition: BonnMotionFileCache.h:42

Friends And Related Function Documentation

Member Data Documentation

LineList inet::BonnMotionFile::lines
protected

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