libsl3 1.2.41002
A C++ interface for SQLite
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
sl3::Types Class Reference

A Container holding sl3::Type values. More...

#include <sl3/types.hpp>

Inheritance diagram for sl3::Types:
sl3::Container< std::vector< Type > >

Public Types

using conatiner_type = Container::conatiner_type
 
using iterator = conatiner_type::iterator
 
using const_iterator = conatiner_type::const_iterator
 
using value_type = conatiner_type::value_type
 
using reference = conatiner_type::reference
 
using const_reference = conatiner_type::const_reference
 
using size_type = conatiner_type::size_type
 
- Public Types inherited from sl3::Container< std::vector< Type > >
using conatiner_type = std::vector< Type >
 
using iterator = typename conatiner_type::iterator
 
using const_iterator = typename conatiner_type::const_iterator
 
using value_type = typename conatiner_type::value_type
 
using reference = typename conatiner_type::reference
 
using const_reference = typename conatiner_type::const_reference
 
using size_type = typename conatiner_type::size_type
 
using container_type = std::vector< Type >
 

Public Member Functions

void swap (Types &other) noexcept
 Swap container.
 
 Container () noexcept
 Constructor.
 
 Container (ContainerType container) noexcept(std::is_nothrow_move_constructible< ContainerType >::value)
 Constructor.
 
 Container (std::initializer_list< value_type > container)
 Constructor.
 
 Container (const Container &)=default
 Copy Constructor.
 
 Container (Container &&) noexcept(std::is_nothrow_move_constructible< ContainerType >::value)=default
 Move constructor.
 
- Public Member Functions inherited from sl3::Container< std::vector< Type > >
 Container () noexcept
 Constructor.
 
 Container (std::vector< Type > container) noexcept(std::is_nothrow_move_constructible< std::vector< Type > >::value)
 Constructor.
 
 Container (std::initializer_list< value_type > container)
 Constructor.
 
 Container (const Container &)=default
 Copy Constructor.
 
 Container (Container &&) noexcept(std::is_nothrow_move_constructible< std::vector< Type > >::value)=default
 Move constructor.
 
Containeroperator= (const Container &)=default
 Assignment.
 
Containeroperator= (Container &&)=default
 Move assignment.
 
virtual ~Container () noexcept(std::is_nothrow_destructible< std::vector< Type > >::value)=default
 Destructor.
 
iterator begin ()
 Iterator access.
 
const_iterator begin () const
 Iterator access.
 
iterator end ()
 Iterator access.
 
const_iterator end () const
 Iterator access.
 
const_iterator cbegin () const
 Iterator access.
 
const_iterator cend () const
 Iterator access.
 
size_type size () const
 Container size.
 
reference at (size_t i)
 checked random access
 
const_reference at (size_t i) const
 checked random access
 
reference operator[] (size_t i)
 unchecked random access
 
const_reference operator[] (size_t i) const
 unchecked random access
 

Additional Inherited Members

- Protected Attributes inherited from sl3::Container< std::vector< Type > >
std::vector< Type_cont
 Container T.
 

Detailed Description

A Container holding sl3::Type values.

A fixed size list of sl3::Type values.

Member Function Documentation

◆ Container() [1/5]

sl3::Container< ContainerType >::Container ( )
inlinenoexcept

Constructor.

Create an empty container.

◆ Container() [2/5]

sl3::Container< ContainerType >::Container ( const Container )
default

Copy Constructor.

◆ Container() [3/5]

sl3::Container< ContainerType >::Container ( Container &&  )
defaultnoexcept

Move constructor.

◆ Container() [4/5]

sl3::Container< ContainerType >::Container ( ContainerType  container)
inlinenoexcept

Constructor.

Parameters
containervalues

◆ Container() [5/5]

sl3::Container< ContainerType >::Container ( std::initializer_list< value_type >  container)
inline

Constructor.

Parameters
containervalues

◆ swap()

void sl3::Types::swap ( Types other)
noexcept

Swap container.

Uses standard swap to change the contents.

Parameters
otherTypes to swap with

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