MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / GlobalIOField

Class GlobalIOField

src/OpenFOAM/db/IOobjects/GlobalIOField/GlobalIOField.H:51–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50template<class Type>
51class GlobalIOField
52:
53 public regIOobject,
54 public Field<Type>
55{
56
57public:
58
59 TypeName("Field");
60
61
62 // Constructors
63
64 //- Construct from IOobject
65 GlobalIOField(const IOobject&);
66
67 //- Construct from IOobject and size (does not set values)
68 GlobalIOField(const IOobject&, const label size);
69
70 //- Construct from components
71 GlobalIOField(const IOobject&, const Field<Type>&);
72
73 //- Construct by transferring the Field contents
74 GlobalIOField(const IOobject&, const Xfer<Field<Type>>&);
75
76
77 //- Destructor
78 virtual ~GlobalIOField();
79
80
81 // Member functions
82
83 //- Is object global
84 virtual bool global() const
85 {
86 return true;
87 }
88
89 //- Return complete path + object name if the file exists
90 // either in the case/processor or case otherwise null
91 virtual fileName filePath() const
92 {
93 return globalFilePath(type());
94 }
95
96 //- ReadData function required for regIOobject read operation
97 virtual bool readData(Istream&);
98
99 //- WriteData function required for regIOobject write operation
100 bool writeData(Ostream&) const;
101
102
103 // Member operators
104
105 void operator=(const GlobalIOField<Type>&);
106
107 void operator=(const Field<Type>&);
108};

Callers 1

GlobalIOField.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected