41 #ifndef Alembic_Util_TokenMap_h
42 #define Alembic_Util_TokenMap_h
68 typedef std::map<std::string,std::string>
map_type;
122 char pairSeparator =
';',
123 char assignSeparator =
'=',
129 setUnique( config, pairSeparator, assignSeparator, quiet );
133 set( config, pairSeparator, assignSeparator );
157 char pairSeparator =
';',
158 char assignSeparator =
'=' );
172 char pairSeparator =
';',
173 char assignSeparator =
'=',
187 char assignSeparator =
'=',
188 bool check = false )
const;
201 size_t size()
const {
return m_map.size(); }
207 return ( m_map.count( token ) > 0 );
216 if ( fiter != m_map.end() )
218 return (*fiter).second;
231 return value( token );
242 m_map[keyStr] = valueStr;
300 return m_map == iOther.
m_map;
Header file containing class definition for class Alembic::Util::Exception.
TokenMap()
Default constructor Map is initialized with no entries. Values can be added using The set and setUniq...
const_reverse_iterator rend() const
same as std::map rend const Returns an const_reverse_iterator corresponding to the end of the map...
reverse_iterator rbegin()
same as std::map rbegin Returns an reverse_iterator corresponding to the reverse_beginning of the map...
void setValue(const std::string &keyStr, const std::string &valueStr)
This function sets the value of a token. It will either add a new token-value pair if the map does no...
map_type::const_iterator const_iterator
GLsizei const GLchar *const * string
bool tokenExists(const std::string &token) const
This function returns whether the map contains an entry for a particular token.
GLsizei const GLfloat * value
map_type::iterator iterator
size_t size() const
This function returns the number of pairs. ...
map_type::const_reference const_reference
iterator begin()
same as std::map begin Returns an iterator corresponding to the beginning of the map or the end of th...
A wrapper around std::map that serializes and deserializes the map into a doubly-tokenized string...
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
iterator end()
same as std::map end Returns an iterator corresponding to the end of the map.
const_iterator begin() const
same as std::map begin const Returns a const_iterator corresponding to the beginning of the map or th...
map_type::const_reverse_iterator const_reverse_iterator
TokenMap(const std::string &config, char pairSeparator= ';', char assignSeparator= '=', bool unique=false, bool quiet=true)
Explicit constructor Map is initialized from given string, using the delimiter scheme as presented...
map_type::value_type value_type
const_iterator end() const
same as std::map end const Returns an const_iterator corresponding to the end of the map...
map_type::key_type key_type
map_type::reverse_iterator reverse_iterator
bool exactMatch(const TokenMap &iOther) const
std::string value(const std::string &token) const
This function returns the string value associated with a particular token, or the empty string "" if ...
reverse_iterator rend()
same as std::map rend Returns an reverse_iterator corresponding to the reverse end of the map...
std::string operator[](const std::string &token) const
This function is a shorthand for value It will not return a modifiable entry. To modify, setValue must be used.
map_type::reference reference
const_reverse_iterator rbegin() const
same as std::map rbegin const Returns a const_reverse_iterator corresponding to the beginning of the ...
std::map< std::string, std::string > map_type
that also have some descendant prim *whose name begins with which in turn has a child named baz where *the predicate and *a name There is also one special expression reference
#define ALEMBIC_VERSION_NS