Carna Version 3.3.3
Loading...
Searching...
No Matches
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.
 
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.

Member Function Documentation

◆ partitionsCount()

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

Tells the total partitions number.

Definition at line 737 of file VolumeGridHelperDetails.h.

◆ totalSize()

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

Computes the effective total resolution.

Definition at line 729 of file VolumeGridHelperDetails.h.

Member Data Documentation

◆ regularPartitionsCount

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

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

Definition at line 719 of file VolumeGridHelperDetails.h.

◆ regularPartitionSize

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

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

Definition at line 713 of file VolumeGridHelperDetails.h.

◆ tailSize

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

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

Definition at line 724 of file VolumeGridHelperDetails.h.


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