SAGA API  v9.2
CSG_Data_Collection Class Reference

#include <data_manager.h>

Inheritance diagram for CSG_Data_Collection:
CSG_Grid_Collection

Public Member Functions

size_t Count (void) const
 
CSG_Data_ObjectGet (size_t i) const
 
CSG_Data_ObjectGet (const CSG_String &File, bool bNative=true) const
 
virtual bool Exists (CSG_Data_Object *pObject) const
 

Protected Member Functions

 CSG_Data_Collection (class CSG_Data_Manager *pManager, TSG_Data_Object_Type Type)
 
virtual ~CSG_Data_Collection (void)
 
virtual bool Add (CSG_Data_Object *pObject)
 
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)
 
bool Delete_All (bool bDetach=false)
 
bool Delete_Unsaved (bool bDetach=false)
 

Protected Attributes

class CSG_Data_Managerm_pManager
 
TSG_Data_Object_Type m_Type
 
CSG_Array_Pointer m_Objects
 

Friends

class CSG_Data_Manager
 

Detailed Description

Definition at line 88 of file data_manager.h.

Constructor & Destructor Documentation

◆ CSG_Data_Collection()

CSG_Data_Collection::CSG_Data_Collection ( class CSG_Data_Manager pManager,
TSG_Data_Object_Type  Type 
)
protected

Definition at line 78 of file data_manager.cpp.

References m_pManager, and m_Type.

◆ ~CSG_Data_Collection()

CSG_Data_Collection::~CSG_Data_Collection ( void  )
protectedvirtual

Definition at line 85 of file data_manager.cpp.

References Delete_All().

Member Function Documentation

◆ Add()

◆ Count()

◆ Delete() [1/3]

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

◆ Delete() [2/3]

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

◆ Delete() [3/3]

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

Definition at line 179 of file data_manager.cpp.

References Delete(), and Get().

◆ Delete_All()

bool CSG_Data_Collection::Delete_All ( bool  bDetach = false)
protected

Definition at line 214 of file data_manager.cpp.

References Delete().

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

◆ Delete_Unsaved()

bool CSG_Data_Collection::Delete_Unsaved ( bool  bDetach = false)
protected

Definition at line 220 of file data_manager.cpp.

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

◆ Exists()

bool CSG_Data_Collection::Exists ( CSG_Data_Object pObject) const
virtual

Reimplemented in CSG_Grid_Collection.

Definition at line 105 of file data_manager.cpp.

References Count(), and Get().

Referenced by Add(), and CSG_Data_Manager::Exists().

◆ Get() [1/2]

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

Definition at line 91 of file data_manager.cpp.

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

Referenced by Get().

◆ Get() [2/2]

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

Friends And Related Function Documentation

◆ CSG_Data_Manager

friend class CSG_Data_Manager
friend

Definition at line 90 of file data_manager.h.

Member Data Documentation

◆ m_Objects

CSG_Array_Pointer CSG_Data_Collection::m_Objects
protected

Definition at line 120 of file data_manager.h.

Referenced by Add(), and Delete().

◆ m_pManager

class CSG_Data_Manager* CSG_Data_Collection::m_pManager
protected

Definition at line 116 of file data_manager.h.

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

◆ m_Type

TSG_Data_Object_Type CSG_Data_Collection::m_Type
protected

Definition at line 118 of file data_manager.h.

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


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