Memosa-FVM  0.2
GlobalFields.h
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #ifndef _GLOBALFIELDS_H_
6 #define _GLOBALFIELDS_H_
7 
8 #include "Field.h"
9 
10 #include "FieldLabel.h"
11 
13 {
14 public:
15  typedef map<const FieldLabel*, shared_ptr<Field> > FieldMap;
16  static Field& createField(const FieldLabel& fieldLabel);
17  static const Field& getField(const FieldLabel& fieldLabel);
18 
19 private:
20 
21  static FieldMap& getFieldMap();
23 };
24 
25 #define getGlobalField GlobalFields::getField
26 #define createGlobalField GlobalFields::createField
27 
28 #endif
static const Field & getField(const FieldLabel &fieldLabel)
static FieldMap & getFieldMap()
Definition: Field.h:14
static FieldMap * _fieldMap
Definition: GlobalFields.h:22
static Field & createField(const FieldLabel &fieldLabel)
map< const FieldLabel *, shared_ptr< Field > > FieldMap
Definition: GlobalFields.h:15