19 #ifndef MIR_SCENE_DEFAULT_SESSION_CONTAINER_H_
20 #define MIR_SCENE_DEFAULT_SESSION_CONTAINER_H_
35 void insert_session(std::shared_ptr<shell::Session>
const& session);
36 void remove_session(std::shared_ptr<shell::Session>
const& session);
37 void for_each(std::function<
void(std::shared_ptr<shell::Session>
const&)> f)
const;
39 std::shared_ptr<shell::Session>
successor_of(std::shared_ptr<shell::Session>
const& session)
const;
42 std::vector<std::shared_ptr<shell::Session>> apps;
43 mutable std::mutex guard;
50 #endif // MIR_SCENE_DEFAULT_SESSION_CONTAINER_H_
std::shared_ptr< shell::Session > successor_of(std::shared_ptr< shell::Session > const &session) const
Definition: default_session_container.cpp:63
void insert_session(std::shared_ptr< shell::Session > const &session)
Definition: default_session_container.cpp:31
Definition: session_container.h:32
void for_each(std::function< void(std::shared_ptr< shell::Session > const &)> f) const
Definition: default_session_container.cpp:53
Definition: default_session_container.h:32
void remove_session(std::shared_ptr< shell::Session > const &session)
Definition: default_session_container.cpp:38