SAGA API v9.10
Loading...
Searching...
No Matches
CSG_Category_Statistics Class Reference

#include <mat_tools.h>

Public Member Functions

 CSG_Category_Statistics (TSG_Data_Type Type=SG_DATATYPE_String)
virtual ~CSG_Category_Statistics (void)
void Create (TSG_Data_Type Type=SG_DATATYPE_String)
void Destroy (void)
TSG_Data_Type Get_Category_Type (void) const
int Add_Value (int Value)
int Add_Value (double Value)
int Add_Value (const CSG_String &Value)
void operator+= (int Value)
void operator+= (double Value)
void operator+= (const CSG_String &Value)
bool Sort (void)
int Get_Count (void) const
int Get_Count (int iCategory) const
int asInt (int iCategory) const
double asDouble (int iCategory) const
CSG_String asString (int iCategory) const
int Get_Category (int Value) const
int Get_Category (double Value) const
int Get_Category (const CSG_String &Value) const
bool Get_Category (int iCategory, int &Value, int &Count) const
bool Get_Category (int iCategory, double &Value, int &Count) const
bool Get_Category (int iCategory, CSG_String &Value, int &Count) const
int Get_Majority (void)
bool Get_Majority (int &Value)
bool Get_Majority (double &Value)
bool Get_Majority (CSG_String &Value)
bool Get_Majority (int &Value, int &Count)
bool Get_Majority (double &Value, int &Count)
bool Get_Majority (CSG_String &Value, int &Count)
int Get_Minority (void)
bool Get_Minority (int &Value)
bool Get_Minority (double &Value)
bool Get_Minority (CSG_String &Value)
bool Get_Minority (int &Value, int &Count)
bool Get_Minority (double &Value, int &Count)
bool Get_Minority (CSG_String &Value, int &Count)

Detailed Description

Definition at line 925 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Category_Statistics()

CSG_Category_Statistics::CSG_Category_Statistics ( TSG_Data_Type Type = SG_DATATYPE_String)

Definition at line 978 of file mat_tools.cpp.

References Create().

◆ ~CSG_Category_Statistics()

CSG_Category_Statistics::~CSG_Category_Statistics ( void )
virtual

Definition at line 986 of file mat_tools.cpp.

Member Function Documentation

◆ Add_Value() [1/3]

int CSG_Category_Statistics::Add_Value ( const CSG_String & Value)

Definition at line 1087 of file mat_tools.cpp.

References CSG_Table_Record::Add_Value(), Get_Category(), and Sort().

◆ Add_Value() [2/3]

int CSG_Category_Statistics::Add_Value ( double Value)

Definition at line 1067 of file mat_tools.cpp.

References CSG_Table_Record::Add_Value(), Get_Category(), and Sort().

◆ Add_Value() [3/3]

int CSG_Category_Statistics::Add_Value ( int Value)

Definition at line 1047 of file mat_tools.cpp.

References CSG_Table_Record::Add_Value(), Get_Category(), and Sort().

Referenced by operator+=(), operator+=(), and operator+=().

◆ asDouble()

double CSG_Category_Statistics::asDouble ( int iCategory) const

Definition at line 1143 of file mat_tools.cpp.

References CSG_Table_Record::asDouble().

Referenced by Get_Category().

◆ asInt()

int CSG_Category_Statistics::asInt ( int iCategory) const

Definition at line 1135 of file mat_tools.cpp.

References CSG_Table_Record::asInt().

Referenced by Get_Category(), and Get_Majority().

◆ asString()

CSG_String CSG_Category_Statistics::asString ( int iCategory) const

Definition at line 1151 of file mat_tools.cpp.

References CSG_Table_Record::asString(), and SG_T.

Referenced by Get_Category().

◆ Create()

void CSG_Category_Statistics::Create ( TSG_Data_Type Type = SG_DATATYPE_String)

Definition at line 992 of file mat_tools.cpp.

References SG_DATATYPE_ULong.

Referenced by CSG_Category_Statistics().

◆ Destroy()

void CSG_Category_Statistics::Destroy ( void )

Definition at line 1001 of file mat_tools.cpp.

◆ Get_Category() [1/6]

int CSG_Category_Statistics::Get_Category ( const CSG_String & Value) const

Definition at line 1034 of file mat_tools.cpp.

References CSG_Table_Record::Get_Index().

◆ Get_Category() [2/6]

int CSG_Category_Statistics::Get_Category ( double Value) const

Definition at line 1026 of file mat_tools.cpp.

References CSG_Table_Record::Get_Index().

◆ Get_Category() [3/6]

