A class representing a field document in a database.
More...
#include <fieldCollection.hpp>
|
| static std::string | typeName () |
| | Retrieves the type name of the field.
|
A class representing a field document in a database.
The VectorDocument class represents a field document in a database. It is a subclass of the Document class and provides additional functionality for accessing field-specific data.
Definition at line 39 of file fieldCollection.hpp.
◆ VectorDocument() [1/3]
template<class VectorType>
| NeoN::finiteVolume::cellCentred::VectorDocument::VectorDocument |
( |
const VectorType & | field, |
|
|
std::int64_t | timeIndex, |
|
|
std::int64_t | iterationIndex, |
|
|
std::int64_t | subCycleIndex ) |
|
inline |
Constructs a VectorDocument with the given field and metadata.
- Template Parameters
-
| VectorType | The type of the field. |
- Parameters
-
| field | The field to store in the document. |
| timeIndex | The time index of the field. |
| iterationIndex | The iteration index of the field. |
| subCycleIndex | The sub-cycle index of the field. |
Definition at line 53 of file fieldCollection.hpp.
◆ VectorDocument() [2/3]
| NeoN::finiteVolume::cellCentred::VectorDocument::VectorDocument |
( |
const Document & | doc | ) |
|
◆ VectorDocument() [3/3]
| NeoN::finiteVolume::cellCentred::VectorDocument::VectorDocument |
( |
Document && | doc | ) |
|
◆ doc() [1/2]
| Document & NeoN::finiteVolume::cellCentred::VectorDocument::doc |
( |
| ) |
|
◆ doc() [2/2]
| const Document & NeoN::finiteVolume::cellCentred::VectorDocument::doc |
( |
| ) |
const |
◆ field() [1/2]
template<class VectorType>
| VectorType & NeoN::finiteVolume::cellCentred::VectorDocument::field |
( |
| ) |
|
|
inline |
Retrieves the field from the document.
- Template Parameters
-
| VectorType | The type of the field. |
- Returns
- A reference to the field.
Definition at line 121 of file fieldCollection.hpp.
◆ field() [2/2]
template<class VectorType>
| const VectorType & NeoN::finiteVolume::cellCentred::VectorDocument::field |
( |
| ) |
const |
|
inline |
Retrieves the field from the document (const version).
- Template Parameters
-
| VectorType | The type of the field. |
- Returns
- A const reference to the field.
Definition at line 133 of file fieldCollection.hpp.
◆ id()
| std::string NeoN::finiteVolume::cellCentred::VectorDocument::id |
( |
| ) |
const |
Retrieves the unique identifier of the field collection.
- Returns
- A string representing the unique identifier.
◆ iterationIndex() [1/2]
| std::int64_t & NeoN::finiteVolume::cellCentred::VectorDocument::iterationIndex |
( |
| ) |
|
Retrieves the iteration index of the field.
- Returns
- An integer representing the iteration index.
◆ iterationIndex() [2/2]
| std::int64_t NeoN::finiteVolume::cellCentred::VectorDocument::iterationIndex |
( |
| ) |
const |
Retrieves the iteration index of the field.
- Returns
- An integer representing the iteration index.
◆ name() [1/2]
| std::string & NeoN::finiteVolume::cellCentred::VectorDocument::name |
( |
| ) |
|
Retrieves the time index of the field.
- Returns
- An integer representing the time index.
◆ name() [2/2]
| std::string NeoN::finiteVolume::cellCentred::VectorDocument::name |
( |
| ) |
const |
Retrieves the name of the field.
- Returns
- A string representing the name of the field.
◆ subCycleIndex() [1/2]
| std::int64_t & NeoN::finiteVolume::cellCentred::VectorDocument::subCycleIndex |
( |
| ) |
|
Retrieves the sub-cycle index of the field.
- Returns
- An integer representing the sub-cycle index.
◆ subCycleIndex() [2/2]
| std::int64_t NeoN::finiteVolume::cellCentred::VectorDocument::subCycleIndex |
( |
| ) |
const |
Retrieves the sub-cycle index of the field.
- Returns
- An integer representing the sub-cycle index.
◆ timeIndex() [1/2]
| std::int64_t & NeoN::finiteVolume::cellCentred::VectorDocument::timeIndex |
( |
| ) |
|
Retrieves the time index of the field.
- Returns
- An integer representing the time index.
◆ timeIndex() [2/2]
| std::int64_t NeoN::finiteVolume::cellCentred::VectorDocument::timeIndex |
( |
| ) |
const |
Retrieves the time index of the field.
- Returns
- An integer representing the time index.
◆ typeName()
| std::string NeoN::finiteVolume::cellCentred::VectorDocument::typeName |
( |
| ) |
|
|
static |
Retrieves the type name of the field.
- Returns
- A string representing the type name.
The documentation for this class was generated from the following file: