SAGA API  v9.6
CSG_Index Class Reference

#include <mat_tools.h>

Classes

class  CSG_Index_Compare
 

Public Member Functions

 CSG_Index (void)
 
virtual ~CSG_Index (void)
 
 CSG_Index (sLong nValues, CSG_Index_Compare &Compare)
 
bool Create (sLong nValues, CSG_Index_Compare &Compare)
 
 CSG_Index (sLong nValues, CSG_Index_Compare *pCompare)
 
bool Create (sLong nValues, CSG_Index_Compare *pCompare)
 
 CSG_Index (sLong nValues, int *Values, bool bAscending=true)
 
bool Create (sLong nValues, int *Values, bool bAscending=true)
 
 CSG_Index (sLong nValues, double *Values, bool bAscending=true)
 
bool Create (sLong nValues, double *Values, bool bAscending=true)
 
 CSG_Index (sLong nValues, TSG_PFNC_Compare fCompare)
 
bool Create (sLong nValues, TSG_PFNC_Compare fCompare)
 
bool Destroy (void)
 
void Show_Progress (bool bProgress=true)
 
bool Add_Entry (sLong Position=-1)
 
bool Del_Entry (sLong Position=-1)
 
bool is_Okay (void) const
 
sLong Get_Count (void) const
 
sLong Get_Index (sLong Position, bool Ascending=true) const
 
sLong operator[] (sLong Position) const
 

Detailed Description

Definition at line 199 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Index() [1/6]

CSG_Index::CSG_Index ( void  )

Definition at line 63 of file mat_indexing.cpp.

◆ ~CSG_Index()

CSG_Index::~CSG_Index ( void  )
virtual

Definition at line 77 of file mat_indexing.cpp.

References Destroy().

◆ CSG_Index() [2/6]

CSG_Index::CSG_Index ( sLong  nValues,
CSG_Index_Compare Compare 
)

Definition at line 102 of file mat_indexing.cpp.

References Create().

◆ CSG_Index() [3/6]

CSG_Index::CSG_Index ( sLong  nValues,
CSG_Index_Compare pCompare 
)

Definition at line 123 of file mat_indexing.cpp.

References Create().

◆ CSG_Index() [4/6]

CSG_Index::CSG_Index ( sLong  nValues,
int *  Values,
bool  bAscending = true 
)

Definition at line 166 of file mat_indexing.cpp.

References Create().

◆ CSG_Index() [5/6]

CSG_Index::CSG_Index ( sLong  nValues,
double *  Values,
bool  bAscending = true 
)

Definition at line 206 of file mat_indexing.cpp.

References Create().

◆ CSG_Index() [6/6]

CSG_Index::CSG_Index ( sLong  nValues,
TSG_PFNC_Compare  fCompare 
)

Definition at line 241 of file mat_indexing.cpp.

References Create().

Member Function Documentation

◆ Add_Entry()

bool CSG_Index::Add_Entry ( sLong  Position = -1)

Definition at line 268 of file mat_indexing.cpp.

Referenced by CSG_Table::Ins_Record().

◆ Create() [1/5]

bool CSG_Index::Create ( sLong  nValues,
CSG_Index_Compare Compare 
)

Definition at line 110 of file mat_indexing.cpp.

References Destroy().

Referenced by Create(), CSG_Index(), and CSG_Table::Set_Index().

◆ Create() [2/5]

bool CSG_Index::Create ( sLong  nValues,
CSG_Index_Compare pCompare 
)

Definition at line 131 of file mat_indexing.cpp.

References Destroy().

◆ Create() [3/5]

bool CSG_Index::Create ( sLong  nValues,
double *  Values,
bool  bAscending = true 
)

Definition at line 214 of file mat_indexing.cpp.

References Create().

◆ Create() [4/5]

bool CSG_Index::Create ( sLong  nValues,
int *  Values,
bool  bAscending = true 
)

Definition at line 174 of file mat_indexing.cpp.

References Create().

◆ Create() [5/5]

bool CSG_Index::Create ( sLong  nValues,
TSG_PFNC_Compare  fCompare 
)

Definition at line 249 of file mat_indexing.cpp.

References Create().

◆ Del_Entry()

bool CSG_Index::Del_Entry ( sLong  Position = -1)

Definition at line 289 of file mat_indexing.cpp.

Referenced by CSG_Table::Del_Record().

◆ Destroy()

bool CSG_Index::Destroy ( void  )

Definition at line 83 of file mat_indexing.cpp.

References SG_Free().

Referenced by Create(), CSG_Table::Del_Index(), and ~CSG_Index().

◆ Get_Count()

sLong CSG_Index::Get_Count ( void  ) const
inline

Definition at line 239 of file mat_tools.h.

◆ Get_Index()

sLong CSG_Index::Get_Index ( sLong  Position,
bool  Ascending = true 
) const
inline

Definition at line 241 of file mat_tools.h.

◆ is_Okay()

bool CSG_Index::is_Okay ( void  ) const
inline

Definition at line 238 of file mat_tools.h.

Referenced by CSG_Table::Del_Record(), CSG_Table::Ins_Record(), and CSG_Table::On_Update().

◆ operator[]()

sLong CSG_Index::operator[] ( sLong  Position) const
inline

Definition at line 246 of file mat_tools.h.

◆ Show_Progress()

void CSG_Index::Show_Progress ( bool  bProgress = true)

Definition at line 262 of file mat_indexing.cpp.


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