DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
da_order_small_map< KEY, VALUE, CONTAINTER_KEY, CONTAINTER_VALUE > 模板类 参考

一种简化的map,通过两个连续容器来保存key和value,而不是用二叉树,对于少量的map数据有更好的性能 更多...

#include <da_order_small_map.hpp>

class  const_iterator
 
class  iterator
 迭代器 更多...
 

Public 类型

typedef KEY key_type
 
typedef VALUE value_type
 
typedef da_order_small_map< KEY, VALUE, CONTAINTER_KEY, CONTAINTER_VALUE > _Myt
 学stl
 

Public 成员函数

void clear ()
 
bool contains (const KEY &key) const
 
int count (const KEY &key) const
 
int count () const
 
bool empty () const
 
VALUE & first ()
 
const VALUE & first () const
 
const KEY & firstKey () const
 
bool isEmpty () const
 
int size () const
 
VALUE & operator[] (const KEY &key)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator constBegin () const
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator constEnd () const
 
const_iterator cend () const
 
iterator erase (iterator it)
 
iterator find (const KEY &key)
 
const_iterator find (const KEY &key) const
 
VALUE & orderValue (int order)
 
const VALUE & orderValue (int order) const
 
KEY & orderKey (int order)
 
const KEY & orderKey (int order) const
 
const std::pair< KEY, VALUE > orderPair (int order) const
 
const VALUE value (const KEY &key, const VALUE &defaultValue=VALUE()) const
 

友元

class iterator
 

详细描述

template<typename KEY, typename VALUE, typename CONTAINTER_KEY = std::vector< KEY >, typename CONTAINTER_VALUE = std::vector< VALUE >>
class da_order_small_map< KEY, VALUE, CONTAINTER_KEY, CONTAINTER_VALUE >

一种简化的map,通过两个连续容器来保存key和value,而不是用二叉树,对于少量的map数据有更好的性能

CONTAINTER_VALUE必须是Qt容器类


该类的文档由以下文件生成: