STYLE: note deprecated status for NamedEnum

This commit is contained in:
Mark Olesen
2018-01-09 16:06:40 +01:00
parent 243eda1f7a
commit ab38c04006
2 changed files with 12 additions and 5 deletions

View File

@ -15,7 +15,7 @@
<address class="footer"> <address class="footer">
<small> <small>
<p> <p>
Copyright&nbsp;&copy;&nbsp;2011-2016&nbsp; Copyright&nbsp;&copy;&nbsp;2011-2018&nbsp;
<a href="http://www.openfoam.com">OpenFOAM</a> <a href="http://www.openfoam.com">OpenFOAM</a>
| |
OPENFOAM&reg; is a registered OPENFOAM&reg; is a registered

View File

@ -28,6 +28,13 @@ Description
A NamedEnum is a wrapper around a list of names that represent A NamedEnum is a wrapper around a list of names that represent
particular enumeration values. particular enumeration values.
\deprecated This class is retained for compatibility only and should
not normally be used for any new code.
The Foam::Enum class is robuster, more flexible, easier to use.
See Also
Foam::Enum
SourceFiles SourceFiles
NamedEnum.C NamedEnum.C
@ -97,7 +104,7 @@ public:
// Member Functions // Member Functions
// Access // Access
//- The number of lookup names for the enumeration //- The number of lookup names for the enumeration
inline label size() const; inline label size() const;
@ -115,7 +122,7 @@ public:
List<int> values() const; List<int> values() const;
// Query // Query
//- Test if there is an enumeration corresponding to the given name. //- Test if there is an enumeration corresponding to the given name.
inline bool found(const word& enumName) const; inline bool found(const word& enumName) const;
@ -127,7 +134,7 @@ public:
bool hasName(const EnumType e) const; bool hasName(const EnumType e) const;
// Lookup // Lookup
//- Lookup the key in the dictionary and return the corresponding //- Lookup the key in the dictionary and return the corresponding
// enumeration element based on its name. // enumeration element based on its name.
@ -150,7 +157,7 @@ public:
) const; ) const;
// IO // IO
//- Read a word from Istream and return the corresponding enumeration //- Read a word from Istream and return the corresponding enumeration
EnumType read(Istream& is) const; EnumType read(Istream& is) const;