Writable Property Map

转载 2012年03月23日 04:24:16

转自:http://www.boost.org/doc/libs/1_47_0/libs/property_map/doc/WritablePropertyMap.html

Writable Property Map

A Writable Property Map has the capability of setting the value object associated with the given key object via the put() function.

Refinement of

Copy Constructible

Notation

PMap A type that is a model of Writable Property Map.
pmap An object of type PMap.
key An object of type boost::property_traits<PMap>::key_type.
val An object of type boost::property_traits<PMap>::value_type.

Associated Types

Value Type boost::property_traits<PMap>::value_type The type of the property.
Key Type boost::property_traits<PMap>::key_type The type of the key object used to look up the property. The property map may be templated on the key type, in which case this typedef can be void.
Property Map Category boost::property_traits<PMap>::category The category of the property: a type convertible to writable_property_map_tag.

Valid Expressions

Name Expression Return Type Description
Put Property Value[1] put(pmap, key, val) void Assign val to the property associated with k.

Notes

[1] The function put() was originally named set(), but was changed to avoid name conflicts with the std::set class when using a compiler (Microsoft Visual C++) with non-standard name lookup rules. The following example demonstrates the problem.

#include <set>
using namespace std;
namespace boost {
  void set() { }
}

Concept Checking Class

template <class PMap, class Key>
  struct WritablePropertyMapConcept
  {
    typedef typename property_traits<PMap>::key_type key_type;
    typedef typename property_traits<PMap>::category Category;
    typedef boost::writable_property_map_tag WritableTag;
    void constraints() {
      function_requires< ConvertibleConcept<Category, WritableTag> >();
      put(pmap, k, val);
    }
    PMap pmap;
    Key k;
    typename property_traits<PMap>::value_type val;
  };

See Also

Property map concepts

 

Bean property 'manualPaperService' is not writable or has an invalid setter method. Did you mean 'ma

严重: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error cr...

Bean property 'RegDao' is not writable or has an invalid setter method. Does the parameter type of t

Bean property 'RegDao' is not writable or has an invalid setter method. Does the parameter type of t...

mediaTypes错误(Bean property 'mediaTypes' is not writable or has an invalid setter method.)

ERROR: Bean property 'mediaTypes' is not writable or has an invalid setter method. Does theparameter...

dubbo-admin-2.5.3 运行报错: Bean property 'URIType' is not writable or has an invalid,uritypewritable

因为 jdk 是1.8的版本,和 dubbo-admin 存在兼容性问题。所以报错: Bean property 'URIType' is not writable or has an invali...

在spring 中如何注入map,set,list,property等参数

] view plaincopy package cn.dao;      public interface PersonDao {    ...

spring 注入map,set,list,property

cn.dao [java] view plaincopy package cn.dao;      public interfa...

Cause: com.ibatis.sqlmap.client.SqlMapException: No type handler could be found to map the property

com.newspace.common.exception.BoException: 查询数据时出现错误 错误码1007; nested exception is com.newspace.commo...

SDFix: KitKat Writable MicroSD

  • 2017年02月06日 11:24
  • 402KB
  • 下载

从Hadoop Writable序列化框架到java的序列化原理

继上一个模块之后,此次分析的内容是来到了Hadoop IO相关的模块了,IO系统的模块可谓是一个比较大的模块,在Hadoop Common中的io,主要包括2个大的子模块构成,1个是以Writable...

Hadoop Writable深度复制及读取任意<key,value>序列文件

上次留了一个问题如何实现Writable的深度复制,上网找了下,还真有这个类,叫做WritableDeepCopier,可以在http://mvnrepository.com/artifact/org...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Writable Property Map
举报原因:
原因补充:

(最多只允许输入30个字)