View on GitHub
jbson
C++11/1y BSON library
Public Types | Public Member Functions | Friends | List of all members
jbson::basic_array< Container, ElementContainer > Class Template Reference

BSON array. More...

#include <document_fwd.hpp>

+ Inheritance diagram for jbson::basic_array< Container, ElementContainer >:

Public Types

using const_iterator = typename detail::document_iter< const element_type, typename container_type::const_iterator >
 Forward iterator for traversal of elements. More...
 
using container_type = std::decay_t< Container >
 Type of underlying storage container/range.
 
using element_type = basic_element< ElementContainer >
 Type of constituent elements.
 
using iterator = const_iterator
 Forward iterator for traversal of elements. More...
 
using value_type = element_type
 Type of constituent elements. Enables usage in STL/Boost algorithms.
 

Public Member Functions

template<typename OtherContainer >
 basic_array (const basic_array< OtherContainer > &other, std::enable_if_t< std::is_constructible< container_type, OtherContainer >::value > *=nullptr) noexcept(std::is_nothrow_constructible< container_type, OtherContainer >::value)
 
template<typename Arg >
 basic_array (Arg &&arg, std::enable_if_t< std::is_constructible< base, Arg && >::value &&!std::is_convertible< Arg &&, base >::value > *=nullptr) noexcept(std::is_nothrow_constructible< base, Arg && >::value)
 
template<typename Arg1 , typename Arg2 >
 basic_array (Arg1 &&arg1, Arg2 &&arg2, std::enable_if_t< std::is_constructible< base, Arg1 &&, Arg2 && >::value > *=nullptr) noexcept(std::is_nothrow_constructible< base, Arg1 &&, Arg2 && >::value)
 
const_iterator find (int32_t idx) const
 
template<typename SequenceContainer , typename = std::enable_if_t<detail::container_has_push_back<SequenceContainer>::value>, typename = std::enable_if_t< detail::is_range_of_value<SequenceContainer, boost::mpl::quote1<detail::is_element>>::value>>
 operator SequenceContainer () const
 
bool valid (const validity_level lvl=validity_level::bson_size, const bool recurse=true) const
 

Friends

template<typename , typename >
class basic_array
 

Detailed Description

template<class Container, class ElementContainer>
class jbson::basic_array< Container, ElementContainer >

BSON array.

Definition at line 534 of file document.hpp.

Member Typedef Documentation

template<class Container, class ElementContainer>
using jbson::basic_document< Container, ElementContainer >::const_iterator = typename detail::document_iter<const element_type, typename container_type::const_iterator>

Forward iterator for traversal of elements.

See also
detail::document_iter

Definition at line 200 of file document.hpp.

template<class Container, class ElementContainer>
using jbson::basic_document< Container, ElementContainer >::iterator = const_iterator

Forward iterator for traversal of elements.

See also
detail::document_iter

Definition at line 202 of file document.hpp.


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