Utilities
[Paludis]


Files

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

Modules

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

Classes

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

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::tr1::shared_ptr< T_ > paludis::make_shared_copy (const T_ &t) PALUDIS_ATTRIBUTE((warn_unused_result))
template<typename T_>
std::tr1::shared_ptr< T_ > paludis::make_shared_ptr (T_ *const t) PALUDIS_ATTRIBUTE((warn_unused_result))
NullSharedPtr paludis::make_null_shared_ptr () PALUDIS_ATTRIBUTE((warn_unused_result)) PALUDIS_VISIBLE

Detailed Description

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

Examples


Define Documentation

#define PALUDIS_ATTRIBUTE (  ) 

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

#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.

NullSharedPtr paludis::make_null_shared_ptr (  )  [inline]

Return an object that can convert itself to an empty std::tr1::shared_ptr<> of any type.

Since:
0.32

template<typename T_>
std::tr1::shared_ptr< T_ > paludis::make_shared_copy ( const T_ &  t  )  [inline]

Like make_shared_ptr(new T_(t)).

Since:
0.36

template<typename T_>
std::tr1::shared_ptr< T_ > paludis::make_shared_ptr ( T_ *const   t  )  [inline]

Convenience function for creating a std::tr1::shared_ptr<> from a newly constructed object.

Use this only with new T_(whatever) as the parameter. Do not use it to try to create a std::tr1::shared_ptr<> from something that is not newly allocated.

Examples:
example_action.cc.


Generated on Mon Sep 21 10:36:09 2009 for paludis by  doxygen 1.5.4