Radium Engine  1.5.0
IndexedObject.hpp
1 #pragma once
2 
3 #include <Core/RaCore.hpp>
4 #include <Core/Utils/Index.hpp>
5 
6 namespace Ra {
7 namespace Core {
8 namespace Utils {
9 
14 {
15  public:
17  explicit inline IndexedObject( Index idx = Index::Invalid() ) : m_idx { idx } {}
18  inline IndexedObject( const IndexedObject& id_obj ) = default;
19  virtual inline ~IndexedObject() = default;
20 
21  inline void setIndex( const Index& idx ) { m_idx = idx; }
22  inline const Index& getIndex() const { return m_idx; }
23 
24  protected:
26  Index m_idx;
27 };
28 
29 } // namespace Utils
30 } // namespace Core
31 } // namespace Ra
IndexedObject(Index idx=Index::Invalid())
CONSTRUCTOR.
Definition: Cage.cpp:3