#include <SegAbstract.h>


Public Member Functions | |
| SegAbstract (SegServer &ss, unsigned long lc, const String &s, const String &sn) | |
| virtual | ~SegAbstract () |
| virtual unsigned long | begin () const =0 |
| virtual unsigned long | length () const =0 |
| unsigned long | labelCode () const |
| const String & | string () const |
| XList & | list () |
| const XList & | list () const |
| const String & | sourceName () const |
| void | setLabelCode (unsigned long lc) |
| void | setString (const String &s) |
| void | setSourceName (const String &sn) |
| SegServer & | getServer () const |
| virtual void | rewind () const |
| virtual Seg * | getSeg () const =0 |
| virtual String | getClassName () const =0 |
| virtual String | toString () const =0 |
| void | addOwner (const K &, SegAbstract &o) |
| void | removeOwner (const K &, SegAbstract &o) |
| void | removeAllOwners (const K &) |
| virtual void | getExtremeBoundaries (const K &, unsigned long &b, unsigned long &e, bool &isDefined) const =0 |
Protected Attributes | |
| unsigned long | _labelCode |
| String | _string |
| String | _srcName |
| XList | _list |
| unsigned long | _current |
Private Attributes | |
| SegServer * | _pServer |
| RefVector< SegAbstract > | _ownersVect |
Friends | |
| class | TestSeg |
| class | TestSegCluster |
| class | TestSegServer |
Abstract base class for classes Seg and SegCluster
Definition at line 85 of file SegAbstract.h.
| SegAbstract::SegAbstract | ( | SegServer & | ss, |
| unsigned long | lc, | ||
| const String & | s, | ||
| const String & | sn | ||
| ) | [explicit] |
Definition at line 65 of file SegAbstract.cpp.
References rewind().
| SegAbstract::~SegAbstract | ( | ) | [virtual] |
Definition at line 114 of file SegAbstract.cpp.
| void SegAbstract::addOwner | ( | const K & | , |
| SegAbstract & | o | ||
| ) |
Definition at line 97 of file SegAbstract.cpp.
References _ownersVect, and alize::RefVector< T >::addObject().
Referenced by alize::SegCluster::add(), alize::SegCluster::addCopy(), and alize::SegCluster::addNewSeg().
| virtual unsigned long alize::SegAbstract::begin | ( | ) | const [pure virtual] |
Implemented in alize::Seg, and alize::SegCluster.
| String SegAbstract::getClassName | ( | ) | const [pure virtual] |
Returns the name of the class
Implements alize::Object.
Implemented in alize::Seg, and alize::SegCluster.
Definition at line 112 of file SegAbstract.cpp.
| virtual void alize::SegAbstract::getExtremeBoundaries | ( | const K & | , |
| unsigned long & | b, | ||
| unsigned long & | e, | ||
| bool & | isDefined | ||
| ) | const [pure virtual] |
Implemented in alize::Seg, and alize::SegCluster.
| virtual Seg* alize::SegAbstract::getSeg | ( | ) | const [pure virtual] |
Gets the next segment (sequential read)
See method rewind()
Implemented in alize::Seg, and alize::SegCluster.
| SegServer & SegAbstract::getServer | ( | ) | const |
Returns a reference to the owner (a segment server) of this object
Definition at line 89 of file SegAbstract.cpp.
References _pServer.
Referenced by alize::SegCluster::add(), alize::Seg::duplicate(), alize::SegServer::matchingSegAbstract(), and alize::Seg::merge().
| unsigned long SegAbstract::labelCode | ( | ) | const |
Returns the label code of this object (segment or cluster)
Definition at line 79 of file SegAbstract.cpp.
References _labelCode.
| virtual unsigned long alize::SegAbstract::length | ( | ) | const [pure virtual] |
Implemented in alize::Seg, and alize::SegCluster.
| XList & SegAbstract::list | ( | ) |
Returns a reference to the list associated to this object (segment or cluster)
Definition at line 83 of file SegAbstract.cpp.
References _list.
Referenced by alize::SegCluster::duplicate(), alize::Seg::duplicate(), and alize::Seg::merge().
| const XList & SegAbstract::list | ( | ) | const |
Returns a constant reference to the list associated to this constant object (segment or cluster)
Definition at line 85 of file SegAbstract.cpp.
References _list.
| void SegAbstract::removeAllOwners | ( | const K & | ) |
Definition at line 103 of file SegAbstract.cpp.
References _ownersVect, alize::RefVector< T >::getObject(), and alize::RefVector< T >::size().
Referenced by alize::SegServer::remove().
| void SegAbstract::removeOwner | ( | const K & | , |
| SegAbstract & | o | ||
| ) |
Definition at line 100 of file SegAbstract.cpp.
References _ownersVect, and alize::RefVector< T >::removeObject().
Referenced by alize::SegCluster::remove().
| void SegAbstract::rewind | ( | ) | const [virtual] |
Sets the first segment to become the current segment (sequential read)
Reimplemented in alize::SegCluster.
Definition at line 110 of file SegAbstract.cpp.
References _current.
Referenced by SegAbstract().
| void SegAbstract::setLabelCode | ( | unsigned long | lc ) |
Sets the label code of this object (segment or cluster)
| lc | the label code |
Definition at line 91 of file SegAbstract.cpp.
References _labelCode.
| void SegAbstract::setSourceName | ( | const String & | sn ) |
Sets the source name of this object (segment or cluster)
| sn | the source name (a string) |
Definition at line 95 of file SegAbstract.cpp.
References _srcName.
| void SegAbstract::setString | ( | const String & | s ) |
Sets the string data of this object (segment or cluster)
| s | the string |
Definition at line 93 of file SegAbstract.cpp.
References _string.
| const String & SegAbstract::sourceName | ( | ) | const |
Returns the srcName data of this object (segment or cluster)
Definition at line 87 of file SegAbstract.cpp.
References _srcName.
| const String & SegAbstract::string | ( | ) | const |
Returns the string associated to this object (segment or cluster)
Definition at line 81 of file SegAbstract.cpp.
References _string.
| virtual String alize::SegAbstract::toString | ( | ) | const [pure virtual] |
This method is frequently overridden in the derived classes. If it is not, it returns the name of the class of the object and the address of the object
Reimplemented from alize::Object.
Implemented in alize::Seg, and alize::SegCluster.
friend class TestSeg [friend] |
Reimplemented in alize::Seg.
Definition at line 87 of file SegAbstract.h.
friend class TestSegCluster [friend] |
Reimplemented in alize::Seg, and alize::SegCluster.
Definition at line 88 of file SegAbstract.h.
friend class TestSegServer [friend] |
Reimplemented in alize::Seg, and alize::SegCluster.
Definition at line 89 of file SegAbstract.h.
unsigned long alize::SegAbstract::_current [mutable, protected] |
Definition at line 176 of file SegAbstract.h.
Referenced by alize::Seg::getSeg(), and rewind().
unsigned long alize::SegAbstract::_labelCode [protected] |
Definition at line 172 of file SegAbstract.h.
Referenced by alize::Seg::duplicate(), labelCode(), setLabelCode(), and alize::Seg::toString().
XList alize::SegAbstract::_list [protected] |
Definition at line 175 of file SegAbstract.h.
Referenced by alize::Seg::duplicate(), list(), and alize::Seg::merge().
RefVector<SegAbstract> alize::SegAbstract::_ownersVect [private] |
Definition at line 181 of file SegAbstract.h.
Referenced by addOwner(), removeAllOwners(), and removeOwner().
SegServer* alize::SegAbstract::_pServer [private] |
Definition at line 180 of file SegAbstract.h.
Referenced by getServer().
String alize::SegAbstract::_srcName [protected] |
Definition at line 174 of file SegAbstract.h.
Referenced by alize::Seg::duplicate(), alize::Seg::merge(), setSourceName(), sourceName(), and alize::Seg::toString().
String alize::SegAbstract::_string [protected] |
Definition at line 173 of file SegAbstract.h.
Referenced by alize::Seg::duplicate(), alize::Seg::merge(), setString(), string(), and alize::Seg::toString().
1.7.2