#include <version_spec.hh>
A VersionSpec represents a version number (for example, 1.2.3b-r1).
- Examples:
- example_version_operator.cc, and example_version_spec.cc.
| paludis::VersionSpec::VersionSpec |
( |
const std::string & |
text, |
|
|
const VersionSpecOptions & |
options |
|
) |
| |
| paludis::VersionSpec::VersionSpec |
( |
const VersionSpec & |
other | ) |
|
| paludis::VersionSpec::~VersionSpec |
( |
| ) |
|
Bump ourself.
This is used by the ~> operator. It returns a version where the next to last number is one greater (e.g. 5.3.1 => 5.4). Any non number parts are stripped (e.g. 1.2.3_alpha4-r5 => 1.3).
| int paludis::VersionSpec::compare |
( |
const VersionSpec & |
other | ) |
const |
Compare to another version.
| bool paludis::VersionSpec::has_local_revision |
( |
| ) |
const |
Do we have a local revision (-r1.2...)?
| bool paludis::VersionSpec::has_scm_part |
( |
| ) |
const |
Do we have an -scm part?
Use is_scm() if -9999 etc is desired.
| bool paludis::VersionSpec::has_try_part |
( |
| ) |
const |
| bool paludis::VersionSpec::is_scm |
( |
| ) |
const |
Are we an -scm package, or something pretending to be one?
| bool paludis::VersionSpec::nice_equal_star_compare |
( |
const VersionSpec & |
other | ) |
const |
Comparison function for =* depend operator in sensible EAPIs.
| VersionSpec paludis::VersionSpec::remove_revision |
( |
| ) |
const |
Remove the revision part.
| std::string paludis::VersionSpec::revision_only |
( |
| ) |
const |
Revision part only (or "r0").
| bool paludis::VersionSpec::stupid_equal_star_compare |
( |
const VersionSpec & |
other | ) |
const |
Comparison function for =* depend operator in Gentooish EAPIs.
| bool paludis::VersionSpec::tilde_compare |
( |
const VersionSpec & |
other | ) |
const |
Comparison function for ~ depend operator.
| bool paludis::VersionSpec::tilde_greater_compare |
( |
const VersionSpec & |
other | ) |
const |
Comparison function for ~> depend operator (gems).
| std::ostream& operator<< |
( |
std::ostream & |
, |
|
|
const VersionSpec & |
|
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: