H5Object.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c), 2017, Adrien Devresse <adrien.devresse@epfl.ch>
3  *
4  * Distributed under the Boost Software License, Version 1.0.
5  * (See accompanying file LICENSE_1_0.txt or copy at
6  * http://www.boost.org/LICENSE_1_0.txt)
7  *
8  */
9 #ifndef H5OBJECT_HPP
10 #define H5OBJECT_HPP
11 
12 #include <H5Ipublic.h>
13 
14 namespace HighFive {
15 
16 template <typename Derivate>
17 class NodeTraits;
18 template <typename Derivate>
19 class AnnotateTraits;
20 
21 class Object {
22  public:
23  // decrease reference counter
24  ~Object();
25 
30  bool isValid() const;
31 
37  hid_t getId() const;
38 
39  protected:
40  // empty constructor
41  Object();
42 
43  // copy constructor, increase reference counter
44  Object(const Object& other);
45 
46  Object& operator=(const Object& other);
47 
48  hid_t _hid;
49 
50  private:
51  template <typename Derivate>
52  friend class NodeTraits;
53  template <typename Derivate>
54  friend class AnnotateTraits;
55 };
56 }
57 
58 #include "bits/H5Object_misc.hpp"
59 
60 #endif // H5OBJECT_HPP
hid_t getId() const
getId
bool isValid() const
isValid
Object & operator=(const Object &other)


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:06