((*it)->GetId() ==
id) {
158 if((*it)->GetId() ==
id) {
177 if(it->GetId() ==
id) {
207 if(it->GetId() ==
id) {
228 if(child.
SetInfo().SetTitle() == title) {
238 if(it->GetProjectItem(
id)) {
255 for(CProjectFolder::TFolders::iterator it2 = folders.begin(); it2 != folders.end(); ++it2) {
256 if((*it2)->GetId() ==
id) {
270items.push_back(ref);
279TItems::iterator it = std::find(items.begin(), items.end(), ref);
280 if(it != items.end()) {
295 if(item.
GetId() ==
id) {
321folders.push_back(ref);
329TFolders::iterator it = std::find(folders.begin(), folders.end(), ref);
331 if(it != folders.end()) {
344 if(sub_folder.
GetId() == folder_id) {
User-defined methods of the data storage class.
virtual bool Visit(CProjectItem &item)
const CSerialObject * m_Object
CPrjItemSelector_Data(const CSerialObject &object)
CIdSelector finds a Project Item by Id.
CPrjItemSelector_Id(CProjectItem::TId id)
virtual bool Visit(CProjectItem &item)
CLabelSelector finds a Project Item by Label.
CPrjItemSelector_Label(const string &label)
virtual bool Visit(CProjectItem &item)
virtual bool Visit(objects::CProjectItem &item)=0
const CProjectFolder * FindChildFolderById(TId id) const
void AddChildItem(CProjectItem &child_item)
CProjectItem * FindProjectItemById(CProjectItem::TId id)
static CAtomicCounter m_IdCounter
CAtomicCounter::TValue TId
const CProjectFolder * FindProjectItemFolder(CProjectItem::TId id) const
CProjectItem * FindProjectItemByLabel(const string &label)
void RemoveChildFolder(CProjectFolder &child_folder)
bool RemoveChildItem(CProjectItem &child_item)
const CProjectFolder * GetProjectFolder(CProjectFolder::TId id) const
CProjectItem * FindProjectItemByData(const CSerialObject &object, bool recursive)
const CProjectItem * GetProjectItem(CProjectItem::TId id) const
void RemoveAllChildItems()
CRef< CProjectFolder > RemoveProjectFolder(CProjectFolder::TId id)
CProjectFolder * FindChildFolderByTitle(const string &title)
bool ForEachProjectItem(IProjectItemVisitor &visitor, bool recursive)
applies the given visitor to all project items until the visitor returns false
void AddChildFolder(CProjectFolder &child_folder)
const CSerialObject * GetObject() const
retrieve the object pointed to as a CObject*
Base class for all serializable objects.
Template class for iteration on objects of class C (non-medifiable version)
Template class for iteration on objects of class C.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
list< CRef< CProjectItem > > TItems
TId GetId(void) const
Get the Id member data.
TFolders & SetFolders(void)
Assign a value to Folders data member.
bool IsSetItems(void) const
Check if a value has been assigned to Items data member.
const TLabel & GetLabel(void) const
Get the Label member data.
const TFolders & GetFolders(void) const
Get the Folders member data.
list< CRef< CProjectFolder > > TFolders
void SetInfo(TInfo &value)
Assign a value to Info data member.
bool CanGetItems(void) const
Check if it is safe to call GetItems method.
const TItems & GetItems(void) const
Get the Items member data.
bool CanGetFolders(void) const
Check if it is safe to call GetFolders method.
TItems & SetItems(void)
Assign a value to Items data member.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4