PIP  1.4.0
Platform-Independent Primitives
PIConfig::Branch Class Reference

Branch is a list of entries of configuration file More...

Inheritance diagram for PIConfig::Branch:

Additional Inherited Members

- Public Member Functions inherited from PIVector< Entry * >
 PIVector ()
 
size_t size () const
 Elements count.
 
ssize_t size_s () const
 Elements count.
 
bool isEmpty () const
 Return "true" if vector is empty, i.e. size = 0.
 
Entry * & back ()
 Last element of the vector.
 
const Entry * & back () const
 Last element of the vector.
 
Entry * & front ()
 First element of the vector.
 
const Entry * & front () const
 First element of the vector.
 
bool operator== (const PIVector< Entry * > &t) const
 Compare with vector "t".
 
bool operator!= (const PIVector< Entry * > &t) const
 Compare with vector "t".
 
bool contains (const Entry * &v) const
 Return "true" if vector has at least one element equal "t".
 
int etries (const Entry * &v) const
 Return how many times element "t" appears in vector.
 
PIVector< Entry * > & clear ()
 Clear vector. Equivalent to call "resize(0)"
 
PIVector< Entry * > & fill (const Entry * &f=Entry *())
 Fill vector with elements "t" leave size is unchanged and return reference to vector. More...
 
PIVector< Entry * > & resize (size_t new_size, const Entry * &f=Entry *())
 Resize vector to size "size". More...
 
PIVector< Entry * > & remove (size_t index, size_t count=1)
 Remove one element by index "index" and return reference to vector. More...
 
PIVector< Entry * > & sort (CompareFunc compare=compare_func)
 Sort vector using quick sort algorithm and standard compare function. More...
 
PIVector< Entry * > & enlarge (llong piv_size)
 Increase vector size with "size" elements.
 
PIVector< Entry * > & removeOne (const Entry * &v)
 Remove no more than one element equal "v" and return reference to vector. More...
 
PIVector< Entry * > & removeAll (const Entry * &v)
 Remove all elements equal "v" and return reference to vector. More...
 
PIVector< Entry * > & push_back (const Entry * &v)
 Add new element "t" at the end of vector and return reference to vector.
 
PIVector< Entry * > & operator<< (const PIVector< Entry * > &other)
 Add vector "t" at the end of vector and return reference to vector.
 
PIVector< Entry * > & push_front (const Entry * &v)
 Add new element "t" at the beginning of vector and return reference to vector.
 
PIVector< Entry * > & pop_back ()
 Remove one element from the end of vector and return reference to vector.
 
PIVector< Entry * > & pop_front ()
 Remove one element from the beginning of vector and return reference to vector.
 
Entry * take_back ()
 Remove one element from the end of vector and return it.
 
Entry * take_front ()
 Remove one element from the beginning of vector and return it.
 
- Static Public Member Functions inherited from PIVector< Entry * >
static int compare_func (const Entry * *t0, const Entry * *t1)
 Standard compare function for type "Type". Return 0 if t0 = t1, -1 if t0 < t1 and 1 if t0 > t1.
 

Detailed Description

Branch is a list of entries of configuration file

Branch provides some features to get entries lists.