FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
MemArrayProperties.hpp
1#ifndef __FIBER_MEMARRAYPROPERTIES_HPP
2#define __FIBER_MEMARRAYPROPERTIES_HPP
3
4
5#include "FieldAPI.h"
6#include <memcore/Interface.hpp>
7
8#include <typeinfo>
9#include "FiberType.hpp"
10#include "MemBase.hpp"
11#include <memcore/defines.hpp>
12
13namespace Fiber
14{
15 using std::type_info;
16
17 using MemCore::RefPtr;
19
26//DEPRECATED("Use interface_cast<SizeInterface>() and interface_cast<FiberTypeBase>() instead",
27class FIELD_API MemArrayProperties : public MemCore::Interface<MemArrayProperties>
28{
29public:
30
32 const int rank;
33
36
41 : rank(Rank)
42 , myFiberType(FT)
43 {}
44
49 : rank(MB.rank() )
50 , myFiberType( MB.getFiberType() )
51 {}
52
55
58 {
59 return myFiberType;
60 }
61
64 {
65 if (myFiberType)
66 return myFiberType->getType();
67
68 return typeid(std::nullptr_t);
69 }
70
71}
72//DEPRECATED( "Use SizeInterface instead and FiberType", )
73//__attribute__ ((deprecated("Use interface_cast<SizeInterface>() and interface_cast<FiberTypeBase>() instead")))
74;
75
76
77} // namespace Fiber
78
79#endif /* __FIBER_MEMARRAYPROPERTIES_HPP */
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Interface class to provide information about multidimensional arrays without need to create the data ...
Definition MemArrayProperties.hpp:28
MemCore::WeakPtr< FiberTypeBase > getFiberType() const
Type information.
Definition MemArrayProperties.hpp:57
MemArrayProperties(const MemBase &MB)
Construct from existing Memory Array.
Definition MemArrayProperties.hpp:48
const MemCore::WeakPtr< FiberTypeBase > myFiberType
The type information.
Definition MemArrayProperties.hpp:35
const type_info & myElementType() const
Element type information.
Definition MemArrayProperties.hpp:63
const int rank
The rank of this mem array (used in ComputationalField )
Definition MemArrayProperties.hpp:32
MemArrayProperties(int Rank, const MemCore::WeakPtr< FiberTypeBase > &FT)
Construct from Meta-Information.
Definition MemArrayProperties.hpp:40
Base class for multidimensional arrays with MemCore memory management.
Definition MemBase.hpp:70
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2