Back to index

unity  6.0.0
Classes | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
unity::dash::FilesystemLenses Class Reference

#include <FilesystemLenses.h>

Inheritance diagram for unity::dash::FilesystemLenses:
Inheritance graph
[legend]
Collaboration diagram for unity::dash::FilesystemLenses:
Collaboration graph
[legend]

List of all members.

Classes

class  Impl

Public Types

typedef std::shared_ptr
< FilesystemLenses
Ptr
typedef std::vector< Lens::PtrLensList

Public Member Functions

 FilesystemLenses ()
 FilesystemLenses (LensDirectoryReader::Ptr const &reader)
 ~FilesystemLenses ()
LensList GetLenses () const
 Get the currently loaded Lenses.
Lens::Ptr GetLens (std::string const &lens_id) const
Lens::Ptr GetLensAtIndex (std::size_t index) const
Lens::Ptr GetLensForShortcut (std::string const &lens_shortcut) const

Public Attributes

sigc::signal< void > lenses_loaded
nux::ROProperty< std::size_t > count
sigc::signal< void, Lens::Ptr & > lens_added

Private Member Functions

void Init ()

Private Attributes

Implpimpl

Detailed Description

Definition at line 75 of file FilesystemLenses.h.


Member Typedef Documentation

typedef std::vector<Lens::Ptr> unity::dash::Lenses::LensList [inherited]

Definition at line 36 of file Lenses.h.

Definition at line 78 of file FilesystemLenses.h.


Constructor & Destructor Documentation

Definition at line 461 of file FilesystemLenses.cpp.

  : pimpl(new Impl(this, LensDirectoryReader::GetDefault()))
{
  Init();
}

Here is the call graph for this function:

Definition at line 467 of file FilesystemLenses.cpp.

  : pimpl(new Impl(this, reader))
{
  Init();
}

Here is the call graph for this function:

Definition at line 478 of file FilesystemLenses.cpp.

{
  delete pimpl;
}

Member Function Documentation

Lens::Ptr unity::dash::FilesystemLenses::GetLens ( std::string const &  lens_id) const [virtual]

Implements unity::dash::Lenses.

Definition at line 488 of file FilesystemLenses.cpp.

{
  return pimpl->GetLens(lens_id);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Lens::Ptr unity::dash::FilesystemLenses::GetLensAtIndex ( std::size_t  index) const [virtual]

Implements unity::dash::Lenses.

Definition at line 493 of file FilesystemLenses.cpp.

{
  return pimpl->GetLensAtIndex(index);
}

Here is the call graph for this function:

Get the currently loaded Lenses.

This is necessary as some of the consumers of this object employ a lazy-loading technique to reduce the overhead of starting Unity. Therefore, the Lenses may already have been loaded by the time the objects have been initiated (and so just connecting to the signals is not enough)

Implements unity::dash::Lenses.

Definition at line 483 of file FilesystemLenses.cpp.

{
  return pimpl->GetLenses();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Lens::Ptr unity::dash::FilesystemLenses::GetLensForShortcut ( std::string const &  lens_shortcut) const

Definition at line 498 of file FilesystemLenses.cpp.

{
  return pimpl->GetLensForShortcut(lens_shortcut);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 473 of file FilesystemLenses.cpp.

{
  count.SetGetterFunction(sigc::mem_fun(pimpl, &Impl::count));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

nux::ROProperty<std::size_t> unity::dash::Lenses::count [inherited]

Definition at line 49 of file Lenses.h.

sigc::signal<void, Lens::Ptr&> unity::dash::Lenses::lens_added [inherited]

Definition at line 51 of file Lenses.h.

Definition at line 90 of file FilesystemLenses.h.

Definition at line 95 of file FilesystemLenses.h.


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