DeviceAtlas C++ interface Api
Classes | Public Member Functions | Public Attributes | Friends | List of all members
com::deviceatlas::da::DeliveryContext Class Reference

DeliveryContext class for triggering the API lookup and acts as a container map itself to hold the properties data, ie [], find, begin and end operators are overrided for this purpose. More...

#include <devatlas.h>

Inheritance diagram for com::deviceatlas::da::DeliveryContext:
com::deviceatlas::CommonDeliveryContext

Classes

class  const_iterator
 

Public Member Functions

 DeliveryContext (const DeviceAtlas &, const HttpHeaders &)
 
 DeliveryContext (const DeviceAtlas &, std::string &id, std::string &cs=emptys)
 API lookup with identifier that does not have any particular origin with an optional client-side value.
 
 DeliveryContext (const DeviceAtlas &, std::string_view id, std::optional< std::string_view > cs)
 API lookup with identifier that does not have any particular origin with an optional client-side value as string_view. Available only from C++17.
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator find (const Property &) const
 
const_iterator find (const char *) const
 
size_t size () const
 
bool empty () const
 
bool contains (const char *propname)
 
template<typename T >
bool contains (const char *propname, const T value)
 checks if propname equals to value
 
const Valueoperator[] (const Property &) const noexcept
 [] operator overrides return nullptr if property index is non-existent
 
const Valueoperator[] (const char *) const noexcept
 [] operator overrides return nullptr if property name is non-existent
 
std::optional< const Value * > operator[] (std::string_view) const noexcept
 [] operator overrides compatible with the type std::string_view. Available only from C++17
 
template<>
bool contains (const char *propname, const char *value)
 
- Public Member Functions inherited from com::deviceatlas::CommonDeliveryContext
 CommonDeliveryContext (const CommonDeliveryContext &)=delete
 
CommonDeliveryContextoperator= (const CommonDeliveryContext &)=delete
 
 CommonDeliveryContext (CommonDeliveryContext &&)=delete
 
size_t size () const
 
bool empty () const
 
bool contains (const char *)
 

Public Attributes

size_t sz
 

Friends

class DeviceAtlas
 
class HttpHeaders
 
class const_iterator
 

Detailed Description

DeliveryContext class for triggering the API lookup and acts as a container map itself to hold the properties data, ie [], find, begin and end operators are overrided for this purpose.


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