OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

#include <DataRecord.hpp>

Public Member Functions

 TileParameters (size_t lines, size_t pixels, size_t start_line=0, size_t start_pixel=0)
 
 TileParameters (std::pair< size_t, size_t > size_, std::pair< size_t, size_t > origin_={0, 0})
 
 TileParameters (std::pair< size_t, size_t > size_, std::pair< size_t, size_t > origin_, std::pair< size_t, size_t > data_origin_, bool top_is_bounded_, bool bottom_is_bounded_, bool left_is_bounded_=true, bool right_is_bounded_=true)
 
void shrink_to (std::pair< size_t, size_t > new_size)
 
void offset_up_to (std::pair< size_t, size_t > new_position)
 
void update (const TileParameters &params)
 
bool is_empty ()
 

Public Attributes

std::pair< size_t, size_t > size {0,0}
 
std::pair< size_t, size_t > origin {0,0}
 
std::pair< size_t, size_t > end {0,0}
 
std::pair< size_t, size_t > data_origin {0,0}
 
bool top_is_bounded {false}
 
bool bottom_is_bounded {false}
 
bool left_is_bounded {false}
 
bool right_is_bounded {false}
 

Friends

std::ostream & operator<< (std::ostream &out, const TileParameters &params)
 

Detailed Description

Definition at line 14 of file DataRecord.hpp.

Constructor & Destructor Documentation

◆ TileParameters() [1/3]

TileParameters ( size_t  lines,
size_t  pixels,
size_t  start_line = 0,
size_t  start_pixel = 0 
)
inline

Definition at line 16 of file DataRecord.hpp.

◆ TileParameters() [2/3]

TileParameters ( std::pair< size_t, size_t >  size_,
std::pair< size_t, size_t >  origin_ = {0,0} 
)
inline

Definition at line 17 of file DataRecord.hpp.

◆ TileParameters() [3/3]

TileParameters ( std::pair< size_t, size_t >  size_,
std::pair< size_t, size_t >  origin_,
std::pair< size_t, size_t >  data_origin_,
bool  top_is_bounded_,
bool  bottom_is_bounded_,
bool  left_is_bounded_ = true,
bool  right_is_bounded_ = true 
)
inline

Definition at line 18 of file DataRecord.hpp.

Member Function Documentation

◆ is_empty()

bool is_empty ( )
inline

Definition at line 40 of file DataRecord.hpp.

◆ offset_up_to()

void offset_up_to ( std::pair< size_t, size_t >  new_position)
inline

Definition at line 26 of file DataRecord.hpp.

◆ shrink_to()

void shrink_to ( std::pair< size_t, size_t >  new_size)
inline

Definition at line 21 of file DataRecord.hpp.

◆ update()

void update ( const TileParameters params)
inline

Definition at line 31 of file DataRecord.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const TileParameters params 
)
friend

Definition at line 44 of file DataRecord.hpp.

Member Data Documentation

◆ bottom_is_bounded

bool bottom_is_bounded {false}

Definition at line 67 of file DataRecord.hpp.

◆ data_origin

std::pair<size_t, size_t> data_origin {0,0}

Definition at line 65 of file DataRecord.hpp.

◆ end

std::pair<size_t, size_t> end {0,0}

Definition at line 64 of file DataRecord.hpp.

◆ left_is_bounded

bool left_is_bounded {false}

Definition at line 68 of file DataRecord.hpp.

◆ origin

std::pair<size_t, size_t> origin {0,0}

Definition at line 63 of file DataRecord.hpp.

◆ right_is_bounded

bool right_is_bounded {false}

Definition at line 69 of file DataRecord.hpp.

◆ size

std::pair<size_t, size_t> size {0,0}

Definition at line 62 of file DataRecord.hpp.

◆ top_is_bounded

bool top_is_bounded {false}

Definition at line 66 of file DataRecord.hpp.


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