#include <IPMRealListData.h>
|
| enum | { kDefaultIID = IID_IPMREALLISTDATA } |
| |
| enum | _Placement { kBeginning = 0, kEnd = -2 } |
| |
Data interface to store a list of PMReal values.
Specifies where the new data should be inserted.
| Enumerator |
|---|
| kEnd | Insert at the beginning. |
| virtual void IPMRealListData::AddRealNumber | ( | const PMReal & | newPMReal, | | | int32 | at = kEnd | | ) | | |
| pure virtual |
Add the new PMReal the specified position.
- Parameters
| newPMReal | is the new PMReal to add. |
| at | is the position to add. Either kBeginning or kEnd or a valid location in the list. If an invalid index is provided, the value will be appended at the end of the list. |
| virtual void IPMRealListData::Clear | ( | void | | ) | |
| pure virtual |
| virtual int32 IPMRealListData::GetIndex | ( | const PMReal & | PMReal | ) | const |
| pure virtual |
Return the position for given PMReal .
- Parameters
- Returns
- the position for the given PMReal or -1 if it is not found.
| virtual PMReal IPMRealListData::GetRealNumber | ( | int32 | index | ) | const |
| pure virtual |
Return the PMReal the specified position. A valid index must be provided, else this will return 0.0.
- Parameters
| index | is the nth position. |
- Returns
- the nth PMReal.
| virtual int32 IPMRealListData::Length | ( | void | | ) | const |
| pure virtual |
- Returns
- the number of PMReal in the list.
| virtual void IPMRealListData::RemoveRealNumber | ( | int32 | index | ) | |
| pure virtual |
Remove the new PMReal at specified position.
- Parameters
| index | specifies the position to remove. A valid index must be provided, else this will be a no-op. |
| virtual void IPMRealListData::SetRealNumber | ( | int32 | index, | | | const PMReal & | replacePMReal | | ) | | |
| pure virtual |
Set the PMReal for the specified position.
- Parameters
| index | is the nth position. A valid index must be provided, else this will be a no-op. |
| replacePMReal | is the new PMReal. |