A table of species. More...
#include <specie/speciesTable.H>
A table of species.
Definition at line 51 of file speciesTable.H.
Inheritance diagram for speciesTable:
Collaboration diagram for speciesTable:Public Member Functions | |
| speciesTable (const wordList &specieNames) | |
| Construct from list of specie names.
| |
| speciesTable (const label nSpecies, const char **specieNames) | |
| Construct from number of species and list of specie names.
| |
| speciesTable (Istream &) | |
| Construct from Istream.
| |
| bool | contains (const word &specieName) const |
| Does the table contain the given specie.
| |
| const word & | operator[] (const label) const |
| Return a specie's name.
| |
| label | operator[] (const word &) const |
| Lookup a specie's name and return its index.
| |
Friends | |
| Istream & | operator>> (Istream &, speciesTable &) |
| speciesTable | ( | const wordList & | specieNames ) |
Construct from list of specie names.
Definition at line 44 of file speciesTable.C.
| speciesTable | ( | const label | nSpecies, |
| const char ** | specieNames | ||
| ) |
Construct from number of species and list of specie names.
Definition at line 53 of file speciesTable.C.
References forAll, and speciesTable::operator[]().
| speciesTable | ( | Istream & | is ) |
Construct from Istream.
Definition at line 67 of file speciesTable.C.
| bool contains | ( | const word & | specieName ) | const [inline]
|
Does the table contain the given specie.
Definition at line 30 of file speciesTableI.H.
References HashTable< T, Key, Hash >::found().
| const Foam::word & operator[] | ( | const label | specieIndex ) | const [inline]
|
Return a specie's name.
Reimplemented from UList< T >.
Definition at line 39 of file speciesTableI.H.
References UList< T >::operator[]().
Referenced by speciesTable::speciesTable().
| Foam::label operator[] | ( | const word & | specieName ) | const [inline]
|
Lookup a specie's name and return its index.
Definition at line 47 of file speciesTableI.H.
| Istream& operator>> | ( | Istream & | , |
| speciesTable & | |||
| ) | [friend]
|