OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

#include <DataRecord.hpp>

Public Member Functions

 DataRecord ()
 
std::unordered_map< std::string, const Product >::const_iterator products_begin () const
 
std::unordered_map< std::string, const Product >::const_iterator products_end () const
 
std::pair< size_t, size_t > size () const noexcept
 
void size (std::pair< size_t, size_t > size) noexcept
 
std::pair< size_t, size_t > max_size () const noexcept
 
void max_size (std::pair< size_t, size_t > max_size) noexcept
 
void add (std::unique_ptr< BaseVariable > v)
 
auto & attributes ()
 
auto & dimensions ()
 
auto & variables ()
 
void min_size (size_t min_size)
 
size_t min_size () const
 
template<typename T >
void reserve_data (std::vector< std::vector< T >> &data, const bool resize=true) const
 
template<typename T , size_t N>
focs::Variable< T, N > * create_variable (focs::Product &product, const std::vector< std::pair< std::string, size_t >> &dimensions={}, const bool resize=true)
 
template<typename T = focs::Variable<float, 2>>
T * create_variable (focs::Product &product, const std::vector< std::pair< std::string, size_t >> &dimensions={}, const bool resize=true)
 
void done_reading_input ()
 
void rotate_data ()
 

Detailed Description

Definition at line 80 of file DataRecord.hpp.

Constructor & Destructor Documentation

◆ DataRecord()

DataRecord ( )
inline

Definition at line 82 of file DataRecord.hpp.

Member Function Documentation

◆ add()

void add ( std::unique_ptr< BaseVariable v)
inline

Definition at line 92 of file DataRecord.hpp.

◆ attributes()

auto& attributes ( )
inline

Definition at line 95 of file DataRecord.hpp.

◆ create_variable() [1/2]

focs::Variable<T, N>* create_variable ( focs::Product product,
const std::vector< std::pair< std::string, size_t >> &  dimensions = {},
const bool  resize = true 
)
inline

Definition at line 131 of file DataRecord.hpp.

◆ create_variable() [2/2]

T* create_variable ( focs::Product product,
const std::vector< std::pair< std::string, size_t >> &  dimensions = {},
const bool  resize = true 
)
inline

Definition at line 136 of file DataRecord.hpp.

◆ dimensions()

auto& dimensions ( )
inline

Definition at line 96 of file DataRecord.hpp.

◆ done_reading_input()

void done_reading_input ( )
inline

Definition at line 150 of file DataRecord.hpp.

◆ max_size() [1/2]

std::pair<size_t, size_t> max_size ( ) const
inlinenoexcept

Definition at line 90 of file DataRecord.hpp.

◆ max_size() [2/2]

void max_size ( std::pair< size_t, size_t >  max_size)
inlinenoexcept

Definition at line 91 of file DataRecord.hpp.

◆ min_size() [1/2]

size_t min_size ( ) const
inline

Definition at line 99 of file DataRecord.hpp.

◆ min_size() [2/2]

void min_size ( size_t  min_size)
inline

Definition at line 98 of file DataRecord.hpp.

◆ products_begin()

std::unordered_map<std::string, const Product>::const_iterator products_begin ( ) const
inline

Definition at line 85 of file DataRecord.hpp.

◆ products_end()

std::unordered_map<std::string, const Product>::const_iterator products_end ( ) const
inline

Definition at line 86 of file DataRecord.hpp.

◆ reserve_data()

void reserve_data ( std::vector< std::vector< T >> &  data,
const bool  resize = true 
) const
inline

Definition at line 103 of file DataRecord.hpp.

◆ rotate_data()

void rotate_data ( )
inline

Definition at line 153 of file DataRecord.hpp.

◆ size() [1/2]

std::pair<size_t, size_t> size ( ) const
inlinenoexcept

Definition at line 88 of file DataRecord.hpp.

◆ size() [2/2]

void size ( std::pair< size_t, size_t >  size)
inlinenoexcept

Definition at line 89 of file DataRecord.hpp.

◆ variables()

auto& variables ( )
inline

Definition at line 97 of file DataRecord.hpp.


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