Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

lrt::Pair Class Template Reference

A key-value pair. More...

#include <rtmap.h>

List of all members.

Public Methods

 Pair ()
 Creates a new "standard" key-value pair by calling the key's and value's default constructors.

 Pair (const K &k, const V &v)
 Creates a key-value pair and copies the given data into it.

const K & getKey () const
 Returns a constant reference to the key.

const V & getValue () const
 Returns a constant reference to the value.

K & getKey ()
 Returns a modifiable reference to the key.

V & getValue ()
 Returns a modifiable reference to the value.


Friends

class Map< K, V >


Detailed Description

template<class K, class V>
class lrt::Pair< K, V >

A key-value pair.


The documentation for this class was generated from the following file:
This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer