WSF
WsfPk::Table Class Reference

#include <WsfPkTable.hpp>

Inheritance diagram for WsfPk::Table:
Collaboration diagram for WsfPk::Table:

Public Member Functions

 Table ()
 ~Table () override=default
virtual bool Add (Table *aTablePtr)
virtual double LookUp (WsfStringId aTargetTypeId, double aAzimuth, double aElevation, double aWeaponSpeed, double aTargetSpeed)
virtual WsfStringId TargetType ()
bool ProcessInput (UtInput &aInput)
void SetTargetType (WsfStringId aTargetType)
WpnSpdSetGet (int aIndex)
size_t SpeedsSize ()
virtual bool CanAdd () const
virtual bool IsTableSet () const
virtual size_t TableSetSize () const
virtual WsfStringId TargetTypeOfIndex (unsigned int aIndex)
Public Member Functions inherited from WsfNamed
 WsfNamed ()
 WsfNamed (WsfStringId aName)
 WsfNamed (const WsfNamed &)=default
WsfNamedoperator= (const WsfNamed &)=default
virtual ~WsfNamed ()=default
const std::string & GetName () const
WsfStringId GetNameId () const
void SetName (WsfStringId aName)

Static Public Member Functions

static bool LoadTable (UtInput &aInput, Table *&aTablePtr, Table *aParentTable=nullptr)
static bool LoadUtAzElTable (UtInput &aInput, UtAzElTable *&aTablePtr)

Protected Member Functions

void SetPkValuesP (const std::vector< std::vector< double > > &aValues)
bool Add (const WpnSpdSet &aWpnSpdSet)
void GetWpnSpdSetsFor (double aWeaponSpeed, WpnSpdSet *&aLowerPtr, WpnSpdSet *&aUpperPtr)
int Resize ()
void Increment (int &i, int &j, int &k, int &m, int &total)
Tableoperator= (const Table &aRhs)=delete

Protected Attributes

WsfStringId mTargetType
std::vector< WpnSpdSetmWpnSpdSets

Constructor & Destructor Documentation

◆ Table()

◆ ~Table()

WsfPk::Table::~Table ( )
overridedefault

References Table().

Member Function Documentation

◆ Add() [1/2]

bool WsfPk::Table::Add ( const WpnSpdSet & aWpnSpdSet)
protected

◆ Add() [2/2]

virtual bool WsfPk::Table::Add ( Table * aTablePtr)
inlinevirtual

Reimplemented in WsfPk::TableSet.

References Table().

Referenced by ProcessInput().

◆ CanAdd()

virtual bool WsfPk::Table::CanAdd ( ) const
inlinevirtual

Reimplemented in WsfPk::TableSet.

◆ Get()

WpnSpdSet & WsfPk::Table::Get ( int aIndex)
inline

References mWpnSpdSets.

◆ GetWpnSpdSetsFor()

void WsfPk::Table::GetWpnSpdSetsFor ( double aWeaponSpeed,
WpnSpdSet *& aLowerPtr,
WpnSpdSet *& aUpperPtr )
protected

References mWpnSpdSets.

Referenced by LookUp().

◆ Increment()

void WsfPk::Table::Increment ( int & i,
int & j,
int & k,
int & m,
int & total )
protected

◆ IsTableSet()

virtual bool WsfPk::Table::IsTableSet ( ) const
inlinevirtual

Reimplemented in WsfPk::TableSet.

◆ LoadTable()

bool WsfPk::Table::LoadTable ( UtInput & aInput,
Table *& aTablePtr,
Table * aParentTable = nullptr )
static

◆ LoadUtAzElTable()

bool WsfPk::Table::LoadUtAzElTable ( UtInput & aInput,
UtAzElTable *& aTablePtr )
static

◆ LookUp()

double WsfPk::Table::LookUp ( WsfStringId aTargetTypeId,
double aAzimuth,
double aElevation,
double aWeaponSpeed,
double aTargetSpeed )
virtual

◆ operator=()

Table & WsfPk::Table::operator= ( const Table & aRhs)
protecteddelete

References Table().

◆ ProcessInput()

bool WsfPk::Table::ProcessInput ( UtInput & aInput)

◆ Resize()

int WsfPk::Table::Resize ( )
protected

◆ SetPkValuesP()

void WsfPk::Table::SetPkValuesP ( const std::vector< std::vector< double > > & aValues)
protected

◆ SetTargetType()

void WsfPk::Table::SetTargetType ( WsfStringId aTargetType)
inline

References mTargetType.

Referenced by LoadTable().

◆ SpeedsSize()

size_t WsfPk::Table::SpeedsSize ( )
inline

References mWpnSpdSets.

◆ TableSetSize()

virtual size_t WsfPk::Table::TableSetSize ( ) const
inlinevirtual

Reimplemented in WsfPk::TableSet.

Referenced by LoadTable().

◆ TargetType()

virtual WsfStringId WsfPk::Table::TargetType ( )
inlinevirtual

◆ TargetTypeOfIndex()

WsfStringId WsfPk::Table::TargetTypeOfIndex ( unsigned int aIndex)
virtual

Reimplemented in WsfPk::TableSet.

References mTargetType.

Member Data Documentation

◆ mTargetType

WsfStringId WsfPk::Table::mTargetType
protected

◆ mWpnSpdSets

std::vector<WpnSpdSet> WsfPk::Table::mWpnSpdSets
protected

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved