Intel® Cilk™ Plus Include Directory  Revision 4358
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Classes | Typedefs | Functions
cilk Namespace Reference

Namespace for all Intel Cilk Plus definitions that can be included in user code. More...

Namespaces

 cilk_lib_1_1
 Namespace to wrap min/max reducer definitions when not compiling in "binary compatibility" mode.
 
 internal
 Namespace for definitions re-used in other Intel Cilk Plus definitions.
 

Classes

class  provisional_guard
 Class for provisionally constructed objects. More...
 
class  monoid_base
 Base class for defining monoids. More...
 
class  monoid_with_view
 Monoid class that gets its value type and identity and reduce operations from its view. More...
 
class  scalar_view
 Base class for simple views with (usually) scalar values. More...
 
class  move_in_wrapper
 Wrapper class for move-in construction. More...
 
struct  legacy_reducer_downcast
 Wrapper class to allow implicit downcasts to reducer subclasses. More...
 
class  reducer
 Reducer class. More...
 
class  op_list_append_view
 The list-append reducer view class. More...
 
class  op_list_prepend_view
 The list-prepend reducer view class. More...
 
struct  op_list_append
 Monoid class for list-append reductions. More...
 
struct  op_list_prepend
 Monoid class for list-prepend reductions. More...
 
class  reducer_list_append
 Deprecated list-append reducer wrapper class. More...
 
class  reducer_list_prepend
 Deprecated list-prepend reducer wrapper class. More...
 
class  op_add_view
 The addition reducer view class. More...
 
struct  op_add
 Monoid class for addition reductions. More...
 
class  reducer_opadd
 Deprecated addition reducer wrapper class. More...
 
class  op_and_view
 The bitwise AND reducer view class. More...
 
struct  op_and
 Monoid class for bitwise AND reductions. More...
 
class  reducer_opand
 Deprecated bitwise AND reducer class. More...
 
class  op_mul_view
 The multiplication reducer view class. More...
 
struct  op_mul
 Monoid class for multiplication reductions. More...
 
class  op_or_view
 The bitwise OR reducer view class. More...
 
struct  op_or
 Monoid class for bitwise OR reductions. More...
 
class  reducer_opor
 Deprecated bitwise OR reducer class. More...
 
class  op_xor_view
 The bitwise XOR reducer view class. More...
 
struct  op_xor
 Monoid class for bitwise XOR reductions. More...
 
class  reducer_opxor
 Deprecated bitwise XOR reducer class. More...
 
class  op_basic_ostream_view
 The ostream reducer view class. More...
 
class  op_basic_ostream
 Ostream monoid class. More...
 
class  reducer_ostream
 Deprecated ostream reducer class. More...
 
class  op_basic_string_view
 The string append reducer view class. More...
 
class  op_basic_string
 String append monoid class. More...
 
class  reducer_basic_string
 Deprecated string append reducer class. More...
 
class  op_vector_view
 The vector reducer view class. More...
 
class  op_vector
 The vector append monoid class. More...
 

Typedefs

typedef op_basic_ostream< char > op_ostream
 Convenience typedef for narrow ostreams.
 
typedef op_basic_ostream< wchar_t > op_wostream
 Convenience typedef for wide ostreams.
 
typedef op_basic_string< char > op_string
 Convenience typedef for 8-bit strings.
 
typedef op_basic_string< wchar_t > op_wstring
 Convenience typedef for 16-bit strings.
 
typedef reducer_basic_string
< char > 
reducer_string
 Convenience typedef for 8-bit strings.
 
typedef reducer_basic_string
< wchar_t > 
reducer_wstring
 Convenience typedef for 16-bit strings.
 

Functions

template<typename T >
void aligned_delete (const T *ptr)
 Deallocate an aligned data structure on the heap. More...
 
template<typename Type >
move_in_wrapper< Type > move_in (Type &ref)
 Function to create a move_in_wrapper for a value. More...
 
template<typename Type >
move_in_wrapper< Type > move_in (const Type &ref)
 Function to create a move_in_wrapper for a value. More...
 
template<typename T >
T * aligned_new ()
 Allocate an aligned data structure on the heap. More...
 
template<typename T , typename T1 >
T * aligned_new (const T1 &x1)
 Allocate an aligned data structure on the heap. More...
 
template<typename T , typename T1 , typename T2 >
T * aligned_new (const T1 &x1, const T2 &x2)
 Allocate an aligned data structure on the heap. More...
 
template<typename T , typename T1 , typename T2 , typename T3 >
T * aligned_new (const T1 &x1, const T2 &x2, const T3 &x3)
 Allocate an aligned data structure on the heap. More...
 
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 >
T * aligned_new (const T1 &x1, const T2 &x2, const T3 &x3, const T4 &x4)
 Allocate an aligned data structure on the heap. More...
 
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
T * aligned_new (const T1 &x1, const T2 &x2, const T3 &x3, const T4 &x4, const T5 &x5)
 Allocate an aligned data structure on the heap. More...
 

Detailed Description

Namespace for all Intel Cilk Plus definitions that can be included in user code.

Function Documentation

template<typename Type >
move_in_wrapper<Type> cilk::move_in ( Type &  ref)

Function to create a move_in_wrapper for a value.

Template Parameters
TypeThe type of the argument, which will be the type of the created wrapper.
See Also
move_in_wrapper
template<typename Type >
move_in_wrapper<Type> cilk::move_in ( const Type &  ref)

Function to create a move_in_wrapper for a value.

Template Parameters
TypeThe type of the argument, which will be the type of the created wrapper.
See Also
move_in_wrapper
Note
Applying a function that is explicitly specified as modifying its argument to a const argument is obviously an irrational thing to do. This move_in() variant is just provided to allow calling a move-in constructor with a function return value, which the language treats as a const. Using it for any other purpose will probably end in tears.
© 2015 Intel Corporation. All rights reserved. | Intel and Cilk are trademarks of Intel Corporation in the U.S. and/or other countries