| 58 | \*---------------------------------------------------------------------------*/ |
| 59 | |
| 60 | class components |
| 61 | : |
| 62 | public fieldExpression |
| 63 | { |
| 64 | // Private member data |
| 65 | |
| 66 | //- List of the component field names |
| 67 | wordList resultNames_; |
| 68 | |
| 69 | |
| 70 | // Private Member Functions |
| 71 | |
| 72 | //- Calculate the components of the field with the specified type |
| 73 | // and register the result |
| 74 | template<class GeoFieldType> |
| 75 | bool calcFieldComponents(); |
| 76 | |
| 77 | //- Calculate the components of the field with the specified |
| 78 | // element type and register the result |
| 79 | template<class Type> |
| 80 | bool calcComponents(); |
| 81 | |
| 82 | //- Calculate the components of the field and return true if successful |
| 83 | virtual bool calc(); |
| 84 | |
| 85 | |
| 86 | public: |
| 87 | |
| 88 | //- Runtime type information |
| 89 | TypeName("components"); |
| 90 | |
| 91 | |
| 92 | // Constructors |
| 93 | |
| 94 | //- Construct from Time and dictionary |
| 95 | components |
| 96 | ( |
| 97 | const word& name, |
| 98 | const Time& runTime, |
| 99 | const dictionary& dict |
| 100 | ); |
| 101 | |
| 102 | |
| 103 | //- Destructor |
| 104 | virtual ~components(); |
| 105 | |
| 106 | |
| 107 | // Member Functions |
| 108 | |
| 109 | //- Write the component fields |
| 110 | virtual bool write(); |
| 111 | |
| 112 | //- Clear the component fields from the objectRegistry |
| 113 | virtual bool clear(); |
| 114 | }; |
| 115 | |
| 116 | |
| 117 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |