iopipe.traits

Base mechanisms used to determine information about iopipes.

Members

Functions

extend
size_t extend(T[] t, size_t elements)

add extend function to all arrays that allows any array to be the start of a pipe chain.

release
void release(T[] t, size_t elements)

Add release function to all arrays. This will remove the given number of elements from the front of the array

window
auto window(T[] t)

add window property to all arrays that allows any array to be the start of a pipe.

Mixin templates

implementValve
mixintemplate implementValve(alias pipechain)

Boilerplate for implementing a valve. If you don't define a custom valve, you should always mixin this template in all your iopipe templates.

Templates

PropertyType
template PropertyType(alias x)
Undocumented in source.
WindowType
template WindowType(T)

Determine the type of the window of the given pipe type. This works when the window is a method or a field.

hasValve
template hasValve(T)

Evaluates to true if the given io pipe has a valve

isIopipe
template isIopipe(T)

evaluates to true if the given type is a valid ioPipe

valveCount
template valveCount(T)

Determine the number of valves in the given pipeline

Meta

License

Boost License 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Authors

Steven Schveighoffer