17 #include <pia/reckoning/reckoning_definitions.h> 18 #include <pia/reckoning/reckoning_Vector3f.h> 19 #include <pia/reckoning/reckoning_ReckoningCloneElementBase.h> 20 #include <pia/clone/clone_CloneBase.h> 133 void Trace(u64 flag)
const;
Stores the pre-calculated result for prediction.
Definition: reckoning_Simple3dReckoningStrategy.h:54
void MakeSample(Sample *pSample, const Value &value, const SetValueArg *cpSetValueArg, const Accessor &accessor, nn::pia::clone::ClockValue clock, const Work *cpWork) const
Calculates the value to save as a sample.
u32 ClockValue
Defines a type that holds a clock value.
Definition: clone_definitions.h:44
static const size_t BUFFER_SIZE
Specifies the size of the buffer that holds samples.
Definition: reckoning_Simple3dReckoningStrategy.h:60
The ReckoningStrategy class interpolates 3D vectors using linear evaluation functions.
Definition: reckoning_Simple3dReckoningStrategy.h:34
void OnUpdateSample(const Accessor &accessor, int index, Work *pWork) const
This is called when a sample is added.
bool SetValueArg
Specifies the type of data to pass to CheckSample and MakeSample when calling SetValue.
Definition: reckoning_Simple3dReckoningStrategy.h:49
Contains member functions used to access values in the sample buffer.
Definition: reckoning_ReckoningCloneElementBase.h:261
Contains a value and a stop flag as a set.
Definition: reckoning_Simple3dReckoningStrategy.h:42
bool CheckSample(bool *pIsReliable, const Value &value, const SetValueArg *cpSetValueArg, const Accessor &accessor, nn::pia::clone::ClockValue clock, const Work *cpWork) const
Determines whether to use the value set with SetValue as a sample.
bool Estimate(Value *pValue, const Accessor &accessor, nn::pia::clone::ClockValue clock, const Work *cpWork) const
Calculates the prediction.
Vector3f Value
Specifies the type of value that is set and retrieved using SetValue and GetValue.
Definition: reckoning_Simple3dReckoningStrategy.h:37
The Vector3f class provides functionality for the strategy used to handle 3D vectors.
Definition: reckoning_Vector3f.h:32
Simple3dReckoningStrategy(f32 threshold)
Instantiates the object with default parameters (default constructor).
void Trace(u64 flag) const
Prints information that is useful for debugging.
SampleValue Sample
Specifies the actual type of the sample that is sent and received.
Definition: reckoning_Simple3dReckoningStrategy.h:47
ReckoningCloneElementBase::SampleAccessor< Sample > Accessor
Defines the accessor for the sample buffer.
Definition: reckoning_Simple3dReckoningStrategy.h:62
f32 GetThreshold()
Gets the threshold to use when determining whether to use the value set using SetValue as a sample...
Definition: reckoning_Simple3dReckoningStrategy.h:80
void SetThreshold(f32 threshold)
Sets the threshold to use when determining whether to use the value set using SetValue as a sample...