Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Classes | Macros | Typedefs | Functions
test_cow_darray_01.cpp File Reference
#include <iostream>
#include <cassert>
#include <cinttypes>
#include <cstring>
#include <random>
#include <vector>
#include <catch2/catch_amalgamated.hpp>
#include <jau/test/catch2_ext.hpp>
#include "test_datatype01.hpp"
#include "test_datatype02.hpp"
#include <jau/basic_algos.hpp>
#include <jau/basic_types.hpp>
#include <jau/darray.hpp>
#include <jau/cow_darray.hpp>
#include <jau/cow_vector.hpp>
#include <jau/counting_allocator.hpp>
#include <jau/callocator.hpp>
#include <jau/counting_callocator.hpp>
Include dependency graph for test_cow_darray_01.cpp:

Go to the source code of this file.

Classes

struct  NamedSharedPayloadListDefault< Payload >
 
struct  NamedSharedPayloadListMemMove< Payload >
 
struct  NamedPayloadListDefault< Payload >
 
struct  NamedPayloadListMemMove< Payload >
 

Macros

#define CATCH_CONFIG_RUNNER
 
#define CHECK_TRAITS   0
 

Typedefs

template<class Payload >
using SharedPayloadListMemMove = jau::darray< std::shared_ptr< Payload >, jau::callocator< std::shared_ptr< Payload > >, jau::nsize_t, true, true >
 
template<class Payload >
using SharedPayloadListDefault = jau::darray< std::shared_ptr< Payload > >
 
template<class Payload >
using PayloadListMemMove = jau::darray< Payload, jau::callocator< Payload >, jau::nsize_t, true, true >
 
template<class Payload >
using PayloadListDefault = jau::darray< Payload >
 

Functions

 TEST_CASE ("JAU DArray Test 01 - jau::darray initializer list", "[datatype][jau][darray]")
 
template<class Payload >
static NamedSharedPayloadListDefault< Payload > makeNamedSharedPayloadListDefault (int name)
 
template<class Payload >
static NamedSharedPayloadListDefault< Payload > modifyCopyOfNamedSharedPayloadListDefault (NamedSharedPayloadListDefault< Payload > src)
 
template<class Payload >
static NamedSharedPayloadListMemMove< Payload > makeNamedSharedPayloadListMemMove (int name)
 
template<class Payload >
static NamedPayloadListDefault< Payload > makeNamedPayloadListDefault (int name)
 
template<class Payload >
static NamedPayloadListMemMove< Payload > makeNamedPayloadListMemMove (int name)
 
template<class Cont >
static void print_container_info (const std::string &type_id, const Cont &c, std::enable_if_t< jau::is_darray_type< Cont >::value, bool >=true)
 
template<class Cont >
static void print_container_info (const std::string &type_id, const Cont &c, std::enable_if_t< !jau::is_darray_type< Cont >::value, bool >=true)
 
template<class Payload >
static void testDArrayValueType (const std::string &type_id)
 
static GattServiceCharacteristic returnGattSrvcChar (int i)
 
static void testDArrayGattServiceCharacteristic ()
 
 TEST_CASE ("JAU DArray Test 02 - jau::darray value_type behavior (type traits)", "[datatype][jau][darray]")
 

Macro Definition Documentation

◆ CATCH_CONFIG_RUNNER

#define CATCH_CONFIG_RUNNER

Definition at line 32 of file test_cow_darray_01.cpp.

◆ CHECK_TRAITS

#define CHECK_TRAITS   0

Definition at line 251 of file test_cow_darray_01.cpp.

Typedef Documentation

◆ PayloadListDefault

template<class Payload >
using PayloadListDefault = jau::darray<Payload>

Definition at line 131 of file test_cow_darray_01.cpp.

◆ PayloadListMemMove

template<class Payload >
using PayloadListMemMove = jau::darray<Payload, jau::callocator<Payload>, jau::nsize_t, true , true >

Definition at line 127 of file test_cow_darray_01.cpp.

◆ SharedPayloadListDefault

template<class Payload >
using SharedPayloadListDefault = jau::darray<std::shared_ptr<Payload> >

Definition at line 81 of file test_cow_darray_01.cpp.

◆ SharedPayloadListMemMove

template<class Payload >
using SharedPayloadListMemMove = jau::darray<std::shared_ptr<Payload>, jau::callocator<std::shared_ptr<Payload> >, jau::nsize_t, true , true >

Definition at line 77 of file test_cow_darray_01.cpp.

Function Documentation

◆ makeNamedPayloadListDefault()

template<class Payload >
static NamedPayloadListDefault<Payload> makeNamedPayloadListDefault ( int  name)
static
Examples
test_cow_darray_01.cpp.

Definition at line 214 of file test_cow_darray_01.cpp.

Here is the call graph for this function:

◆ makeNamedPayloadListMemMove()

template<class Payload >
static NamedPayloadListMemMove<Payload> makeNamedPayloadListMemMove ( int  name)
static
Examples
test_cow_darray_01.cpp.

Definition at line 228 of file test_cow_darray_01.cpp.

Here is the call graph for this function:

◆ makeNamedSharedPayloadListDefault()

template<class Payload >
static NamedSharedPayloadListDefault<Payload> makeNamedSharedPayloadListDefault ( int  name)
static
Examples
test_cow_darray_01.cpp.

Definition at line 177 of file test_cow_darray_01.cpp.

Here is the call graph for this function:

◆ makeNamedSharedPayloadListMemMove()

template<class Payload >
static NamedSharedPayloadListMemMove<Payload> makeNamedSharedPayloadListMemMove ( int  name)
static
Examples
test_cow_darray_01.cpp.

Definition at line 200 of file test_cow_darray_01.cpp.

Here is the call graph for this function:

◆ modifyCopyOfNamedSharedPayloadListDefault()

template<class Payload >
static NamedSharedPayloadListDefault<Payload> modifyCopyOfNamedSharedPayloadListDefault ( NamedSharedPayloadListDefault< Payload >  src)
static
Examples
test_cow_darray_01.cpp.

Definition at line 191 of file test_cow_darray_01.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_container_info() [1/2]

template<class Cont >
static void print_container_info ( const std::string &  type_id,
const Cont &  c,
std::enable_if_t< !jau::is_darray_type< Cont >::value, bool >  = true 
)
static

Definition at line 266 of file test_cow_darray_01.cpp.

◆ print_container_info() [2/2]

template<class Cont >
static void print_container_info ( const std::string &  type_id,
const Cont &  c,
std::enable_if_t< jau::is_darray_type< Cont >::value, bool >  = true 
)
static
Examples
test_cow_darray_01.cpp.

Definition at line 253 of file test_cow_darray_01.cpp.

Here is the caller graph for this function:

◆ returnGattSrvcChar()

static GattServiceCharacteristic returnGattSrvcChar ( int  i)
static
Examples
test_cow_darray_01.cpp.

Definition at line 404 of file test_cow_darray_01.cpp.

Here is the caller graph for this function:

◆ TEST_CASE() [1/2]

TEST_CASE ( "JAU DArray Test 01 - jau::darray initializer list"  ,
""  [datatype][jau][darray] 
)
Examples
test_cow_darray_01.cpp.

Definition at line 60 of file test_cow_darray_01.cpp.

Here is the call graph for this function:

◆ TEST_CASE() [2/2]

TEST_CASE ( "JAU DArray Test 02 - jau::darray value_type behavior (type traits)"  ,
""  [datatype][jau][darray] 
)

Definition at line 433 of file test_cow_darray_01.cpp.

Here is the call graph for this function:

◆ testDArrayGattServiceCharacteristic()

static void testDArrayGattServiceCharacteristic ( )
static
Examples
test_cow_darray_01.cpp.

Definition at line 408 of file test_cow_darray_01.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ testDArrayValueType()

template<class Payload >
static void testDArrayValueType ( const std::string &  type_id)
static
Examples
test_cow_darray_01.cpp.

Definition at line 275 of file test_cow_darray_01.cpp.

Here is the call graph for this function: