SAGA API Version 9.14
Loading...
Searching...
No Matches
CSG_Data_Collection Class Reference

#include <data_manager.h>

Public Member Functions

size_t Count (void) const
CSG_Data_Object & operator[] (size_t i) const
CSG_Data_Object * Get (size_t i) const
bool Delete (CSG_Data_Object *pObject, bool bDetach=false)
bool Delete (size_t i, bool bDetach=false)
bool Delete (bool bDetach=false, bool bUnsaved=false)
CSG_Data_Object * Find (const CSG_String &File, bool bNative=true) const
bool Exists (CSG_Data_Object *pObject) const

Friends

class CSG_Data_Manager

Detailed Description

Definition at line 88 of file data_manager.h.

Member Function Documentation

◆ Count()

size_t CSG_Data_Collection::Count ( void ) const
inline

◆ Delete() [1/3]

bool CSG_Data_Collection::Delete ( bool bDetach = false,
bool bUnsaved = false )

Definition at line 193 of file data_manager.cpp.

References Count(), Delete(), Get(), and SG_File_Exists().

◆ Delete() [2/3]

bool CSG_Data_Collection::Delete ( CSG_Data_Object * pObject,
bool bDetach = false )

Definition at line 144 of file data_manager.cpp.

References Count(), Delete(), and Get().

Referenced by Delete(), Delete(), CSG_Data_Manager::Delete(), and CSG_Data_Manager::Delete().

◆ Delete() [3/3]

bool CSG_Data_Collection::Delete ( size_t i,
bool bDetach = false )

Definition at line 158 of file data_manager.cpp.

References Count(), Get(), and SG_DATAOBJECT_TYPE_Undefined.

◆ Exists()

bool CSG_Data_Collection::Exists ( CSG_Data_Object * pObject) const

Definition at line 104 of file data_manager.cpp.

References Count(), and Get().

◆ Find()

CSG_Data_Object * CSG_Data_Collection::Find ( const CSG_String & File,
bool bNative = true ) const

Definition at line 90 of file data_manager.cpp.

References CSG_String::Cmp(), Count(), and Get().

◆ Get()

CSG_Data_Object * CSG_Data_Collection::Get ( size_t i) const
inline

Definition at line 95 of file data_manager.h.

References Count().

Referenced by Delete(), Delete(), Delete(), Exists(), and Find().

◆ operator[]()

CSG_Data_Object & CSG_Data_Collection::operator[] ( size_t i) const
inline

Definition at line 94 of file data_manager.h.

◆ CSG_Data_Manager

friend class CSG_Data_Manager
friend

Definition at line 108 of file data_manager.h.

References CSG_Data_Manager.

Referenced by CSG_Data_Manager.


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