19 #ifndef MIR_SCENE_SESSION_CONTAINER_H_
20 #define MIR_SCENE_SESSION_CONTAINER_H_
28 namespace shell {
class Session; }
35 virtual void insert_session(std::shared_ptr<shell::Session>
const& session) = 0;
36 virtual void remove_session(std::shared_ptr<shell::Session>
const& session) = 0;
38 virtual void for_each(std::function<
void(std::shared_ptr<shell::Session>
const&)> f)
const = 0;
42 virtual std::shared_ptr<shell::Session>
successor_of(std::shared_ptr<shell::Session>
const&)
const = 0;
56 #endif // MIR_SCENE_SESSION_CONTAINER_H_
virtual ~SessionContainer()=default
virtual std::shared_ptr< shell::Session > successor_of(std::shared_ptr< shell::Session > const &) const =0
SessionContainer()=default
virtual void insert_session(std::shared_ptr< shell::Session > const &session)=0
virtual void for_each(std::function< void(std::shared_ptr< shell::Session > const &)> f) const =0
SessionContainer & operator=(const SessionContainer &)=delete
Definition: session_container.h:32
virtual void remove_session(std::shared_ptr< shell::Session > const &session)=0