12 template <
typename TypeID>
25 void setId(
const TypeID &
id);
26 const TypeID &id()
const;
31 virtual const std::string toString()
const;
33 bool operator <(const Entity<TypeID> &e)
const
39 void setLoaded(
bool loaded);
46 template <
typename TypeID>
47 inline std::string operator +(
const char *s,
const Entity<TypeID> &e)
49 return std::string(s) + e.toString();
52 template <
typename TypeID>
53 inline std::string operator +(
const std::string &s,
const Entity<TypeID> &e)
55 return s + e.toString();
58 template <
typename TypeID>
59 Entity<TypeID>::Entity():
64 template <
typename TypeID>
65 Entity<TypeID>::Entity(
const TypeID &
id):
71 template <
typename TypeID>
72 void Entity<TypeID>::setId(
const TypeID &
id)
77 template <
typename TypeID>
78 const TypeID &Entity<TypeID>::id()
const
83 template <
typename TypeID>
84 bool Entity<TypeID>::hasId()
const
86 return !m_id.isNull();
89 template <
typename TypeID>
90 void Entity<TypeID>::setLoaded(
bool loaded)
95 template <
typename TypeID>
96 bool Entity<TypeID>::loaded()
const
101 template <
typename TypeID>
102 const std::string Entity<TypeID>::toString()
const
104 return m_id.toString();