Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
b62aa81e
Commit
b62aa81e
authored
4 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[io][container][doc] Improve Container doc
parent
f7393919
No related branches found
No related tags found
1 merge request
!1967
Feature/data input
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/io/container.hh
+4
-2
4 additions, 2 deletions
dumux/io/container.hh
with
4 additions
and
2 deletions
dumux/io/container.hh
+
4
−
2
View file @
b62aa81e
...
@@ -60,7 +60,8 @@ void writeContainerToFile(const Container& v,
...
@@ -60,7 +60,8 @@ void writeContainerToFile(const Container& v,
/*!
/*!
* \brief Read an input stream into a container
* \brief Read an input stream into a container
* \param stream A standard input stream
* \param stream A standard input stream
* \tparam Container The container type, requires begin(), end(), push_back() method
* \tparam Container The container type requires begin(), end(), push_back() functions
* and Container::value_type requires operator>>.
*/
*/
template
<
typename
Container
>
template
<
typename
Container
>
Container
readStreamToContainer
(
std
::
istream
&
stream
)
Container
readStreamToContainer
(
std
::
istream
&
stream
)
...
@@ -74,7 +75,8 @@ Container readStreamToContainer(std::istream& stream)
...
@@ -74,7 +75,8 @@ Container readStreamToContainer(std::istream& stream)
/*!
/*!
* \brief Read a simple text file into a container
* \brief Read a simple text file into a container
* \param filename The filename to write to
* \param filename The filename to write to
* \tparam Container The container type, requires begin(), end(), push_back() method
* \tparam Container The container type requires begin(), end(), push_back() functions
* and Container::value_type requires operator>>.
*
*
* usage: auto v = readFileToContainer<std::vector<double>>("myvector.txt");
* usage: auto v = readFileToContainer<std::vector<double>>("myvector.txt");
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment