C++ Reference

C++ Reference: Algorithms

SimpleDynamicPartition

Detailed Description

Definition at line 279 of file dynamic_partition.h.

Public Member Functions

 SimpleDynamicPartition (int num_elements)
 
int NumElements () const
 
const int NumParts () const
 
int PartOf (int element) const
 
int SizeOfPart (int part) const
 
void Refine (absl::Span< const int > distinguished_subset)
 
std::vector< absl::Span< const int > > GetParts (std::vector< int > *buffer)
 

Constructor & Destructor Documentation

◆ SimpleDynamicPartition()

SimpleDynamicPartition ( int  num_elements)
inlineexplicit

Definition at line 281 of file dynamic_partition.h.

Member Function Documentation

◆ GetParts()

std::vector<absl::Span<const int> > GetParts ( std::vector< int > *  buffer)

◆ NumElements()

int NumElements ( ) const
inline

Definition at line 285 of file dynamic_partition.h.

◆ NumParts()

const int NumParts ( ) const
inline

Definition at line 286 of file dynamic_partition.h.

◆ PartOf()

int PartOf ( int  element) const
inline

Definition at line 287 of file dynamic_partition.h.

◆ Refine()

void Refine ( absl::Span< const int >  distinguished_subset)

◆ SizeOfPart()

int SizeOfPart ( int  part) const
inline

Definition at line 288 of file dynamic_partition.h.


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