bool CSG_Category_Statistics::Get_Category ( int iCategory,
CSG_String & Value,
int & Count ) const
inline

Definition at line 973 of file mat_tools.h.

References asString(), and Get_Count().

◆ Get_Category() [4/6]

bool CSG_Category_Statistics::Get_Category ( int iCategory,
double & Value,
int & Count ) const
inline

Definition at line 965 of file mat_tools.h.

References asDouble(), and Get_Count().

◆ Get_Category() [5/6]

bool CSG_Category_Statistics::Get_Category ( int iCategory,
int & Value,
int & Count ) const
inline

Definition at line 957 of file mat_tools.h.

References asInt(), and Get_Count().

◆ Get_Category() [6/6]

◆ Get_Category_Type()

TSG_Data_Type CSG_Category_Statistics::Get_Category_Type ( void ) const

Definition at line 1007 of file mat_tools.cpp.

◆ Get_Count() [1/2]

int CSG_Category_Statistics::Get_Count ( int iCategory) const

Definition at line 1127 of file mat_tools.cpp.

References CSG_Table_Record::asInt().

◆ Get_Count() [2/2]

int CSG_Category_Statistics::Get_Count ( void ) const

Definition at line 1120 of file mat_tools.cpp.

Referenced by Get_Category(), Get_Category(), and Get_Category().

◆ Get_Majority() [1/7]

bool CSG_Category_Statistics::Get_Majority ( CSG_String & Value)
inline

Definition at line 984 of file mat_tools.h.

References Get_Category(), and Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [2/7]

bool CSG_Category_Statistics::Get_Majority ( CSG_String & Value,
int & Count )
inline

Definition at line 987 of file mat_tools.h.

References Get_Category(), and Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [3/7]

bool CSG_Category_Statistics::Get_Majority ( double & Value)
inline

Definition at line 983 of file mat_tools.h.

References Get_Category(), and Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [4/7]

bool CSG_Category_Statistics::Get_Majority ( double & Value,
int & Count )
inline

Definition at line 986 of file mat_tools.h.

References Get_Category(), and Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [5/7]

bool CSG_Category_Statistics::Get_Majority ( int & Value)
inline

Definition at line 982 of file mat_tools.h.

References Get_Category(), and Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [6/7]

bool CSG_Category_Statistics::Get_Majority ( int & Value,
int & Count )
inline

Definition at line 985 of file mat_tools.h.

References Get_Category(), and Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [7/7]

int CSG_Category_Statistics::Get_Majority ( void )

Definition at line 1164 of file mat_tools.cpp.

References asInt().

◆ Get_Minority() [1/7]

bool CSG_Category_Statistics::Get_Minority ( CSG_String & Value)
inline

Definition at line 992 of file mat_tools.h.

References Get_Category(), and Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [2/7]

bool CSG_Category_Statistics::Get_Minority ( CSG_String & Value,
int & Count )
inline

Definition at line 995 of file mat_tools.h.

References Get_Category(), and Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [3/7]

bool CSG_Category_Statistics::Get_Minority ( double & Value)
inline

Definition at line 991 of file mat_tools.h.

References Get_Category(), and Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [4/7]

bool CSG_Category_Statistics::Get_Minority ( double & Value,
int & Count )
inline

Definition at line 994 of file mat_tools.h.

References Get_Category(), and Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [5/7]

bool CSG_Category_Statistics::Get_Minority ( int & Value)
inline

Definition at line 990 of file mat_tools.h.

References Get_Category(), and Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [6/7]

bool CSG_Category_Statistics::Get_Minority ( int & Value,
int & Count )
inline

Definition at line 993 of file mat_tools.h.

References Get_Category(), and Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [7/7]

int CSG_Category_Statistics::Get_Minority ( void )

Definition at line 1186 of file mat_tools.cpp.

◆ operator+=() [1/3]

void CSG_Category_Statistics::operator+= ( const CSG_String & Value)
inline

Definition at line 942 of file mat_tools.h.

References Add_Value().

◆ operator+=() [2/3]

void CSG_Category_Statistics::operator+= ( double Value)
inline

Definition at line 941 of file mat_tools.h.

References Add_Value().

◆ operator+=() [3/3]

void CSG_Category_Statistics::operator+= ( int Value)
inline

Definition at line 940 of file mat_tools.h.

References Add_Value().

◆ Sort()

bool CSG_Category_Statistics::Sort ( void )

Definition at line 1108 of file mat_tools.cpp.

References TABLE_INDEX_Ascending.

Referenced by Add_Value(), Add_Value(), and Add_Value().


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