IODA Bundle
odc::Partition Class Reference

#include <Partition.h>

Public Member Functions

 Partition ()
 
 Partition (const eckit::PathName &, size_t)
 Read pool info from partitions info file. More...
 
 Partition (const Partition &)
 
Partitionoperator= (const Partition &)
 
void add (const Block &)
 
ullong numberOfRows () const
 
ullong numberOfRowsOnLastBlock () const
 
std::vector< Block > & blocks ()
 
ullong rowsOnLastBlock () const
 
void rowsOnLastBlock (ullong n)
 
ullong startOfLastBlock ()
 
void startOfLastBlock (ullong n)
 
ullong write (const eckit::PathName &fileName) const
 
ullong write (eckit::DataHandle &dh) const
 
std::string str () const
 
std::ostream & save (std::ostream &, size_t poolNumber) const
 

Private Attributes

std::vector< Blockblocks_
 
ullong startOfLastBlock_
 
ullong rowsOnLastBlock_
 

Friends

std::ostream & operator<< (std::ostream &, const Partition &)
 

Detailed Description

Definition at line 24 of file Partition.h.

Constructor & Destructor Documentation

◆ Partition() [1/3]

odc::Partition::Partition ( )

Definition at line 78 of file Partition.cc.

◆ Partition() [2/3]

odc::Partition::Partition ( const eckit::PathName &  ,
size_t   
)

Read pool info from partitions info file.

◆ Partition() [3/3]

odc::Partition::Partition ( const Partition other)

Definition at line 84 of file Partition.cc.

Member Function Documentation

◆ add()

void odc::Partition::add ( const Block block)

Definition at line 112 of file Partition.cc.

Here is the caller graph for this function:

◆ blocks()

std::vector<Block>& odc::Partition::blocks ( )
inline

Definition at line 38 of file Partition.h.

Here is the caller graph for this function:

◆ numberOfRows()

ullong odc::Partition::numberOfRows ( ) const

Definition at line 98 of file Partition.cc.

Here is the caller graph for this function:

◆ numberOfRowsOnLastBlock()

ullong odc::Partition::numberOfRowsOnLastBlock ( ) const

Definition at line 106 of file Partition.cc.

◆ operator=()

Partition & odc::Partition::operator= ( const Partition other)

Definition at line 90 of file Partition.cc.

◆ rowsOnLastBlock() [1/2]

ullong odc::Partition::rowsOnLastBlock ( ) const
inline

Definition at line 40 of file Partition.h.

Here is the caller graph for this function:

◆ rowsOnLastBlock() [2/2]

void odc::Partition::rowsOnLastBlock ( ullong  n)
inline

Definition at line 41 of file Partition.h.

◆ save()

std::ostream & odc::Partition::save ( std::ostream &  o,
size_t  poolNumber 
) const

Definition at line 42 of file Partition.cc.

◆ startOfLastBlock() [1/2]

ullong odc::Partition::startOfLastBlock ( )
inline

Definition at line 43 of file Partition.h.

Here is the caller graph for this function:

◆ startOfLastBlock() [2/2]

void odc::Partition::startOfLastBlock ( ullong  n)
inline

Definition at line 44 of file Partition.h.

◆ str()

std::string odc::Partition::str ( ) const

◆ write() [1/2]

ullong odc::Partition::write ( const eckit::PathName &  fileName) const
Here is the caller graph for this function:

◆ write() [2/2]

ullong odc::Partition::write ( eckit::DataHandle &  dh) const

Definition at line 178 of file Partition.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const Partition p 
)
friend

Definition at line 33 of file Partition.cc.

Member Data Documentation

◆ blocks_

std::vector<Block> odc::Partition::blocks_
private

Definition at line 53 of file Partition.h.

◆ rowsOnLastBlock_

ullong odc::Partition::rowsOnLastBlock_
private

Definition at line 55 of file Partition.h.

◆ startOfLastBlock_

ullong odc::Partition::startOfLastBlock_
private

Definition at line 54 of file Partition.h.


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