SAGA API  v9.5
CSG_Data_Collection Class Reference

#include <data_manager.h>

Public Member Functions

size_t Count (void) const
 
CSG_Data_Objectoperator[] (size_t i) const
 
CSG_Data_ObjectGet (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_ObjectFind (const CSG_String &File, bool bNative=true) const
 
bool Exists (CSG_Data_Object *pObject) const
 

Protected Member Functions

 CSG_Data_Collection (TSG_Data_Object_Type Type)
 
virtual ~CSG_Data_Collection (void)
 
bool Add (CSG_Data_Object *pObject)
 

Protected Attributes

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 ( TSG_Data_Object_Type  Type)
protected

Definition at line 78 of file data_manager.cpp.

References m_Type.

◆ ~CSG_Data_Collection()

CSG_Data_Collection::~CSG_Data_Collection ( void  )
protectedvirtual

Definition at line 84 of file data_manager.cpp.

References Delete().

Member Function Documentation

◆ Add()

bool CSG_Data_Collection::Add ( CSG_Data_Object pObject)
protected

◆ 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 187 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 141 of file data_manager.cpp.

References Count(), and Get().

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

◆ Delete() [3/3]

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

◆ Exists()

bool CSG_Data_Collection::Exists ( CSG_Data_Object pObject) const

Definition at line 104 of file data_manager.cpp.

References Count(), and Get().

Referenced by Add().

◆ 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 97 of file data_manager.h.

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

◆ operator[]()

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

Definition at line 96 of file data_manager.h.

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 118 of file data_manager.h.

Referenced by Add(), and Delete().

◆ m_Type

TSG_Data_Object_Type CSG_Data_Collection::m_Type
protected

Definition at line 116 of file data_manager.h.

Referenced by CSG_Data_Collection().


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