LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LibCarna::helpers::details::VolumeGridHelper::Partionining Struct Reference

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

#include <VolumeGridHelperDetails.hpp>

Public Member Functions

 Partionining (std::size_t nativeSize, std::size_t regularPartitionSize)
 Computes the partitioning.
 
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

Definition at line 689 of file VolumeGridHelperDetails.hpp.

Constructor & Destructor Documentation

◆ Partionining()

LibCarna::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 698 of file VolumeGridHelperDetails.hpp.

Member Function Documentation

◆ partitionsCount()

std::size_t LibCarna::helpers::details::VolumeGridHelper::Partionining::partitionsCount ( ) const
inline

Tells the total partitions number.

Definition at line 733 of file VolumeGridHelperDetails.hpp.

◆ totalSize()

std::size_t LibCarna::helpers::details::VolumeGridHelper::Partionining::totalSize ( ) const
inline

Computes the effective total resolution.

Definition at line 725 of file VolumeGridHelperDetails.hpp.

Member Data Documentation

◆ regularPartitionsCount

std::size_t LibCarna::helpers::details::VolumeGridHelper::Partionining::regularPartitionsCount

Holds the number of regular partitions, i.e. such of the size held by regularPartitionSize.

Definition at line 715 of file VolumeGridHelperDetails.hpp.

◆ regularPartitionSize

std::size_t LibCarna::helpers::details::VolumeGridHelper::Partionining::regularPartitionSize

Holds the always odd, effective resolution of a single regular partition.

Definition at line 709 of file VolumeGridHelperDetails.hpp.

◆ tailSize

std::size_t LibCarna::helpers::details::VolumeGridHelper::Partionining::tailSize

Holds the resolution of the last partition that may also be 0.

Definition at line 720 of file VolumeGridHelperDetails.hpp.


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