16 #ifndef DABC_ReferencesVector
17 #define DABC_ReferencesVector
19 #ifndef DABC_Reference
61 bool Clear(
bool asowner = false) throw();
Base class for most of the DABC classes.
Reference on the arbitrary object
Vector of dabc::Reference objects.
Object * FindObject(const char *name, int len=-1) const
Simple search of object by name, no any subfolder structures.
unsigned GetSize() const
Returns number of items in vector.
Reference operator[](unsigned n) const
Returns new reference on object with index n.
bool HasObject(Object *ptr)
Return true if vector has pointer on the object.
void RemoveAt(unsigned n)
Remove reference on specified object
Reference Get(unsigned n) const
Returns new reference on object with index n.
ReferencesVector()
Constructor.
Reference TakeLast()
Remove last reference from vector.
Reference TakeRef(unsigned n)
Remove reference from vector and return it to the user.
std::vector< Reference > refs_vector
refs_vector * fVector
vector with references
bool Clear(bool asowner=false)
Clear all references, if owner specified objects will be destroyed.
bool Add(Reference &ref)
Add reference to the vector.
bool Remove(Object *obj)
Remove reference on specified object
bool AddAt(Reference &ref, unsigned pos)
Add reference to the vector at specified position.
bool ExtractRef(unsigned n, Reference &ref)
Remove reference at specified position.
Object * GetObject(unsigned n) const
Returns pointer on the object.