/usr/include/Eris-1.3/Eris/EntityRef.h is in liberis-1.3-dev 1.3.23-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | #ifndef ERIS_ENTITY_REF_H
#define ERIS_ENTITY_REF_H
#include <sigc++/trackable.h>
#include <sigc++/signal.h>
#include <string>
namespace Eris
{
class Entity;
class View;
class EntityRef : public sigc::trackable
{
public:
EntityRef() : m_inner(NULL)
{
}
EntityRef(View* v, const std::string& eid);
EntityRef(Entity*);
~EntityRef()
{
}
EntityRef(const EntityRef& ref);
EntityRef& operator=(const EntityRef& ref);
const Entity& operator*() const
{
return *m_inner;
}
Entity& operator*()
{
return *m_inner;
}
const Entity* operator->() const
{
return m_inner;
}
Entity* operator->()
{
return m_inner;
}
Entity* get() const
{
return m_inner;
}
operator bool() const
{
return (m_inner != NULL);
}
bool operator!() const
{
return (m_inner == NULL);
}
bool operator==(const EntityRef& e) const
{
return (m_inner == e.m_inner);
}
bool operator==(const Entity* e) const
{
return (m_inner == e);
}
bool operator<(const EntityRef& e) const
{
return (m_inner < e.m_inner);
}
sigc::signal0<void> Changed;
private:
void onEntityDeleted();
void onEntitySeen(Entity* e);
Entity* m_inner;
};
} // of namespace Eris
#endif // of ERIS_ENTITY_REF_H
|