orbtree
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
orbtree::KeyOnly< Key > Struct Template Reference

wrapper class for key that can go in sets and multisets More...

#include <orbtree_node.h>

Public Types

typedef Key KeyType
 
typedef const Key ValueType
 

Public Member Functions

 KeyOnly (const Key &k_)
 
 KeyOnly (Key &&k_)
 
template<class... T>
 KeyOnly (T &&... args)
 
const Key & key () const
 access key value – only const access is possible, key should not change
 
ValueType & keyvalue () const
 universal access to key / key-value pair
 
void swap (KeyOnly &k_)
 

Static Public Member Functions

static const Key & key (const ValueType &k)
 helper to extract the key from ValueType – contrast it with KeyValue
 

Static Public Attributes

static const bool keyonly = true
 

Protected Attributes

Key k
 actual key; should not change during a node's lifetime – not const to allow swapping / moving nodes
 

Detailed Description

template<class Key>
struct orbtree::KeyOnly< Key >

wrapper class for key that can go in sets and multisets

Member Data Documentation

◆ keyonly

template<class Key>
const bool orbtree::KeyOnly< Key >::keyonly = true
static

flag to signal tree if this is key-value pair or just key – used when defining iterators


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