paludis  Version 2.6.0
Public Types | Public Member Functions | Friends | List of all members
paludis::VersionOperator Class Reference

#include <version_operator.hh>

+ Inheritance diagram for paludis::VersionOperator:

Public Types

typedef bool(* VersionSpecComparator) (const VersionSpec &, const VersionSpec &)
 

Public Member Functions

VersionOperatorValue value () const
 
VersionSpecComparator as_version_spec_comparator () const
 

Friends

std::ostream & operator<< (std::ostream &, const VersionOperator &)
 

Basic operations

 VersionOperator (const VersionOperatorValue v)
 
 VersionOperator (const VersionOperator &other)
 
 VersionOperator (const std::string &v)
 
const VersionOperatoroperator= (const VersionOperator &other)
 

Comparison operators

bool operator== (const VersionOperator &other) const
 

Detailed Description

An operator attached to a VersionSpec, validated.

Examples:
example_version_operator.cc.

Member Typedef Documentation

typedef bool(* paludis::VersionOperator::VersionSpecComparator) (const VersionSpec &, const VersionSpec &)

A VersionSpec comparator function.

Constructor & Destructor Documentation

paludis::VersionOperator::VersionOperator ( const VersionOperatorValue  v)
inline

Constructor.

paludis::VersionOperator::VersionOperator ( const VersionOperator other)
inline

Copy constructor.

paludis::VersionOperator::VersionOperator ( const std::string &  v)
inlineexplicit

Constructor, from a string.

Member Function Documentation

VersionSpecComparator paludis::VersionOperator::as_version_spec_comparator ( ) const

Fetch a VersionSpecComparator.

const VersionOperator& paludis::VersionOperator::operator= ( const VersionOperator other)
inline

Assignment.

VersionOperatorValue paludis::VersionOperator::value ( ) const
inline

Return value.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const VersionOperator  
)
friend

A VersionOperator can be written to an ostream.


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