Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
polymorphic-value-test.cpp File Reference

unit test PolymorphicValue_test More...

Go to the source code of this file.

Description

unit test PolymorphicValue_test

Definition in file polymorphic-value-test.cpp.

#include "lib/test/run.hpp"
#include "lib/test/test-helper.hpp"
#include "lib/util-foreach.hpp"
#include "lib/polymorphic-value.hpp"
#include <vector>

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 
namespace  lib::test
 Unit tests for the Lumiera support library.
 
namespace  lib::test::anonymous_namespace{polymorphic-value-test.cpp}
 

Typedefs

using PolyVal = PolymorphicValue< Interface, MAX_SIZ >
 

Classes

struct  Interface
 
struct  Imp< ii, BASE >
 Template to generate concrete implementation classes. More...
 
class  PolymorphicValue_test
 

Functions

 LAUNCHER (PolymorphicValue_test, "unit common")
 

Variables

const uint MAX_RAND = 1000
 
const uint MAX_ELM = 111
 
const uint MAX_SIZ = sizeof(long[MAX_ELM])
 
long _checkSum = 0
 
long _callSum = 0
 
uint _created = 0
 
const size_t _ALIGN_ = sizeof(size_t)
 maximum additional storage maybe wasted due to alignment of the contained object within the embedded Holder/Buffer