All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Classes | Typedefs | Functions
components_example.cpp File Reference
#include "paal/data_structures/components/components.hpp"
#include "paal/data_structures/components/components_replace.hpp"
#include <type_traits>
#include <functional>
#include <cassert>

Go to the source code of this file.

Classes

struct  X
 
struct  Y
 
struct  Z
 

Typedefs

template<typename... Args>
using Comps = typename ds::components< names::A, names::B, names::C >::type< Args...>
 
template<typename... Args>
using CompsWithDefaults = typename ds::components< names::A, names::B, ds::NameWithDefault< names::C, X >>::type< Args...>
 
template<typename... Args>
using CompsToReplace = typename ds::components< names::A, names::B >::type< Args...>
 

Functions

void example_default_constructor_and_basic_usage ()
 
void example_constructor_with_all_arguments ()
 
void example_constructor_with_some_arguments ()
 
int f (int i)
 
void example_calling_function_from_components ()
 
void example_replacing ()
 
void example_default_parameters ()
 
void example_replacing_struct_without_default_constructors ()
 
void example_create_using_make ()
 
void example_create_using_copy_tag ()
 
void example_references ()
 
void example_make_components ()
 
int main ()
 

Detailed Description

Author
Piotr Wygocki
Version
1.0
Date
2013-02-04

Definition in file components_example.cpp.