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
0c7cf446
There was an error fetching the commit references. Please try again later.
Commit
0c7cf446
authored
6 years ago
by
Nina Džugasová
Committed by
Tomáš Oberhuber
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added Object documentation.
parent
c6a549f1
No related branches found
No related tags found
1 merge request
!15
Nina
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/Object.h
+21
-7
21 additions, 7 deletions
src/TNL/Object.h
with
21 additions
and
7 deletions
src/TNL/Object.h
+
21
−
7
View file @
0c7cf446
...
...
@@ -34,16 +34,18 @@ class Object
public:
/****
* Type getter. This returns the type in C++ style - for example the returned value
* \brief Type getter.
*
* Returns the type in C++ style - for example the returned value
* may look as follows: "Vector< double, Devices::Cuda >".
*/
static
String
getType
();
virtual
String
getTypeVirtual
()
const
;
/****
* This is used for load and save methods.
* \brief This is used for load and save methods.
*
* Each object is saved as if it was stored on Devices::Host. So even Vector< double, Devices::Cuda >
* is saved as Vector< double, Devices::Host >.
*/
...
...
@@ -51,13 +53,25 @@ class Object
virtual
String
getSerializationTypeVirtual
()
const
;
//! Method for saving the object to a file as a binary data
/***
* \brief Method for saving the object to a file as a binary data.
*
* \param file Name of file object.
*/
virtual
bool
save
(
File
&
file
)
const
;
//! Method for restoring the object from a file
/***
* \brief Method for restoring the object from a file.
*
* \param file Name of file object.
*/
virtual
bool
load
(
File
&
file
);
//! Method for restoring the object from a file
/***
* \brief Method for restoring the object from a file.
*
* \param file Name of file object.
*/
virtual
bool
boundLoad
(
File
&
file
);
bool
save
(
const
String
&
fileName
)
const
;
...
...
@@ -66,7 +80,7 @@ class Object
bool
boundLoad
(
const
String
&
fileName
);
//
!
Destructor
//
/
Destructor
.
// FIXME: __cuda_callable__ would have to be added to every overriding destructor,
// even if the object's constructor is not __cuda_callable__
// __cuda_callable__
...
...
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