Utilities
Utilities header only library
Identifiable.h
1 /*
2  Copyright (C) Skeletex Research, s.r.o. - All Rights Reserved
3  Unauthorized copying of this file, via any medium is strictly prohibited
4  Proprietary and confidential
5 */
6 #ifndef UTILS_IDENTIFIABLE_H
7 #define UTILS_IDENTIFIABLE_H
8 
9 namespace utils
10 {
12  template <typename IdType>
14  {
15  public:
16  void SetId(IdType new_id)
17  {
18  id_ = new_id;
19  }
20  IdType GetId() const
21  {
22  return id_;
23  }
24 
25  protected:
26  IdType id_;
27  };
28 }
29 
30 #endif /* !UTILS_IDENTIFIABLE_H */
General namespace for utilities.
Definition: BulletConversions.h:9
An object that has an id (ideally a strong id).
Definition: Identifiable.h:13