CVB++ 14.1
FlowInfo Struct Reference

Struct handling the size, alignment and number of flows per set. More...

#include <cvb/driver/flow_set_pool.hpp>

Public Member Functions

 FlowInfo (size_t size, size_t alignment)
 Construct a flow. More...
 
bool operator== (const FlowInfo &other) const noexcept
 Compares to an other flow set info. More...
 
bool operator!= (const FlowInfo &other) const noexcept
 Compares to an other flow set info. More...
 

Public Attributes

size_t Size = 0
 Flow size in bytes.
 
size_t Alignment = 0
 Flow alignment in bytes.
 

Detailed Description

Struct handling the size, alignment and number of flows per set.

Constructor & Destructor Documentation

◆ FlowInfo()

FlowInfo ( size_t  size,
size_t  alignment 
)
inline

Construct a flow.

Parameters
[in]sizeFlow size in bytes.
[in]alignmentFlow alignment in bytes.

Member Function Documentation

◆ operator!=()

bool operator!= ( const FlowInfo other) const
inlinenoexcept

Compares to an other flow set info.

Parameters
[in]otherOther flow set info.
Returns
True if not equal, otherwise false.
Exceptions
Doesnot throw any exception.

◆ operator==()

bool operator== ( const FlowInfo other) const
inlinenoexcept

Compares to an other flow set info.

Parameters
[in]otherOther flow set info.
Returns
True if equal, otherwise false.
Exceptions
Doesnot throw any exception.