DABC (Data Acquisition Backbone Core)
2.9.9
|
Vector of dabc::Reference objects. More...
#include <dabc/ReferencesVector.h>
Public Member Functions | |
bool | Add (Reference &ref) throw () |
Add reference to the vector. More... | |
bool | AddAt (Reference &ref, unsigned pos) throw () |
Add reference to the vector at specified position. More... | |
bool | Clear (bool asowner=false) throw () |
Clear all references, if owner specified objects will be destroyed. More... | |
bool | ExtractRef (Object *obj, Reference &ref) |
Remove reference at specified position. More... | |
bool | ExtractRef (unsigned n, Reference &ref) |
Remove reference at specified position. More... | |
Object * | FindObject (const char *name, int len=-1) const |
Simple search of object by name, no any subfolder structures. More... | |
Reference | Get (unsigned n) const |
Returns new reference on object with index n. More... | |
Object * | GetObject (unsigned n) const |
Returns pointer on the object. More... | |
unsigned | GetSize () const |
Returns number of items in vector. More... | |
bool | HasObject (Object *ptr) |
Return true if vector has pointer on the object. More... | |
Reference | operator[] (unsigned n) const |
Returns new reference on object with index n. More... | |
ReferencesVector () throw () | |
Constructor. More... | |
bool | Remove (Object *obj) throw () |
Remove reference on specified object More... | |
void | RemoveAt (unsigned n) throw () |
Remove reference on specified object More... | |
Reference | TakeLast () |
Remove last reference from vector. More... | |
Reference | TakeRef (unsigned n) |
Remove reference from vector and return it to the user. More... | |
virtual | ~ReferencesVector () throw () |
Destructor. More... | |
Private Types | |
typedef std::vector< Reference > | refs_vector |
Private Member Functions | |
void | ExpandVector () |
Private Attributes | |
refs_vector * | fVector |
vector with references More... | |
Vector of dabc::Reference objects.
Definition at line 32 of file ReferencesVector.h.
|
private |
Definition at line 35 of file ReferencesVector.h.
dabc::ReferencesVector::ReferencesVector | ( | ) | ||
throw | ( | |||
) |
Constructor.
Definition at line 22 of file ReferencesVector.cxx.
|
virtual |
Destructor.
Definition at line 28 of file ReferencesVector.cxx.
|
private |
Definition at line 35 of file ReferencesVector.cxx.
bool dabc::ReferencesVector::Add | ( | Reference & | ref | ) | |
throw | ( | ||||
) |
Add reference to the vector.
Definition at line 56 of file ReferencesVector.cxx.
bool dabc::ReferencesVector::AddAt | ( | Reference & | ref, |
unsigned | pos | ||
) | |||
throw | ( | ||
) |
Add reference to the vector at specified position.
Definition at line 71 of file ReferencesVector.cxx.
bool dabc::ReferencesVector::Remove | ( | Object * | obj | ) | |
throw | ( | ||||
) |
Remove reference on specified object
Definition at line 91 of file ReferencesVector.cxx.
void dabc::ReferencesVector::RemoveAt | ( | unsigned | n | ) | |
throw | ( | ||||
) |
Remove reference on specified object
Definition at line 103 of file ReferencesVector.cxx.
bool dabc::ReferencesVector::Clear | ( | bool | asowner = false | ) | |
throw | ( | ||||
) |
Clear all references, if owner specified objects will be destroyed.
Definition at line 160 of file ReferencesVector.cxx.
|
inline |
Returns number of items in vector.
Definition at line 64 of file ReferencesVector.h.
|
inline |
Returns pointer on the object.
Definition at line 67 of file ReferencesVector.h.
|
inline |
Returns new reference on object with index n.
Definition at line 71 of file ReferencesVector.h.
|
inline |
Returns new reference on object with index n.
Definition at line 74 of file ReferencesVector.h.
dabc::Reference dabc::ReferencesVector::TakeRef | ( | unsigned | n | ) |
Remove reference from vector and return it to the user.
Definition at line 117 of file ReferencesVector.cxx.
dabc::Reference dabc::ReferencesVector::TakeLast | ( | ) |
Remove last reference from vector.
Definition at line 147 of file ReferencesVector.cxx.
bool dabc::ReferencesVector::ExtractRef | ( | unsigned | n, |
Reference & | ref | ||
) |
Remove reference at specified position.
operator << is used to avoid child locking
Definition at line 127 of file ReferencesVector.cxx.
Remove reference at specified position.
operator << is used to avoid child locking
Definition at line 137 of file ReferencesVector.cxx.
dabc::Object * dabc::ReferencesVector::FindObject | ( | const char * | name, |
int | len = -1 |
||
) | const |
Simple search of object by name, no any subfolder structures.
Definition at line 174 of file ReferencesVector.cxx.
bool dabc::ReferencesVector::HasObject | ( | Object * | ptr | ) |
Return true if vector has pointer on the object.
Definition at line 183 of file ReferencesVector.cxx.
|
private |
vector with references
Definition at line 37 of file ReferencesVector.h.