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 '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...

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...

property visual map

  • 2010-07-14 15:30
  • 124KB
  • 下载

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...

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

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

SDFix: KitKat Writable MicroSD

  • 2017-02-06 11:24
  • 402KB
  • 下载

hadoop 自定义Writable

hadoop 自定义实现Writable 以及一个小例子测试
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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