FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
TypedArray.cpp

Demonstration how to access data from a MemBase object.

Demonstration how to access data from a MemBase object.

#include "TypedArray.hpp"
namespace
{
using namespace Fiber;
using namespace Eagle;
void HowToIterateTypedArraysExample(const RefPtr<MemBase>&Data)
{
{
for(auto d : *D)
{
d += 2.0;
}
}
{
// iterate over full array
for(auto f : *F)
{
f[0] += 2.0;
}
// Iterate over array component 1
for(auto D : F->getComponent(1) )
{
double& d = D;
d = 22.33;
}
// alternative syntax to iterate over component 1
for(auto D : (*F)(1) )
{
double& d = D;
d = 22.33;
}
}
}
}
An intermediate class that allows to operate on the pure type information of some memory array.
Definition TypedArray.hpp:58
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2