Classes | Modules | Files | Defines | Functions

Utilities
[Paludis]

Classes

class  paludis::DamerauLevenshtein
struct  paludis::NullSharedPtr
class  paludis::Random
struct  paludis::RemoveSharedPtr< T_ >
struct  paludis::RemoveSharedPtr< std::shared_ptr< T_ > >
struct  paludis::RemoveSharedPtr< std::shared_ptr< const T_ > >
struct  paludis::RemoveSharedPtr< const T_ >
struct  paludis::RemoveSharedPtr< T_ & >
class  paludis::Save< T_ >
class  paludis::RunOnDestruction

Modules

 Configuration Files
 Strings
 Filesystem
 Data Structures
 Iterators
 OO Design Helpers
 Logging
 System
 Visitors
 Threads

Files

file  attributes.hh
file  damerau_levenshtein.hh
file  make_null_shared_ptr.hh
file  make_shared_copy-fwd.hh
file  make_shared_copy.hh
file  no_type.hh
file  random.hh
file  save.hh

Defines

#define PALUDIS_ATTRIBUTE(x)
#define PALUDIS_VISIBLE
#define PALUDIS_HIDDEN

Functions

std::string paludis::cookie () PALUDIS_VISIBLE PALUDIS_ATTRIBUTE((warn_unused_result))
template<typename T_ >
std::shared_ptr< T_ > paludis::make_shared_copy (const T_ &t) PALUDIS_ATTRIBUTE((warn_unused_result))

Detailed Description

The utilities library contains various classes that are not core package management functionality.

Examples


Define Documentation

#define PALUDIS_ATTRIBUTE (   x  ) 

If we're using a recent GCC or ICC, expands to __attribute__, otherwise discards its arguments.

Referenced by paludis::stringify_internals::real_stringify().

#define PALUDIS_HIDDEN

Marker used to represent 'make hidden', if visibility is enabled.

#define PALUDIS_VISIBLE

Marker used to represent 'make visible', if visibility is enabled.


Function Documentation

std::string paludis::cookie (  ) 

Return a magic cookie string.

The cookie string will not contain any weird characters. It's derived from a combination of the process ID and the current time.

template<typename T_ >
std::shared_ptr< T_ > paludis::make_shared_copy ( const T_ &  t  ) 

Like make_shared_ptr(new T_(t)).

Since:
0.36