LibPkg
Public Member Functions | Friends | List of all members
pkg::control::key_type Class Reference

The key type. More...

#include <control.h>

Inheritance diagram for pkg::control::key_type:

Public Member Functions

 key_type (const string &value)
 Construct key from string. More...
 
 key_type (const char *value)
 Construct key from C-string. More...
 
int priority () const
 Get priority. More...
 

Friends

class control
 

Detailed Description

The key type.

This is a std::string, augmented to include a priority.

Note that the standard comparison operators treat this class as a std::string, so are case sensitive and do not take account of the priority. To obtain the modified sort order, use control::cmp_key.

Constructor & Destructor Documentation

◆ key_type() [1/2]

pkg::control::key_type::key_type ( const string &  value)

Construct key from string.

Parameters
valuethe key value

◆ key_type() [2/2]

pkg::control::key_type::key_type ( const char *  value)

Construct key from C-string.

Parameters
valuethe key value

References priority().

Member Function Documentation

◆ priority()

int pkg::control::key_type::priority ( ) const
inline

Get priority.

Returns
the priority

Referenced by pkg::control::end(), and key_type().

Friends And Related Function Documentation

◆ control

friend class control
friend

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

Reference Manual LibPkg Version 0.9.0 (4 Sep 2020)