User Manual, Developers Guide and API Documentation

wns::module::DepList Class Reference

Class for Dependency lists. More...

#include <module/DependencyList.hpp>

Collaboration diagram for wns::module::DepList:

Collaboration graph
[legend]

List of all members.

Public Member Functions

template<class VerList>
bool dependenciesMetBy (const VerList vers, const VerList end) const
 Check if dependencies are met.
 DepList (const std::string &s)
 String constructor.
 DepList ()
 Empty list constructor.
std::string getNiceString () const
 Dependency list as a human readable string.
std::string getString () const
 Dependency list as a string.

Private Types

typedef std::vector< DepListElemDepListPredecessor

Private Member Functions

bool projectDoesMatch (const Version v1, const Version v2) const
 Compares category and branch of two given version and returns true if equal.

Private Attributes

DepListPredecessor depListElements


Detailed Description

Author:
Swen Kühnlein <swen@comnets.rwth-aachen.de>
Note:
Actually it's implemented as a vector, but semantically \- in colloquial language \- it's a list, thus it's named as it is.

Definition at line 160 of file DependencyList.hpp.


Member Typedef Documentation

typedef std::vector<DepListElem> wns::module::DepList::DepListPredecessor [private]

Definition at line 162 of file DependencyList.hpp.


Constructor & Destructor Documentation

wns::module::DepList::DepList (  )  [inline]

Definition at line 167 of file DependencyList.hpp.

wns::module::DepList::DepList ( const std::string &  s  )  [explicit]

Instantiate a DepList initialized by a string. The string is expected to contain initialization strings for DepListElems enclosed in parens: (DepListElem)(DepListElem) ...

Parameters:
s initialization string.
See also:
DepListElem::DepListElem(const std::string s)


Member Function Documentation

template<class VerList>
bool wns::module::DepList::dependenciesMetBy ( const VerList  vers,
const VerList  end 
) const [inline]

Returns true if all dependencies are met.

This checks, if all dependencies are met by the "list" of versions given by the parameters. The "list" of versions may be any standard C++ container.

Parameters:
vers iterator pointing at the beginning of the version "list".
end iterator pointing at the end of the version "list".
Returns:
true, if all dependencies are met.
Author:
Swen Kühnlein <swen@comnets.rwth-aachen.de>

Definition at line 235 of file DependencyList.hpp.

string DepList::getNiceString (  )  const

Note:
The returned string may contain newlines!

Definition at line 148 of file DependencyList.cpp.

string DepList::getString (  )  const

Definition at line 139 of file DependencyList.cpp.

bool wns::module::DepList::projectDoesMatch ( const Version  v1,
const Version  v2 
) const [inline, private]

Definition at line 220 of file DependencyList.hpp.


Member Data Documentation

Definition at line 226 of file DependencyList.hpp.


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

Generated on Sun May 27 03:33:00 2012 for openWNS by  doxygen 1.5.5