Back to index

unity  6.0.0
Public Types | Public Member Functions | Private Member Functions | Private Attributes
unity::shortcut::Model Class Reference

#include <ShortcutModel.h>

Inheritance diagram for unity::shortcut::Model:
Inheritance graph
Collaboration diagram for unity::shortcut::Model:
Collaboration graph

List of all members.

Public Types

typedef std::shared_ptr< ModelPtr

Public Member Functions

 Model (std::list< AbstractHint::Ptr > &hints)
 ~Model ()
std::vector< std::string > & categories ()
std::map< std::string,
std::list< AbstractHint::Ptr > > & 
hints ()
void Fill ()

Private Member Functions

void AddHint (AbstractHint::Ptr hint)

Private Attributes

std::vector< std::string > categories_
std::map< std::string,
std::list< AbstractHint::Ptr > > 

Detailed Description

Definition at line 37 of file ShortcutModel.h.

Member Typedef Documentation

typedef std::shared_ptr<Model> unity::shortcut::Model::Ptr

Definition at line 40 of file ShortcutModel.h.

Constructor & Destructor Documentation

Definition at line 28 of file ShortcutModel.cpp.

  for (auto hint : hints)

Here is the call graph for this function:

Definition at line 35 of file ShortcutModel.cpp.


Member Function Documentation

Definition at line 40 of file ShortcutModel.cpp.

  if (!hint)

  if (hints_.find(hint->category()) == hints_.end())


Here is the caller graph for this function:

std::vector<std::string>& unity::shortcut::Model::categories ( ) [inline]

Definition at line 47 of file ShortcutModel.h.

{ return categories_; }

Definition at line 52 of file ShortcutModel.cpp.

  for (auto category : categories_)
    for (auto item : hints_[category])
std::map<std::string, std::list<AbstractHint::Ptr> >& unity::shortcut::Model::hints ( ) [inline]

Definition at line 48 of file ShortcutModel.h.

{ return hints_; }

Member Data Documentation

std::vector<std::string> unity::shortcut::Model::categories_ [private]

Definition at line 57 of file ShortcutModel.h.

std::map<std::string, std::list<AbstractHint::Ptr> > unity::shortcut::Model::hints_ [private]

Definition at line 58 of file ShortcutModel.h.

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