Honeycomb  0.1
Component-Model Framework
Public Types | Public Member Functions | Public Attributes | List of all members
honey::json::Config< ordered, Alloc >::ObjectOrdered Struct Reference

#include <Json.h>

Inheritance diagram for honey::json::Config< ordered, Alloc >::ObjectOrdered:
Inheritance graph
[legend]
Collaboration diagram for honey::json::Config< ordered, Alloc >::ObjectOrdered:
Collaboration graph
[legend]

Public Types

typedef ObjectUnordered::iterator Iter
 
typedef ObjectUnordered::const_iterator ConstIter
 

Public Member Functions

template<class Pair >
pair< Iter, bool > insert (Pair &&pair)
 
Iter erase (ConstIter pos)
 This function is O(n) More...
 
void clear ()
 
const Stringname (const Id &id) const
 Get name for id. More...
 

Public Attributes

vector< Id, Alloc< Id > > orderedNames
 List of names in order of name/value pair insertion. More...
 

Member Typedef Documentation

template<bool ordered = false, template< class > class Alloc = SmallAllocator>
typedef ObjectUnordered::const_iterator honey::json::Config< ordered, Alloc >::ObjectOrdered::ConstIter
template<bool ordered = false, template< class > class Alloc = SmallAllocator>
typedef ObjectUnordered::iterator honey::json::Config< ordered, Alloc >::ObjectOrdered::Iter

Member Function Documentation

template<bool ordered = false, template< class > class Alloc = SmallAllocator>
void honey::json::Config< ordered, Alloc >::ObjectOrdered::clear ( )
inline
template<bool ordered = false, template< class > class Alloc = SmallAllocator>
Iter honey::json::Config< ordered, Alloc >::ObjectOrdered::erase ( ConstIter  pos)
inline

This function is O(n)

template<bool ordered = false, template< class > class Alloc = SmallAllocator>
template<class Pair >
pair<Iter, bool> honey::json::Config< ordered, Alloc >::ObjectOrdered::insert ( Pair &&  pair)
inline
template<bool ordered = false, template< class > class Alloc = SmallAllocator>
const String& honey::json::Config< ordered, Alloc >::ObjectOrdered::name ( const Id id) const
inline

Get name for id.

Member Data Documentation

template<bool ordered = false, template< class > class Alloc = SmallAllocator>
vector<Id, Alloc<Id> > honey::json::Config< ordered, Alloc >::ObjectOrdered::orderedNames

List of names in order of name/value pair insertion.


The documentation for this struct was generated from the following file: