Mir
Public Member Functions | Friends | List of all members
mir::shell::PersistentSurfaceStore::Id Class Referencefinal

#include <persistent_surface_store.h>

Public Member Functions

 Id ()
 Generate a new, unique Id. More...
 
 Id (std::string const &serialized_form)
 Construct an Id from its serialized string form. More...
 
 Id (Id const &rhs)
 
Idoperator= (Id const &rhs)
 
bool operator== (Id const &rhs) const
 
std::string serialize_to_string () const
 Serialize to a UTF-8 string. More...
 

Friends

struct std::hash< Id >
 

Constructor & Destructor Documentation

mir::shell::PersistentSurfaceStore::Id::Id ( )

Generate a new, unique Id.

mir::shell::PersistentSurfaceStore::Id::Id ( std::string const &  serialized_form)

Construct an Id from its serialized string form.

Parameters
serialized_form[in] The previously-serialized Id
Exceptions
std::invalid_argumentif
  • serialized_form is not parseable as an Id.
mir::shell::PersistentSurfaceStore::Id::Id ( Id const &  rhs)

Member Function Documentation

Id& mir::shell::PersistentSurfaceStore::Id::operator= ( Id const &  rhs)
bool mir::shell::PersistentSurfaceStore::Id::operator== ( Id const &  rhs) const
std::string mir::shell::PersistentSurfaceStore::Id::serialize_to_string ( ) const

Serialize to a UTF-8 string.

Returns
A string representation of the Id; this is guaranteed to be valid UTF-8

Friends And Related Function Documentation

friend struct std::hash< Id >
friend

The documentation for this class was generated from the following file:

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:05:03 UTC 2017