libsl3 1.2.41002
A C++ interface for SQLite
Loading...
Searching...
No Matches
Public Types | 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
 
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.
 
 DbValues (const DbValues &)
 Copy constructor.
 
 DbValues (DbValues &&) noexcept(std::is_nothrow_move_constructible< DbValue >::value)
 Move constructor.
 
DbValuesoperator= (const DbValues &)
 Assigment.
 
DbValuesoperator= (DbValues &&)
 Assigment.
 
void swap (DbValues &other) noexcept
 swap function
 
 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< DbValue > >
 Container () noexcept
 Constructor.
 
 Container (std::vector< DbValue > container) noexcept(std::is_nothrow_move_constructible< std::vector< DbValue > >::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< DbValue > >::value)=default
 Move constructor.
 
Containeroperator= (const Container &)=default
 Assignment.
 
Containeroperator= (Container &&)=default
 Move assignment.
 
virtual ~Container () noexcept(std::is_nothrow_destructible< std::vector< DbValue > >::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< DbValue > >
std::vector< DbValue_cont
 Container T.
 

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 ( 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

◆ 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: