Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ah_convert_composition_test.cc File Reference

ah-convert.H and ah-stl-utils.H in the same program. More...

#include <ah-convert.H>
#include <ah-stl-utils.H>
#include <gtest/gtest.h>
#include <vector>
Include dependency graph for ah_convert_composition_test.cc:

Go to the source code of this file.

Functions

std::vector< int > other_unit_to_vector (const Aleph::DynList< int > &l)
 
Aleph::DynList< int > other_unit_vector_to_DynList (const std::vector< int > &v)
 
Aleph::DynArray< int > other_unit_vector_to_DynArray (const std::vector< int > &v)
 
 TEST (AhConvertComposition, BothUnitsConvertTheSameWay)
 
 TEST (AhConvertComposition, ToVectorTakesWhatEitherHeaderTook)
 

Detailed Description

ah-convert.H and ah-stl-utils.H in the same program.

Both headers defined to_vector(), vector_to_DynList() and vector_to_DynArray(), so a translation unit could not include the two. This one includes ah-convert.H first; ah_convert_composition_other.cc, the other translation unit of this program, includes ah-stl-utils.H first, and both instantiate the same conversions.

Definition in file ah_convert_composition_test.cc.

Function Documentation

◆ other_unit_to_vector()

std::vector< int > other_unit_to_vector ( const Aleph::DynList< int > &  l)

Definition at line 44 of file ah_convert_composition_other.cc.

References l, and Aleph::to_vector().

Referenced by TEST().

◆ other_unit_vector_to_DynArray()

Aleph::DynArray< int > other_unit_vector_to_DynArray ( const std::vector< int > &  v)

Definition at line 54 of file ah_convert_composition_other.cc.

References Aleph::vector_to_DynArray().

Referenced by TEST().

◆ other_unit_vector_to_DynList()

Aleph::DynList< int > other_unit_vector_to_DynList ( const std::vector< int > &  v)

Definition at line 49 of file ah_convert_composition_other.cc.

References Aleph::vector_to_DynList().

Referenced by TEST().

◆ TEST() [1/2]

◆ TEST() [2/2]

TEST ( AhConvertComposition  ,
ToVectorTakesWhatEitherHeaderTook   
)