|
Katana Plug-in APIs 0.1
|
#include <FnSampleAccessor.h>
Public Member Functions | |
| template<typename T , size_t N> | |
| T | getAs (const T &defValue=T()) const |
Reference to a single time sample.
Sample objects do not own any data; any pointers or references obtained from a Sample object will be invalidated if the backing SampleAccessor object is destructed. | T Foundry::Katana::Sample< ValueT >::getAs | ( | const T & | defValue = T() | ) | const [inline] |
Convenience function that creates an object of type T by passing the first N values from the sample.
| T | The type of object to construct. |
| N | The number of values to pass to T's constructor. |
| defValue | The value to return if the sample contains less than N values. |
Referenced by Foundry::Katana::StringAttribute::getValuesAs(), Foundry::Katana::DoubleAttribute::getValuesAs(), Foundry::Katana::FloatAttribute::getValuesAs(), and Foundry::Katana::IntAttribute::getValuesAs().
1.7.3