SAGA API  v9.5
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 913 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)

◆ Add_Value() [2/3]

int CSG_Category_Statistics::Add_Value ( double  Value)

◆ Add_Value() [3/3]

int CSG_Category_Statistics::Add_Value ( int  Value)

◆ asDouble()

double CSG_Category_Statistics::asDouble ( int  iCategory) const

◆ asInt()

int CSG_Category_Statistics::asInt ( int  iCategory) const

Definition at line 1132 of file mat_tools.cpp.

References CSG_Table_Record::asInt(), and CSG_Table::Get_Record_byIndex().

Referenced by Get_Majority().

◆ asString()

CSG_String CSG_Category_Statistics::asString ( int  iCategory) const

◆ Create()

void CSG_Category_Statistics::Create ( TSG_Data_Type  Type = SG_DATATYPE_String)

Definition at line 992 of file mat_tools.cpp.

References CSG_Table::Add_Field(), CSG_Table::Destroy(), and SG_DATATYPE_ULong.

Referenced by CSG_Category_Statistics().

◆ Destroy()

void CSG_Category_Statistics::Destroy ( void  )

Definition at line 1001 of file mat_tools.cpp.

References CSG_Table::Del_Records().

◆ Get_Category() [1/6]

int CSG_Category_Statistics::Get_Category ( const CSG_String Value) const

◆ Get_Category() [2/6]

int CSG_Category_Statistics::Get_Category ( double  Value) const

◆ Get_Category() [3/6]

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

Definition at line 961 of file mat_tools.h.

◆ Get_Category() [4/6]

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

Definition at line 953 of file mat_tools.h.

◆ Get_Category() [5/6]

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

Definition at line 945 of file mat_tools.h.

◆ Get_Category() [6/6]

int CSG_Category_Statistics::Get_Category ( int  Value) const

◆ Get_Category_Type()

TSG_Data_Type CSG_Category_Statistics::Get_Category_Type ( void  ) const

Definition at line 1007 of file mat_tools.cpp.

References CSG_Table::Get_Field_Type().

◆ Get_Count() [1/2]

int CSG_Category_Statistics::Get_Count ( int  iCategory) const

Definition at line 1124 of file mat_tools.cpp.

References CSG_Table_Record::asInt(), and CSG_Table::Get_Record_byIndex().

◆ Get_Count() [2/2]

int CSG_Category_Statistics::Get_Count ( void  ) const

Definition at line 1117 of file mat_tools.cpp.

References CSG_Table::Get_Count().

◆ Get_Majority() [1/7]

bool CSG_Category_Statistics::Get_Majority ( CSG_String Value)
inline

Definition at line 972 of file mat_tools.h.

References 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 975 of file mat_tools.h.

References Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [3/7]

bool CSG_Category_Statistics::Get_Majority ( double &  Value)
inline

Definition at line 971 of file mat_tools.h.

References Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [4/7]

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

Definition at line 974 of file mat_tools.h.

References Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [5/7]

bool CSG_Category_Statistics::Get_Majority ( int &  Value)
inline

Definition at line 970 of file mat_tools.h.

References Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [6/7]

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

Definition at line 973 of file mat_tools.h.

References Get_Majority().

Referenced by Get_Majority().

◆ Get_Majority() [7/7]

int CSG_Category_Statistics::Get_Majority ( void  )

◆ Get_Minority() [1/7]

bool CSG_Category_Statistics::Get_Minority ( CSG_String Value)
inline

Definition at line 980 of file mat_tools.h.

References 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 983 of file mat_tools.h.

References Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [3/7]

bool CSG_Category_Statistics::Get_Minority ( double &  Value)
inline

Definition at line 979 of file mat_tools.h.

References Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [4/7]

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

Definition at line 982 of file mat_tools.h.

References Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [5/7]

bool CSG_Category_Statistics::Get_Minority ( int &  Value)
inline

Definition at line 978 of file mat_tools.h.

References Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [6/7]

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

Definition at line 981 of file mat_tools.h.

References Get_Minority().

Referenced by Get_Minority().

◆ Get_Minority() [7/7]

int CSG_Category_Statistics::Get_Minority ( void  )

◆ operator+=() [1/3]

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

Definition at line 930 of file mat_tools.h.

◆ operator+=() [2/3]

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

Definition at line 929 of file mat_tools.h.

◆ operator+=() [3/3]

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

Definition at line 928 of file mat_tools.h.

◆ Sort()

bool CSG_Category_Statistics::Sort ( void  )

Definition at line 1105 of file mat_tools.cpp.

References CSG_Table::Set_Index(), and TABLE_INDEX_Ascending.


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