Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Protected Attributes | List of all members
Zoltan2::ColoringSolution< Adapter > Class Template Reference

The class containing coloring solution. More...

#include <Zoltan2_ColoringSolution.hpp>

Inheritance diagram for Zoltan2::ColoringSolution< Adapter >:
Inheritance graph
[legend]
Collaboration diagram for Zoltan2::ColoringSolution< Adapter >:
Collaboration graph
[legend]

Public Member Functions

 ColoringSolution (size_t length)
 Constructor allocates memory for the solution. More...
 
size_t getColorsSize ()
 Get (local) size of color array. More...
 
ArrayRCP< int > & getColorsRCP ()
 Get (local) color array by RCP. More...
 
int * getColors ()
 Get (local) color array by raw pointer (no RCP). More...
 
int getNumColors ()
 Get local number of colors. This is computed from the coloring each time, as this is cheap. More...
 
- Public Member Functions inherited from Zoltan2::Solution
virtual ~Solution ()
 

Protected Attributes

size_t length_
 Get global number of colors. More...
 
ArrayRCP< int > colors_
 

Detailed Description

template<typename Adapter>
class Zoltan2::ColoringSolution< Adapter >

The class containing coloring solution.

Template parameters:
\li \c adapter    input adapter

The coloring solution contains an array of colors, one per id. Colors are represented as int (sufficient for any reasonable use case). A special value, currently 0, is used for vertices that have not been colored.

Definition at line 34 of file Zoltan2_ColoringSolution.hpp.

Constructor & Destructor Documentation

template<typename Adapter>
Zoltan2::ColoringSolution< Adapter >::ColoringSolution ( size_t  length)
inline

Constructor allocates memory for the solution.

Definition at line 45 of file Zoltan2_ColoringSolution.hpp.

Member Function Documentation

template<typename Adapter>
size_t Zoltan2::ColoringSolution< Adapter >::getColorsSize ( )
inline

Get (local) size of color array.

Definition at line 61 of file Zoltan2_ColoringSolution.hpp.

template<typename Adapter>
ArrayRCP<int>& Zoltan2::ColoringSolution< Adapter >::getColorsRCP ( )
inline

Get (local) color array by RCP.

Definition at line 65 of file Zoltan2_ColoringSolution.hpp.

template<typename Adapter>
int* Zoltan2::ColoringSolution< Adapter >::getColors ( )
inline

Get (local) color array by raw pointer (no RCP).

Definition at line 69 of file Zoltan2_ColoringSolution.hpp.

template<typename Adapter>
int Zoltan2::ColoringSolution< Adapter >::getNumColors ( )
inline

Get local number of colors. This is computed from the coloring each time, as this is cheap.

Definition at line 74 of file Zoltan2_ColoringSolution.hpp.

Member Data Documentation

template<typename Adapter>
size_t Zoltan2::ColoringSolution< Adapter >::length_
protected

Get global number of colors.

Definition at line 90 of file Zoltan2_ColoringSolution.hpp.

template<typename Adapter>
ArrayRCP<int> Zoltan2::ColoringSolution< Adapter >::colors_
protected

Definition at line 91 of file Zoltan2_ColoringSolution.hpp.


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