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

#include <api_core.h>

Public Member Functions

 CSG_Array (void)
 ~CSG_Array (void)
 CSG_Array (const CSG_Array &Array)
void * Create (const CSG_Array &Array)
 CSG_Array (size_t Value_Size, sLong nValues=0, TSG_Array_Growth Growth=TSG_Array_Growth::SG_ARRAY_GROWTH_0)
void * Create (size_t Value_Size, sLong nValues=0, TSG_Array_Growth Growth=TSG_Array_Growth::SG_ARRAY_GROWTH_0)
bool Destroy (void)
CSG_Arrayoperator= (const CSG_Array &Array)
bool Set_Growth (TSG_Array_Growth Growth)
TSG_Array_Growth Get_Growth (void) const
size_t Get_Value_Size (void) const
sLong Get_Size (void) const
size_t Get_uSize (void) const
void * Get_Entry (sLong Index) const
 Returns a pointer to the memory address of the requested variable. You have to type cast and dereference the pointer to get access to the variable itself.
void * operator[] (sLong Index) const
bool Del_Entry (sLong Index, bool bShrink=true)
void * Get_Array (void) const
void * Get_Array (sLong nValues)
bool Set_Array (sLong nValues, bool bShrink=true)
bool Set_Array (sLong nValues, void **pArray, bool bShrink=true)
bool Inc_Array (sLong nValues=1)
bool Inc_Array (void **pArray)
bool Dec_Array (bool bShrink=true)
bool Dec_Array (void **pArray, bool bShrink=true)

Detailed Description

Definition at line 307 of file api_core.h.

Constructor & Destructor Documentation

◆ CSG_Array() [1/3]

CSG_Array::CSG_Array ( void )

Definition at line 230 of file api_memory.cpp.

References SG_ARRAY_GROWTH_0.

Referenced by Create(), CSG_Array(), and operator=().

◆ ~CSG_Array()

CSG_Array::~CSG_Array ( void )

Definition at line 286 of file api_memory.cpp.

References Destroy().

◆ CSG_Array() [2/3]

CSG_Array::CSG_Array ( const CSG_Array & Array)

Definition at line 241 of file api_memory.cpp.

References Create(), and CSG_Array().

◆ CSG_Array() [3/3]

CSG_Array::CSG_Array ( size_t Value_Size,
sLong nValues = 0,
TSG_Array_Growth Growth = TSG_Array_Growth::SG_ARRAY_GROWTH_0 )

Definition at line 266 of file api_memory.cpp.

References Create().

Member Function Documentation

◆ Create() [1/2]

void * CSG_Array::Create ( const CSG_Array & Array)

Definition at line 250 of file api_memory.cpp.

References CSG_Array(), Destroy(), and Get_Array().

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

◆ Create() [2/2]

void * CSG_Array::Create ( size_t Value_Size,
sLong nValues = 0,
TSG_Array_Growth Growth = TSG_Array_Growth::SG_ARRAY_GROWTH_0 )

Definition at line 275 of file api_memory.cpp.

References Destroy(), and Get_Array().

◆ Dec_Array() [1/2]

bool CSG_Array::Dec_Array ( bool bShrink = true)

Definition at line 425 of file api_memory.cpp.

References Set_Array().

◆ Dec_Array() [2/2]

bool CSG_Array::Dec_Array ( void ** pArray,
bool bShrink = true )

Definition at line 430 of file api_memory.cpp.

References Set_Array().

◆ Del_Entry()

bool CSG_Array::Del_Entry ( sLong Index,
bool bShrink = true )

Definition at line 436 of file api_memory.cpp.

References Set_Array().

◆ Destroy()

bool CSG_Array::Destroy ( void )

Definition at line 291 of file api_memory.cpp.

References SG_FREE_SAFE.

Referenced by Create(), Create(), Set_Array(), and ~CSG_Array().

◆ Get_Array() [1/2]

void * CSG_Array::Get_Array ( sLong nValues)
inline

Definition at line 337 of file api_core.h.

References Set_Array().

◆ Get_Array() [2/2]

◆ Get_Entry()

void * CSG_Array::Get_Entry ( sLong Index) const
inline

Returns a pointer to the memory address of the requested variable. You have to type cast and dereference the pointer to get access to the variable itself.

Definition at line 331 of file api_core.h.

Referenced by operator[]().

◆ Get_Growth()

TSG_Array_Growth CSG_Array::Get_Growth ( void ) const
inline

Definition at line 324 of file api_core.h.

◆ Get_Size()

sLong CSG_Array::Get_Size ( void ) const
inline

◆ Get_uSize()

size_t CSG_Array::Get_uSize ( void ) const
inline

Definition at line 328 of file api_core.h.

Referenced by CSG_PRQuadTree::Get_Nearest_Points().

◆ Get_Value_Size()

size_t CSG_Array::Get_Value_Size ( void ) const
inline

Definition at line 326 of file api_core.h.

◆ Inc_Array() [1/2]

bool CSG_Array::Inc_Array ( sLong nValues = 1)

Definition at line 414 of file api_memory.cpp.

References Set_Array().

◆ Inc_Array() [2/2]

bool CSG_Array::Inc_Array ( void ** pArray)

Definition at line 419 of file api_memory.cpp.

References Set_Array().

◆ operator=()

CSG_Array & CSG_Array::operator= ( const CSG_Array & Array)
inline

Definition at line 321 of file api_core.h.

References Create(), and CSG_Array().

◆ operator[]()

void * CSG_Array::operator[] ( sLong Index) const
inline

Definition at line 332 of file api_core.h.

References Get_Entry().

◆ Set_Array() [1/2]

◆ Set_Array() [2/2]

bool CSG_Array::Set_Array ( sLong nValues,
void ** pArray,
bool bShrink = true )

Definition at line 399 of file api_memory.cpp.

References Set_Array().

◆ Set_Growth()

bool CSG_Array::Set_Growth ( TSG_Array_Growth Growth)

Definition at line 302 of file api_memory.cpp.


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