| 49 | |
| 50 | template<class Type> |
| 51 | class IOField |
| 52 | : |
| 53 | public regIOobject, |
| 54 | public Field<Type> |
| 55 | { |
| 56 | |
| 57 | public: |
| 58 | |
| 59 | TypeName("Field"); |
| 60 | |
| 61 | |
| 62 | // Constructors |
| 63 | |
| 64 | //- Construct from IOobject |
| 65 | IOField(const IOobject&); |
| 66 | |
| 67 | //- Construct from IOobject; does local processor require reading? |
| 68 | IOField(const IOobject&, const bool valid); |
| 69 | |
| 70 | //- Construct from IOobject and size (does not set values) |
| 71 | IOField(const IOobject&, const label size); |
| 72 | |
| 73 | //- Construct from components |
| 74 | IOField(const IOobject&, const Field<Type>&); |
| 75 | |
| 76 | //- Construct by transferring the Field contents |
| 77 | IOField(const IOobject&, const Xfer<Field<Type>>&); |
| 78 | |
| 79 | |
| 80 | //- Destructor |
| 81 | virtual ~IOField(); |
| 82 | |
| 83 | |
| 84 | // Member functions |
| 85 | |
| 86 | bool writeData(Ostream&) const; |
| 87 | |
| 88 | |
| 89 | // Member operators |
| 90 | |
| 91 | void operator=(const IOField<Type>&); |
| 92 | |
| 93 | void operator=(const Field<Type>&); |
| 94 | }; |
| 95 | |
| 96 | |
| 97 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |