ldas-tools-diskcacheAPI  2.7.1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
diskCache::Cache::Devices Class Reference

#include <Devices.hh>

Inheritance diagram for diskCache::Cache::Devices:
Inheritance graph
[legend]
Collaboration diagram for diskCache::Cache::Devices:
Collaboration graph
[legend]

Classes

struct  pds_type
 
class  UnaryFunction
 

Public Types

typedef Device::id_type id_type
 
typedef boost::shared_ptr< Deviceelement_type
 
typedef LDASTools::AL::unordered_map< id_type, element_typecontainer_type
 
typedef std::map< std::string, element_typepath_mapping_type
 
typedef Device::id_type id_type
 
typedef boost::shared_ptr< Deviceelement_type
 
typedef LDASTools::AL::unordered_map< id_type, element_typecontainer_type
 
typedef std::map< std::string, element_typepath_mapping_type
 
typedef Device::id_type id_type
 
typedef boost::shared_ptr< Deviceelement_type
 
typedef LDASTools::AL::unordered_map< id_type, element_typecontainer_type
 
typedef std::map< std::string, element_typepath_mapping_type
 

Public Member Functions

 Devices ()
 
 ~Devices ()
 
 Devices ()
 
 ~Devices ()
 
 Devices ()
 
 ~Devices ()
 

Static Public Member Functions

static element_type Find (id_type Id)
 
static element_type Find (const std::string &Path)
 
static element_type Find (const std::string &Path, id_type Id)
 
static void ForEach (UnaryFunction &Func)
 
static bool IsOffline (const std::string &Path)
 
static element_type Find (id_type Id)
 
static element_type Find (const std::string &Path)
 
static element_type Find (const std::string &Path, id_type Id)
 
static void ForEach (UnaryFunction &Func)
 
static bool IsOffline (const std::string &Path)
 
static element_type Find (id_type Id)
 
static element_type Find (const std::string &Path)
 
static element_type Find (const std::string &Path, id_type Id)
 
static void ForEach (UnaryFunction &Func)
 
static bool IsOffline (const std::string &Path)
 

Protected Member Functions

virtual task_type * Task ()
 
virtual void operator() ()
 
virtual task_type * Task ()
 
virtual void operator() ()
 
virtual task_type * Task ()
 
virtual void operator() ()
 

Private Types

typedef std::unique_ptr< pds_typeprivate_data_type
 
typedef std::unique_ptr< pds_typeprivate_data_type
 
typedef std::unique_ptr< pds_typeprivate_data_type
 

Private Member Functions

element_type add_no_lock (element_type Source)
 
element_type add_no_lock (const std::string &Path, id_type Id)
 
element_type find (id_type Id) const
 
element_type find (const std::string &Path) const
 
element_type find (const std::string &Path, id_type Id)
 
element_type find_no_lock (const std::string &Path) const
 
element_type find_no_lock (id_type Id) const
 
element_type find_no_lock (const std::string &Path, id_type Id)
 
void for_each (UnaryFunction &Func) const
 
bool is_offline (const std::string &Path) const
 
void update ()
 
element_type add_no_lock (element_type Source)
 
element_type add_no_lock (const std::string &Path, id_type Id)
 
element_type find (id_type Id) const
 
element_type find (const std::string &Path) const
 
element_type find (const std::string &Path, id_type Id)
 
element_type find_no_lock (const std::string &Path) const
 
element_type find_no_lock (id_type Id) const
 
element_type find_no_lock (const std::string &Path, id_type Id)
 
void for_each (UnaryFunction &Func) const
 
bool is_offline (const std::string &Path) const
 
void update ()
 
element_type add_no_lock (element_type Source)
 
element_type add_no_lock (const std::string &Path, id_type Id)
 
element_type find (id_type Id) const
 
element_type find (const std::string &Path) const
 
element_type find (const std::string &Path, id_type Id)
 
element_type find_no_lock (const std::string &Path) const
 
element_type find_no_lock (id_type Id) const
 
element_type find_no_lock (const std::string &Path, id_type Id)
 
void for_each (UnaryFunction &Func) const
 
bool is_offline (const std::string &Path) const
 
void update ()
 

Private Attributes

LDASTools::AL::ReadWriteLock::baton_type baton
 
container_type devices
 
path_mapping_type path_mapping
 
private_data_type private_data
 

Member Typedef Documentation

◆ container_type [1/3]

typedef LDASTools::AL::unordered_map< id_type, element_type > diskCache::Cache::Devices::container_type

◆ container_type [2/3]

typedef LDASTools::AL::unordered_map< id_type, element_type > diskCache::Cache::Devices::container_type

◆ container_type [3/3]

typedef LDASTools::AL::unordered_map< id_type, element_type > diskCache::Cache::Devices::container_type

◆ element_type [1/3]

typedef boost::shared_ptr< Device > diskCache::Cache::Devices::element_type

◆ element_type [2/3]

typedef boost::shared_ptr< Device > diskCache::Cache::Devices::element_type

◆ element_type [3/3]

typedef boost::shared_ptr< Device > diskCache::Cache::Devices::element_type

◆ id_type [1/3]

◆ id_type [2/3]

◆ id_type [3/3]

◆ path_mapping_type [1/3]

◆ path_mapping_type [2/3]

◆ path_mapping_type [3/3]

◆ private_data_type [1/3]

typedef std::unique_ptr< pds_type > diskCache::Cache::Devices::private_data_type
private

◆ private_data_type [2/3]

typedef std::unique_ptr< pds_type > diskCache::Cache::Devices::private_data_type
private

◆ private_data_type [3/3]

typedef std::unique_ptr< pds_type > diskCache::Cache::Devices::private_data_type
private

Constructor & Destructor Documentation

◆ Devices() [1/3]

diskCache::Cache::Devices::Devices ( )

◆ ~Devices() [1/3]

diskCache::Cache::Devices::~Devices ( )

◆ Devices() [2/3]

diskCache::Cache::Devices::Devices ( )

◆ ~Devices() [2/3]

diskCache::Cache::Devices::~Devices ( )

◆ Devices() [3/3]

diskCache::Cache::Devices::Devices ( )

◆ ~Devices() [3/3]

diskCache::Cache::Devices::~Devices ( )

Member Function Documentation

◆ add_no_lock() [1/6]

Devices::element_type diskCache::Cache::Devices::add_no_lock ( Devices::element_type  Source)
private

◆ add_no_lock() [2/6]

element_type diskCache::Cache::Devices::add_no_lock ( element_type  Source)
private

◆ add_no_lock() [3/6]

element_type diskCache::Cache::Devices::add_no_lock ( element_type  Source)
private

◆ add_no_lock() [4/6]

Devices::element_type diskCache::Cache::Devices::add_no_lock ( const std::string &  Path,
id_type  Id 
)
private

◆ add_no_lock() [5/6]

element_type diskCache::Cache::Devices::add_no_lock ( const std::string &  Path,
id_type  Id 
)
private

◆ add_no_lock() [6/6]

element_type diskCache::Cache::Devices::add_no_lock ( const std::string &  Path,
id_type  Id 
)
private

◆ Find() [1/9]

Devices::element_type diskCache::Cache::Devices::Find ( id_type  Id)
static

◆ Find() [2/9]

static element_type diskCache::Cache::Devices::Find ( id_type  Id)
static

◆ Find() [3/9]

static element_type diskCache::Cache::Devices::Find ( id_type  Id)
static

◆ Find() [4/9]

Devices::element_type diskCache::Cache::Devices::Find ( const std::string &  Path)
static

◆ Find() [5/9]

static element_type diskCache::Cache::Devices::Find ( const std::string &  Path)
static

◆ Find() [6/9]

static element_type diskCache::Cache::Devices::Find ( const std::string &  Path)
static

◆ Find() [7/9]

static element_type diskCache::Cache::Devices::Find ( const std::string &  Path,
id_type  Id 
)
static

◆ Find() [8/9]

static element_type diskCache::Cache::Devices::Find ( const std::string &  Path,
id_type  Id 
)
static

◆ Find() [9/9]

Devices::element_type diskCache::Cache::Devices::Find ( const std::string &  Path,
id_type  Id 
)
static

◆ find() [1/9]

Devices::element_type diskCache::Cache::Devices::find ( id_type  Id) const
inlineprivate

◆ find() [2/9]

element_type diskCache::Cache::Devices::find ( id_type  Id) const
private

◆ find() [3/9]

element_type diskCache::Cache::Devices::find ( id_type  Id) const
private

◆ find() [4/9]

Devices::element_type diskCache::Cache::Devices::find ( const std::string &  Path) const
inlineprivate

◆ find() [5/9]

element_type diskCache::Cache::Devices::find ( const std::string &  Path) const
private

◆ find() [6/9]

element_type diskCache::Cache::Devices::find ( const std::string &  Path) const
private

◆ find() [7/9]

element_type diskCache::Cache::Devices::find ( const std::string &  Path,
id_type  Id 
)
private

◆ find() [8/9]

Devices::element_type diskCache::Cache::Devices::find ( const std::string &  Path,
id_type  Id 
)
inlineprivate

◆ find() [9/9]

element_type diskCache::Cache::Devices::find ( const std::string &  Path,
id_type  Id 
)
private

◆ find_no_lock() [1/9]

element_type diskCache::Cache::Devices::find_no_lock ( const std::string &  Path) const
private

◆ find_no_lock() [2/9]

Devices::element_type diskCache::Cache::Devices::find_no_lock ( const std::string &  Path) const
inlineprivate

◆ find_no_lock() [3/9]

element_type diskCache::Cache::Devices::find_no_lock ( const std::string &  Path) const
private

◆ find_no_lock() [4/9]

element_type diskCache::Cache::Devices::find_no_lock ( id_type  Id) const
private

◆ find_no_lock() [5/9]

element_type diskCache::Cache::Devices::find_no_lock ( id_type  Id) const
private

◆ find_no_lock() [6/9]

Devices::element_type diskCache::Cache::Devices::find_no_lock ( id_type  Id) const
inlineprivate

◆ find_no_lock() [7/9]

element_type diskCache::Cache::Devices::find_no_lock ( const std::string &  Path,
id_type  Id 
)
private

◆ find_no_lock() [8/9]

element_type diskCache::Cache::Devices::find_no_lock ( const std::string &  Path,
id_type  Id 
)
private

◆ find_no_lock() [9/9]

Devices::element_type diskCache::Cache::Devices::find_no_lock ( const std::string &  Path,
id_type  Id 
)
inlineprivate

◆ for_each() [1/3]

void diskCache::Cache::Devices::for_each ( UnaryFunction Func) const
inlineprivate

◆ for_each() [2/3]

void diskCache::Cache::Devices::for_each ( UnaryFunction Func) const
private

◆ for_each() [3/3]

void diskCache::Cache::Devices::for_each ( UnaryFunction Func) const
private

◆ ForEach() [1/3]

void diskCache::Cache::Devices::ForEach ( UnaryFunction Func)
static

◆ ForEach() [2/3]

static void diskCache::Cache::Devices::ForEach ( UnaryFunction Func)
static

◆ ForEach() [3/3]

static void diskCache::Cache::Devices::ForEach ( UnaryFunction Func)
static

◆ is_offline() [1/3]

bool diskCache::Cache::Devices::is_offline ( const std::string &  Path) const
inlineprivate

◆ is_offline() [2/3]

bool diskCache::Cache::Devices::is_offline ( const std::string &  Path) const
private

◆ is_offline() [3/3]

bool diskCache::Cache::Devices::is_offline ( const std::string &  Path) const
private

◆ IsOffline() [1/3]

static bool diskCache::Cache::Devices::IsOffline ( const std::string &  Path)
static

◆ IsOffline() [2/3]

bool diskCache::Cache::Devices::IsOffline ( const std::string &  Path)
static

◆ IsOffline() [3/3]

static bool diskCache::Cache::Devices::IsOffline ( const std::string &  Path)
static

◆ operator()() [1/3]

virtual void diskCache::Cache::Devices::operator() ( )
protectedvirtual

◆ operator()() [2/3]

virtual void diskCache::Cache::Devices::operator() ( )
protectedvirtual

◆ operator()() [3/3]

void diskCache::Cache::Devices::operator() ( )
protectedvirtual

◆ Task() [1/3]

Devices::task_type * diskCache::Cache::Devices::Task ( )
protectedvirtual

◆ Task() [2/3]

virtual task_type* diskCache::Cache::Devices::Task ( )
protectedvirtual

◆ Task() [3/3]

virtual task_type* diskCache::Cache::Devices::Task ( )
protectedvirtual

◆ update() [1/3]

void diskCache::Cache::Devices::update ( )
private

◆ update() [2/3]

void diskCache::Cache::Devices::update ( )
private

◆ update() [3/3]

void diskCache::Cache::Devices::update ( )
private

Member Data Documentation

◆ baton

LDASTools::AL::ReadWriteLock::baton_type diskCache::Cache::Devices::baton
mutableprivate

◆ devices

container_type diskCache::Cache::Devices::devices
private

◆ path_mapping

path_mapping_type diskCache::Cache::Devices::path_mapping
private

◆ private_data

private_data_type diskCache::Cache::Devices::private_data
private

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