Radium Engine  1.5.20
Loading...
Searching...
No Matches
IndexedObject.hpp
1#pragma once
2
3#include <Core/RaCore.hpp>
4#include <Core/Utils/Index.hpp>
5
6namespace Ra {
7namespace Core {
8namespace 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.
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3