FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
VectorRegistry.hpp
1
2//
3// $Id: VectorRegistry.hpp,v 1.5 2007/11/22 10:32:36 werner Exp $
4//
6#ifndef __FIBER_VECTORREGISTRY_HPP
7#define __FIBER_VECTORREGISTRY_HPP "Created 28.08.2006"
8
9#include <vector/MultiArray.hpp>
10#include <field/MemArray.hpp>
11
12#include "fieldregistryDllApi.h"
13
14namespace Fiber
15{
16
17template <class T>
19{
20 template <int N>
22 {
23 static int RegisterVectorTypes()
24 {
25 int nTypes = 0;
26 nTypes += MemArrayAllocator<FixedArray<T,N> >::isRegistered() ;
27 nTypes += MemArrayAllocator<Eagle::Vector<T,N> >::isRegistered() ;
28 // nTypes += MemArrayAllocator<VVector<N,T> >::isRegistered() ;
29 return nTypes;
30 }
31 };
32
33static int RegisterVectorTypes4D()
34 {
35 int nTypes = 0;
40 return nTypes;
41 }
42
43static int RegisterVectorTypes4_6D()
44 {
45 int nTypes = RegisterVectorTypes4D();
46 // nTypes += MultiplicityRegistry<5>::RegisterVectorTypes();
47 nTypes += MultiplicityRegistry<6>::RegisterVectorTypes();
48 return nTypes;
49 }
50
51};
52
53extern fieldregistry_API int RegisterStandardFloatMemArrayTypes();
54extern fieldregistry_API int RegisterStandardDoubleMemArrayTypes();
55extern fieldregistry_API int RegisterIntegerStandardMemArrayTypes();
56
57}
58
59#endif /* __FIBER_VECTORREGISTRY_HPP */
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Allocating array types through registry of types.
Definition MemBase.hpp:315
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
Definition VectorRegistry.hpp:22
Definition VectorRegistry.hpp:19