示例#1
0
inline
typename DataSet<DSParam,VScalarParam,DataValueParam>::DestVector
DataSet<DSParam,VScalarParam,DataValueParam>::Locator::calcVector(
	const Visualization::Abstract::VectorExtractor* vectorExtractor) const
	{
	/* Convert the extractor base class pointer to the proper type: */
	const VectorExtractor* myVectorExtractor=dynamic_cast<const VectorExtractor*>(vectorExtractor);
	if(myVectorExtractor==0)
		Misc::throwStdErr("DataSet::Locator::calcVector: Mismatching vector extractor type");
	
	/* Check if the locator is valid: */
	if(!valid)
		Misc::throwStdErr("DataSet::Locator::calcVector: Attempt to evaluate invalid locator");
		
	/* Calculate and return the value: */
	return VVector(dsl.calcValue(myVectorExtractor->getVe()));
	}
示例#2
0
文件: vector.hpp 项目: kurpicz/thrill
 static VVector Make(size_t D) {
     return VVector(D);
 }