Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
f7e026d8
There was an error fetching the commit references. Please try again later.
Commit
f7e026d8
authored
6 years ago
by
Nina Džugasová
Committed by
Tomáš Oberhuber
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Started documentation of File.
parent
c144d985
No related branches found
No related tags found
1 merge request
!15
Nina
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/TNL/File.h
+12
-3
12 additions, 3 deletions
src/TNL/File.h
src/TNL/Timer.h
+3
-3
3 additions, 3 deletions
src/TNL/Timer.h
with
15 additions
and
6 deletions
src/TNL/File.h
+
12
−
3
View file @
f7e026d8
...
...
@@ -36,9 +36,8 @@ enum class IOMode
*/
const
size_t
FileGPUvsCPUTransferBufferSize
=
5
*
2
<<
20
;
/*
* This file is aimed mainly for the binary data. It supports transparent compression.
*/
/// Class file is aimed mainly for the binary data. It supports transparent compression.
class
File
{
IOMode
mode
;
...
...
@@ -55,10 +54,19 @@ class File
public:
/// Basic constructor.
File
();
/// Destructor.
~
File
();
/////
/// \brief Opens given file.
///
/// Opens file with given \e fileName and returns true/false based on the success in opening the file.
/// \param fileName String which indicates name of the file user wants to open.
/// \param mode Indicates what user needs to do with opened file.
/// Modes to choose: IOMode::read or IOMode::write.
bool
open
(
const
String
&
fileName
,
const
IOMode
mode
);
...
...
@@ -92,6 +100,7 @@ class File
template
<
typename
Type
,
typename
Device
=
Devices
::
Host
>
bool
write
(
const
Type
*
buffer
);
/// \brief Closes given file and returns true/false based on the success in closing the file.
bool
close
();
protected
:
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Timer.h
+
3
−
3
View file @
f7e026d8
...
...
@@ -66,10 +66,10 @@ class Timer
protected:
/// Function for reading the real time
from timer
.
/// Function for reading the real time.
double
readRealTime
()
const
;
/// \brief Function for reading the CPU time
from timer
.
/// \brief Function for reading the CPU time.
///
/// CPU time is the time that measures how long it takes processor
/// to complete all computations.
...
...
@@ -84,7 +84,7 @@ class Timer
unsigned
long
long
int
initialCPUCycles
,
totalCPUCycles
;
/// \brief Saves information about state of the timer.
/// \brief Saves information about state of the timer.
///
/// Knows whether the timer is currently stopped or not.
bool
stopState
;
...
...
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