Carna  Version 3.3.2
Public Member Functions | Public Attributes | List of all members
Carna::helpers::details::VolumeGridHelper::Partionining Struct Reference

Computes the partitioning that VolumeGridHelper uses along one dimension. More...

#include <VolumeGridHelperDetails.h>

Public Member Functions

 Partionining (std::size_t nativeSize, std::size_t regularPartitionSize)
 Computes the partitioning. More...
 
std::size_t totalSize () const
 Computes the effective total resolution.
 
std::size_t partitionsCount () const
 Tells the total partitions number.
 

Public Attributes

std::size_t regularPartitionSize
 Holds the always odd, effective resolution of a single regular partition.
 
std::size_t regularPartitionsCount
 Holds the number of regular partitions, i.e. such of the size held by regularPartitionSize.
 
std::size_t tailSize
 Holds the resolution of the last partition that may also be 0.
 

Detailed Description

Computes the partitioning that VolumeGridHelper uses along one dimension.

Author
Leonid Kostrykin
Date
13.4.15

Definition at line 693 of file VolumeGridHelperDetails.h.

Constructor & Destructor Documentation

◆ Partionining()

Carna::helpers::details::VolumeGridHelper::Partionining::Partionining ( std::size_t  nativeSize,
std::size_t  regularPartitionSize 
)
inline

Computes the partitioning.

Parameters
nativeSizeis the resolution of the actual payload data.
regularPartitionSizeis the effective resolution of a single regular partition. It must be odd.

Definition at line 702 of file VolumeGridHelperDetails.h.


The documentation for this struct was generated from the following file: