2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
11 #include "entitytoken.h"
13 EntityToken::EntityToken(const boost::shared_ptr
<Entity
>& entity
)
14 : m_entity(entity
) { }
16 EntityToken::EntityToken() { }
18 boost::shared_ptr
<Entity
> EntityToken::entity() const { return m_entity
.lock(); }
20 bool EntityToken::valid() const { return entity(); }