libsl3  1.12.2
C++ interface for sqlite3
Public Member Functions | List of all members
sl3::DbValues Class Referencefinal

A row of DbValues. More...

#include <sl3/dbvalues.hpp>

Inheritance diagram for sl3::DbValues:
sl3::Container< std::vector< DbValue > >

Public Types

using conatiner_type = Container::conatiner_type
 usual typedefs More...
 
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< DbValue > >
using conatiner_type = std::vector< DbValue >
 
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< DbValue >
 

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from sl3::Container< std::vector< DbValue > >
std::vector< DbValue_cont
 Container T. More...
 

Detailed Description

A row of DbValues.

Fixed size vector of DbValue instances. DbValues models a row in a database, therefore assignment works only if fields are compatible.

Member Typedef Documentation

◆ conatiner_type

using sl3::DbValues::conatiner_type = Container::conatiner_type

usual typedefs

Constructor & Destructor Documentation

◆ DbValues() [1/3]

sl3::DbValues::DbValues ( )
noexcept

Constructor.

◆ DbValues() [2/3]

sl3::DbValues::DbValues ( const DbValues )

Copy constructor.

◆ DbValues() [3/3]

sl3::DbValues::DbValues ( DbValues &&  ) const
noexcept

Move constructor.

Member Function Documentation

◆ Container() [1/5]

sl3::Container< ContainerType >::Container
inlinenoexcept

Constructor.

Create an empty container.

◆ Container() [2/5]

sl3::Container< ContainerType >::Container
inlinenoexcept

Constructor.

Parameters
containervalues

◆ Container() [3/5]

sl3::Container< ContainerType >::Container
default

Copy Constructor.

◆ Container() [4/5]

sl3::Container< ContainerType >::Container
defaultnoexcept

Move constructor.

◆ Container() [5/5]

sl3::Container< ContainerType >::Container
inline

Constructor.

Parameters
containervalues

◆ operator=() [1/2]

DbValues& sl3::DbValues::operator= ( const DbValues )

Assigment.

Exceptions
sl3::ErrTypeMisMatchif size() is different
See also
assignment of DbValue
Returns
reference ot this

◆ operator=() [2/2]

DbValues& sl3::DbValues::operator= ( DbValues &&  )

Assigment.

Exceptions
sl3::ErrTypeMisMatchif size() is different
See also
assignment of DbValue
Returns
reference ot this

◆ swap()

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

swap function

Swaps content of 2 DbValues.

Parameters
otherDbValues to swap wit

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