Represents a (hierarchical) property map. More...
#include <IWORKPropertyMap.h>
| Classes | |
| class | NotFoundException | 
| Public Member Functions | |
| IWORKPropertyMap () | |
| Construct an empty map.  More... | |
| IWORKPropertyMap (const IWORKPropertyMap *parent) | |
| Construct an empty map with parent parent.  More... | |
| IWORKPropertyMap (const IWORKPropertyMap &other) | |
| Construct a map as a copy of existing one.  More... | |
| IWORKPropertyMap & | operator= (const IWORKPropertyMap &other) | 
| Assign the content from another map.  More... | |
| void | swap (IWORKPropertyMap &other) | 
| Swap the content with another map.  More... | |
| void | setParent (const IWORKPropertyMap *parent) | 
| Set a new parent for this map.  More... | |
| template<class Property > | |
| bool | has (bool lookInParent=false) const | 
| Check for the presence of a property.  More... | |
| template<class Property > | |
| bool | clears (bool lookInParent=false) const | 
| template<class Property > | |
| const IWORKPropertyInfo< Property >::ValueType & | get (bool lookInParent=false) const | 
| Retrieve the value of a property.  More... | |
| template<class Property > | |
| void | put (const typename IWORKPropertyInfo< Property >::ValueType &value) | 
| Insert a new value for key key.  More... | |
| template<class Property > | |
| void | clear () | 
| Clear property.  More... | |
| Private Types | |
| typedef boost::unordered_map< IWORKPropertyID_t, boost::any > | Map_t | 
| Private Attributes | |
| Map_t | m_map | 
| const IWORKPropertyMap * | m_parent | 
Represents a (hierarchical) property map.
| 
 | private | 
| libetonyek::IWORKPropertyMap::IWORKPropertyMap | ( | ) | 
Construct an empty map.
| 
 | explicit | 
Construct an empty map with parent parent. 
| libetonyek::IWORKPropertyMap::IWORKPropertyMap | ( | const IWORKPropertyMap & | other | ) | 
Construct a map as a copy of existing one.
| 
 | inline | 
Clear property.
This has the same effect on lookup as if the property did exist in neither this property map, neither in any parent map.
Referenced by libetonyek::IWORKPtrPropertyContext< Property, Context, TokenId >::endOfElement(), libetonyek::IWAText::parse(), libetonyek::IWAParser::parseCellStyle(), libetonyek::IWAParser::parseGraphicStyle(), libetonyek::KEY6Parser::parseSlideStyle(), and libetonyek::IWAParser::parseTableStyle().
| 
 | inline | 
Referenced by clears().
| 
 | inline | 
Retrieve the value of a property.
If the property is not found in this map and lookInParent is true, the parent map is searched (transitively).
Referenced by libetonyek::IWORKStyle::get(), and get().
| 
 | inline | 
Check for the presence of a property.
If the property is not found in this map and lookInParent is true, the parent map is searched (transitively).
Referenced by libetonyek::IWORKStyle::has(), and has().
| IWORKPropertyMap & libetonyek::IWORKPropertyMap::operator= | ( | const IWORKPropertyMap & | other | ) | 
Assign the content from another map.
| 
 | inline | 
Insert a new value for key key. 
Referenced by libetonyek::IWORKPtrPropertyContext< Property, Context, TokenId >::endOfElement(), libetonyek::IWAText::parse(), libetonyek::IWAParser::parseCellStyle(), libetonyek::IWAParser::parseCharacterProperties(), libetonyek::IWAParser::parseGraphicStyle(), libetonyek::IWAParser::parseListStyle(), libetonyek::IWAParser::parseParagraphStyle(), libetonyek::KEY6Parser::parsePlaceholder(), libetonyek::KEY6Parser::parseSlideStyle(), libetonyek::IWAParser::parseTableStyle(), libetonyek::IWAParser::parseTabularModel(), and libetonyek::IWAParser::parseTile().
| void libetonyek::IWORKPropertyMap::setParent | ( | const IWORKPropertyMap * | parent | ) | 
Set a new parent for this map.
Referenced by libetonyek::IWORKStyle::IWORKStyle(), and libetonyek::IWORKStyle::link().
| void libetonyek::IWORKPropertyMap::swap | ( | IWORKPropertyMap & | other | ) | 
| 
 | private | 
| 
 | private | 
Referenced by clears(), get(), has(), setParent(), and swap().